Order API (2024-02)
APIs to manage orders and order-related resources, such as menus.
Finalize Order
Finalize the order, and no more menus can be added by user after this operation.
path Parameters
id required | string |
Request Body schema: application/jsonrequired
token required | string Token to authenticate the customer |
Responses
Request samples
- Payload
{- "token": "string"
}
Show Cart
Show the pending (un-submitted) cart of the order, including all menus and their quantities
path Parameters
id required | string |
query Parameters
lang | string Language code to use for the response |
Responses
Response samples
- 200
{- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "shopMenuId": "6c878c70-a349-4ec8-8bf1-e798121b3d78",
- "name": "親子丼",
- "quantity": 2,
- "priceTaxed": 1000,
- "tax": 74,
- "taxRate": 8,
- "variations": [
- {
- "id": "ae03b9d4-bda9-42f9-a232-d15759e65648",
- "shopMenuId": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "name": "大盛り",
- "priceTaxed": 100,
- "tax": 7,
- "quantity": 1
}
], - "groupTag": "string",
- "deviceTag": "string",
- "totalAmount": 2200,
- "singleAmount": 1100,
- "isTaxRelief": true,
- "isOption": true
}
], - "subtotal": 2000,
- "itemsCount": 2
}
Append to Cart
Append menus to pending (un-submitted) cart of the order
path Parameters
id required | string |
Request Body schema: application/jsonrequired
token required | string Token to authenticate the customer |
required | Array of objects (OrderMenuCreationDto_Front) List of menus to append to the order |
deviceTag | string [ 1 .. 32 ] characters Arbitrary string to identify who made the request |
lang | string Language code to use for the response |
Responses
Request samples
- Payload
{- "token": "string",
- "menus": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "quantity": 1,
- "metadata": {
- "nameOverride": "My Menu"
}, - "variations": [
- {
- "id": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "quantity": 1
}
]
}
], - "deviceTag": "string",
- "lang": "string"
}
Response samples
- 200
{- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "shopMenuId": "6c878c70-a349-4ec8-8bf1-e798121b3d78",
- "name": "親子丼",
- "quantity": 2,
- "priceTaxed": 1000,
- "tax": 74,
- "taxRate": 8,
- "variations": [
- {
- "id": "ae03b9d4-bda9-42f9-a232-d15759e65648",
- "shopMenuId": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "name": "大盛り",
- "priceTaxed": 100,
- "tax": 7,
- "quantity": 1
}
], - "groupTag": "string",
- "deviceTag": "string",
- "totalAmount": 2200,
- "singleAmount": 1100,
- "isTaxRelief": true,
- "isOption": true
}
], - "subtotal": 2000,
- "itemsCount": 2
}
Update Item in Cart
Update the quantity of a menu in the pending (un-submitted) cart of the order, or remove it if the quantity is 0
path Parameters
id required | string |
itemId required | string |
Request Body schema: application/jsonrequired
token required | string Token to authenticate the customer |
quantity | integer <int32> >= 0 Quantity of the menu |
object Merchant-specific metadata for the menu. It will not be stored. | |
Array of objects (VariationCreationDto_Front) List of variations (toppings) for the menu | |
deviceTag | string [ 1 .. 32 ] characters Arbitrary string to identify who made the request |
lang | string Language code to use for the response |
Responses
Request samples
- Payload
{- "token": "string",
- "quantity": 1,
- "metadata": {
- "nameOverride": "My Menu"
}, - "variations": [
- {
- "id": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "quantity": 1
}
], - "deviceTag": "string",
- "lang": "string"
}
Response samples
- 200
{- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "shopMenuId": "6c878c70-a349-4ec8-8bf1-e798121b3d78",
- "name": "親子丼",
- "quantity": 2,
- "priceTaxed": 1000,
- "tax": 74,
- "taxRate": 8,
- "variations": [
- {
- "id": "ae03b9d4-bda9-42f9-a232-d15759e65648",
- "shopMenuId": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "name": "大盛り",
- "priceTaxed": 100,
- "tax": 7,
- "quantity": 1
}
], - "groupTag": "string",
- "deviceTag": "string",
- "totalAmount": 2200,
- "singleAmount": 1100,
- "isTaxRelief": true,
- "isOption": true
}
], - "subtotal": 2000,
- "itemsCount": 2
}
(Admin) Create Order
Create a dine-in order for a shop.
Authorizations:
Request Body schema: application/jsonrequired
shopId required | string <uuid> ID of the shop to place the order |
Array of objects (OrderMenuCreationDto) List of menu items to order | |
object (OrderMenuCreationDto) Option for the order, corresponding to Shop.optionMenu | |
memo | string [ 0 .. 300 ] characters Memo from the user who placed the order |
payOffline | boolean Default: false Whether the order is paid offline (by cash or at register) |
messageTo | string Used for sending LINE message to the user who placed the order |
membershipNumber | string [ 0 .. 32 ] characters Membership number of the user who placed the order |
extraParams | string Extra parameters for the order, in HTTP query string format. Typically this will store unhandled parameters from order web app. |
phoneNumber | string [ 0 .. 20 ] characters Phone number for the order. |
string [ 0 .. 100 ] characters Email for the order. | |
tableNumber | string Table number for the order. |
mutable | boolean Default: false Whether the order is mutable (can append more items) |
Responses
Request samples
- Payload
{- "shopId": "193e9090-b271-11e9-a98f-06c62891570b",
- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "quantity": 1,
- "metadata": {
- "nameOverride": "My Menu"
}, - "variations": [
- {
- "id": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "quantity": 1
}
]
}
], - "option": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "quantity": 1,
- "metadata": {
- "nameOverride": "My Menu"
}, - "variations": [
- {
- "id": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "quantity": 1
}
]
}, - "memo": "お箸をつけてください",
- "payOffline": true,
- "messageTo": "string",
- "membershipNumber": "3000123456789",
- "extraParams": "is_push=1",
- "phoneNumber": "09012345678",
- "email": "string",
- "tableNumber": "001",
- "mutable": true
}
Response samples
- 200
{- "type": "cafeteria",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "number": "1234",
- "shopId": "70542939-296f-4335-b0b1-f4e5a2513ef7",
- "amount": 1000,
- "namePhonetic": "ちゅうもんしゃ",
- "memo": "お箸をつけてください",
- "predefinedPaymentToken": "string",
- "paymentMethod": "creditcard(sp)",
- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "shopMenuId": "6c878c70-a349-4ec8-8bf1-e798121b3d78",
- "name": "親子丼",
- "quantity": 2,
- "priceTaxed": 1000,
- "tax": 74,
- "taxRate": 8,
- "variations": [
- {
- "id": "ae03b9d4-bda9-42f9-a232-d15759e65648",
- "shopMenuId": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "name": "大盛り",
- "priceTaxed": 100,
- "tax": 7,
- "quantity": 1
}
], - "groupTag": "string",
- "deviceTag": "string",
- "totalAmount": 2200,
- "singleAmount": 1100,
- "isTaxRelief": true,
- "isOption": true
}
], - "mutableToken": "string",
- "tableNumber": "string",
- "emailMasked": "e****s@t**.*m",
- "phoneNumberMasked": "03****78",
- "smaregiTempTransactionBarcode": "string"
}
(Admin) Fetch Order Info
Fetch detailed information about an order.
Authorizations:
path Parameters
id required | string |
Responses
Response samples
- 200
{- "type": "cafeteria",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 0,
- "number": "1234",
- "shopId": "70542939-296f-4335-b0b1-f4e5a2513ef7",
- "amount": 1000,
- "namePhonetic": "ちゅうもんしゃ",
- "memo": "お箸をつけてください",
- "predefinedPaymentToken": "string",
- "paymentMethod": "creditcard(sp)",
- "menu": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "shopMenuId": "6c878c70-a349-4ec8-8bf1-e798121b3d78",
- "name": "親子丼",
- "quantity": 2,
- "priceTaxed": 1000,
- "tax": 74,
- "taxRate": 8,
- "variations": [
- {
- "id": "ae03b9d4-bda9-42f9-a232-d15759e65648",
- "shopMenuId": "ae707538-02b5-47eb-92ba-0e5ee32bd786",
- "name": "大盛り",
- "priceTaxed": 100,
- "tax": 7,
- "quantity": 1
}
], - "groupTag": "string",
- "deviceTag": "string",
- "totalAmount": 2200,
- "singleAmount": 1100,
- "isTaxRelief": true,
- "isOption": true
}
], - "mutableToken": "string",
- "tableNumber": "string",
- "emailMasked": "e****s@t**.*m",
- "phoneNumberMasked": "03****78",
- "smaregiTempTransactionBarcode": "string"
}
Get Shop Info
Get shop with order related information (menus, settings etc)
path Parameters
id required | string <uuid> ID of the shop |
query Parameters
lang | string Desired display language for translatable fields |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "tel": "string",
- "orderMenus": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "menus": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 20,
- "type": 30,
- "name": "親子丼",
- "menuPrice": 1000,
- "shortDesc": "たまごと鶏肉の親子丼",
- "desc": "甘めのお出汁が染みた鶏肉にふわとろ卵が最高に美味しい親子丼です",
- "imageArray": "/images/shop/[UUID]/filename.jpg",
- "variations": [
- {
- "id": "b01162e8-6304-46d2-84f7-8cdd2c291016",
- "status": 20,
- "type": 90,
- "name": "大盛り",
- "menuPrice": 100,
- "sortOrder": 1,
- "variationCategoryId": "c3d58c16-5cc3-4d26-846b-9e6f70c99920",
- "variationCategoryRequired": true,
- "variationCategoryExclusive": true,
- "variationCategorySortOrder": 0,
- "variationCategoryName": "ご飯の量",
- "variationCategoryDefaultChoiceName": "普通"
}
], - "variationCategoryId": "2ea5d840-6de8-420f-afad-a9897b42a19b",
- "variationCategoryRequired": true,
- "variationCategoryExclusive": true,
- "variationCategorySortOrder": 0,
- "stockAvailable": true,
- "variationCategoryDefaultChoiceName": "普通",
- "variationCategoryName": "ご飯の量"
}
]
}
], - "orderOptionMenus": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": 20,
- "type": 30,
- "name": "親子丼",
- "menuPrice": 1000,
- "shortDesc": "たまごと鶏肉の親子丼",
- "desc": "甘めのお出汁が染みた鶏肉にふわとろ卵が最高に美味しい親子丼です",
- "imageArray": "/images/shop/[UUID]/filename.jpg",
- "variations": [
- {
- "id": "b01162e8-6304-46d2-84f7-8cdd2c291016",
- "status": 20,
- "type": 90,
- "name": "大盛り",
- "menuPrice": 100,
- "sortOrder": 1,
- "variationCategoryId": "c3d58c16-5cc3-4d26-846b-9e6f70c99920",
- "variationCategoryRequired": true,
- "variationCategoryExclusive": true,
- "variationCategorySortOrder": 0,
- "variationCategoryName": "ご飯の量",
- "variationCategoryDefaultChoiceName": "普通"
}
], - "variationCategoryId": "2ea5d840-6de8-420f-afad-a9897b42a19b",
- "variationCategoryRequired": true,
- "variationCategoryExclusive": true,
- "variationCategorySortOrder": 0,
- "stockAvailable": true,
- "variationCategoryDefaultChoiceName": "普通",
- "variationCategoryName": "ご飯の量"
}
], - "deliveryAddresses": [
- { }
], - "orderSchedules": [
- { }
], - "isTakeoutSupported": "string",
- "isDeliverySupported": "string",
- "isCafeteriaSupported": "string",
- "orderSettings": {
- "takeoutOpenTime": "10:00",
- "takeoutLastOrderTime": "22:00",
- "deliveryOpenTime": "10:00",
- "deliveryLastOrderTime": "22:00",
- "cafeteriaOpenTime": "10:00",
- "cafeteriaLastOrderTime": "22:00",
- "deliveryFee": 0,
- "desc": "string",
- "deliveryOpening": true,
- "cafeteriaOpening": true,
- "takeoutOpening": true
}, - "name": "string",
- "address": "string",
- "desc": "string",
- "imageArray": [
- "string"
]
}