Order notification
These notifications are sent to the URL provided in theorderWebhookUrl
field.
Body Required
-
account object
Additional properties are allowed.
-
businessLocationId integer(int64)
The unique identifier of the business location.
-
notificationType string
Values are
OPEN
,UPDATE
,CLOSE
, orCANCEL
. -
platformRestaurantId string
The external platform's unique identifier for the restaurant.
Format should match the following pattern:
[a-zA-Z0-9_-]+
. -
sequenceId string
Request examples
{
"account": {
"accountNumber": "A833754.74",
"accountObjectId": "25769805453",
"accountProfileCode": "zoneB",
"accountProfileId": "25769805764",
"accountProfileName": "Livraison Zone B",
"businessLocationId": "77309411330",
"closeDate": 1694083785354,
"consumerRecord": {
"consumer": {
"emailAddress": "napoleon@bonapart.fr",
"id": "111466"
},
"consumerRecordUUID": "8649450c-5c10-4e63-8461-12bbf5a51cbc",
"contactInformation": {
"city": "Paris",
"companyName": "Non",
"emailReceipts": false,
"firstName": "Alexandr",
"fullName": "Alexandr Pushkin",
"lastName": "Pushkin",
"taxIdentifier": "23142342134"
},
"externalReferences": [
{
"key": "open-table-api-client",
"reference": "OO.11.opentable-anonymous"
}
],
"id": "36577"
},
"coverCount": 2,
"currencyCode": "EUR",
"currentProductionPhase": 0,
"discounts": [
{
"code": "test_discount",
"description": "test discount description",
"id": "197568495841",
"rate": 0.9,
"taxFree": false
}
],
"externalReferences": [
{
"prefix": "TASK",
"reference": "RN-197568495618-reservation_id_123213126"
}
],
"gratuityAmount": 20,
"id": "21474836499",
"latestExternalReferences": [
{
"prefix": "TASK",
"reference": "RN-197568495618-reservation_id_123213126"
}
],
"name": "Floor 1, Table 2",
"offset": 240,
"openDate": 1694083785354,
"originAccountId": 21474836579,
"originAccountNumber": "A1.5",
"paidAmount": 45,
"paymentLines": [
{
"accountId": "21474836499",
"amount": 45,
"currencyCode": "GBP",
"date": 1694084890294,
"gratuityAmount": 50,
"id": 21474836506,
"paymentMethod": "IKGIFT",
"paymentMethodDescription": "Geschenkkarte"
}
],
"preTaxAmount": 201.78,
"receiptNumber": "R1.2",
"serviceCharge": 34.2,
"staffId": "13",
"staffName": "Manager",
"tableName": "Table 112",
"tableNumber": 112,
"taxAmount": 14.12,
"totalAmount": 30,
"totalDiscount": 0.9,
"transactionLines": [
{
"accountId": "502721627029505",
"accountingGroupId": "77309411368",
"accountingGroupName": "Misc",
"activeTax": {
"code": "TVA77",
"description": "TVA 7.7%",
"rate": 1.07,
"taxIncluded": true
},
"amount": 0.45,
"amountLessTax": 4.21,
"amountWithTax": 4.5,
"categories": [
{
"category": "default",
"value": "Misc"
}
],
"date": 1694083815402,
"discountedAmount": 0.05,
"grossUnitAmount": 4.5,
"id": "502721627029513",
"itemDescription": "Dom Pérignon",
"itemId": "77309411427",
"itemSku": "6",
"modifiers": [
{
"name": "Milch",
"quantity": 1
}
],
"nameOverride": "Burger for our friend Ben",
"phase": 0,
"quantity": 6,
"tags": "Test tag 4",
"unitAmount": 0.9
}
],
"type": "SALE",
"updateDate": 1694083819623
},
"businessLocationId": 9765040300495493,
"notificationType": "OPEN",
"platformRestaurantId": "Restaurant-123",
"sequenceId": "string"
}