Get Sample Order Update
GET
/reservation/api/1/platform/{platform-code}/order-webhook-sample
Returns an example of an order update notification sent to the orderWebhookUrl field.
Path parameters
-
platform-code string Required
The unique code assigned to the reservation platform.
Maximum length is
11
. Format should match the following pattern:[a-zA-Z0-9_-]+
.
GET /reservation/api/1/platform/{platform-code}/order-webhook-sample
curl \
-X GET https://api.trial.lsk.lightspeed.app/reservation/api/1/platform/EasyTable/order-webhook-sample \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"notificationType": "CLOSE",
"account": {
"id": "612329192423425",
"businessLocationId": "22187801052649",
"name": "Bar, Table 1",
"accountNumber": "A35642.1",
"currencyCode": "USD",
"staffId": "2823",
"staffName": "John.Cena",
"openDate": 1711550514875,
"closeDate": 1711550589647,
"paidAmount": 9.1,
"totalAmount": 9.1,
"coverCount": 1,
"gratuityAmount": 0,
"receiptNumber": "R35642.1",
"accountObjectId": "22187801053871",
"taxAmount": 0.6,
"preTaxAmount": 8.5,
"serviceCharge": 0,
"tableName": "Table 1",
"accountProfileCode": "Reservation",
"accountProfileName": "Reservation",
"accountProfileId": "22187801053876",
"originAccountId": null,
"originAccountNumber": null,
"type": "SALE",
"updateDate": 1711550514914,
"offset": 240,
"totalDiscount": 0,
"transactionLines": [
{
"id": "612329192423428",
"accountId": "612329192423425",
"amount": 4,
"unitAmount": 4,
"quantity": 1,
"nameOverride": "",
"itemDescription": "French Fries",
"accountingGroupId": "22187801051201",
"accountingGroupName": "Food",
"itemId": "22187801052783",
"itemSku": "69",
"date": 1711550534347,
"tags": "",
"phase": 0,
"categories": [
{
"category": "default",
"value": "Food"
}
],
"amountWithTax": 4.28,
"amountLessTax": 4,
"discountedAmount": 0,
"grossUnitAmount": 4,
"activeTax": {
"code": "STAX",
"description": "7% State Tax",
"rate": 1.07,
"taxIncluded": false
},
"subLines": [],
"modifiers": []
},
{
"id": "612329192423429",
"accountId": "612329192423425",
"amount": 4.5,
"unitAmount": 4.5,
"quantity": 1,
"nameOverride": "",
"itemDescription": "Heinenken",
"accountingGroupId": "22187801051191",
"accountingGroupName": "Alcoholic beverages",
"itemId": "22187801053839",
"itemSku": "676",
"date": 1711550553193,
"tags": "",
"phase": 0,
"categories": [
{
"category": "something else",
"value": "Alcoholic beverages"
}
],
"amountWithTax": 4.82,
"amountLessTax": 4.5,
"discountedAmount": 0,
"grossUnitAmount": 4.5,
"activeTax": {
"code": "STAX",
"description": "7% State Tax",
"rate": 1.07,
"taxIncluded": false
},
"subLines": [],
"modifiers": []
}
],
"paymentLines": [
{
"id": 612329192423431,
"accountId": "612329192423425",
"currencyCode": "USD",
"gratuityAmount": 0,
"amount": 9.1,
"date": 1711550589607,
"paymentMethod": "CASH",
"paymentMethodDescription": "Cash"
}
],
"discounts": [],
"externalReferences": [
{
"prefix": "TASK",
"reference": "RN-22187801052649-test4#2ed4c054-53cf-4b03-90f8-58be424ee31"
}
],
"consumerRecord": {
"id": "44136",
"consumerRecordUUID": "8210bb3b-0916-4cd4-8fb5-859fdb5f863b",
"consumer": null,
"contactInformation": {
"firstName": "Evgeny",
"lastName": "Onegin",
"companyName": "",
"city": "",
"taxIdentifier": "",
"emailReceipts": false,
"fullName": "Evgeny Onegin"
},
"externalReferences": [
{
"key": "test4",
"reference": "OO.1291.1"
}
]
},
"currentProductionPhase": 0
},
"businessLocationId": 22187801052649,
"platformRestaurantId": "123451234",
"sequenceId": "B35642.15",
"platformReservationId": "2ed4c054-53cf-4b03-90f8-58be424ee31"
}