OpenAPI 3.1.02026-08-12911,252858.9 KB
96f04e4e3f61
Order and Pay
Create Local Order
Creates a new dine-in order for a specific business location. See Online Ordering Basics for more details.
If the accountIdentifier of an existing order is provided in the body of the request, the request will update the existing order.
post/o/op/1/order/local
Request body
Example request
{
"businessLocationId": 45454565682155,
"thirdPartyReference": "MyAwesomeThirdPartyReference",
"endpointId": "MY-AWESOME-ENDPOINT-ID",
"customerInfo": {
"firstName": "Jane",
"lastName": "Doe",
"thirdPartyReference": "ZEN-7074522d-c71d-403f",
"email": "jane.doe@example.com",
"contactNumberAsE164": "+14155552671",
"notes": "Notes about the customer.",
"salutation": "Mr.",
"sendEmailReceipts": true
},
"orderNote": "Sample Order Note",
"maxTimeToAttemptOrderDeliverToPos": 60000,
"staffId": 1234567890,
"accountProfileCode": "LOCALORDER",
"scheduledTimeForOrderAsIso8601": "2024-04-04T09:42:00.000+00:00",
"payment": {
"paymentMethod": "OOPAYMENT",
"paymentAmount": 14,
"tipAmount": 2
},
"accountId": "1234567890",
"accountIdentifier": "A1235.89",
"tableNumber": "1",
"clientCount": 4,
"items": [
{
"quantity": 1,
"sku": "UGG-BB-PUR-06",
"customItemName": "My Custom Item Name",
"customItemPrice": 10,
"discountAmountOverride": 5,
"discountPercentOverride": 10,
"modifiers": [
{
"modifierId": "236025632784492"
}
],
"discountCode": "FIVEPERCENT",
"course": 2,
"subItems": [
{
"quantity": 1,
"sku": "ABC-123",
"customItemName": "My Custom Sub-Item Name",
"customItemPrice": 2,
"modifiers": [
{
"modifierId": "236025632784492"
}
]
}
]
}
],
"targetPrinterProfileId": 1773881235
}Response
accepted
Example response
{
"status": "ok"
}