Create Local Order
Creates a new dine-in order for a specific business location. See Online Ordering Basics for more details.
Body Required
-
The unique identifier for the business location.
-
The external reference provided for this order. Must be unique. This value will be included in the order details sent to the webhook URL.
Minimum length is
1
, maximum length is48
. -
Endpoint ID for a unique webhook that has been created using the webhook endpoint.
-
Additional properties are allowed.
-
orderNote string
A note added to this order and displayed on the printed dockets.
-
maxTimeToAttemptOrderDeliverToPos integer(int32)
** Use of this feature is strongly recommended **
Maximum time to attempt delivery of this order to the POS. In milliseconds. The minimum value is 60000ms (1 minute).
If
scheduledTimeForOrderAsIso8601
is used, this value will be added to the scheduled order time. -
staffId integer(int64)
The unique identifier for the staff member.
-
accountProfileCode string
A valid order profile code to associate with this order. See the order profiles definition for more details.
-
scheduledTimeForOrderAsIso8601 string(date-time)
The time that the order will be sent to the POS. Must be in the future.
-
payment object
Additional properties are allowed.
-
The system-generated account identifier for this order (Applies to iKentoo V2). If this is specified, the associated order will be updated.
-
accountIdentifier string
The system-generated account identifier for this order (Applies to iKentoo V3+). If this is specified, the associated order will be updated.
-
tableNumber string
The table number for this local order. If updating an existing order, (ie.
accountIdentifier
is specified), thetableNumber
cannot be updated. -
clientCount integer(int32)
The number of customers for this order. If updating an existing order, (ie.
accountIdentifier
is specified), theclientCount
cannot be updated. -
items array[object]
The items in this order.
curl \
-X POST https://api.lsk.lightspeed.app/o/op/1/order/local \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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.","emailNotification":"DONT_CHANGE"},"orderNote":"Sample Order Note","maxTimeToAttemptOrderDeliverToPos":60000,"staffId":1234567890,"accountProfileCode":"LOCALORDER","scheduledTimeForOrderAsIso8601":"2024-05-04T09:42:00.000+00:00","payment":{"paymentMethod":"OOPAYMENT","paymentAmount":22.01,"tipAmount":2.0},"accountId":"1234567890","accountIdentifier":"A1235.89","tableNumber":"1","clientCount":4,"items":[{"quantity":2,"sku":"UGG-BB-PUR-06","customItemName":"My Custom Item Name","customItemPrice":10.0,"discountAmountOverride":5.0,"discountPercentOverride":10.0,"modifiers":[{"modifierId":"236025632784492"}],"discountCode":"FIVEPERCENT","course":2,"subItems":[{"quantity":1,"sku":"ABC-123","customItemName":"My Custom Sub-Item Name","customItemPrice":2.0,"modifiers":[{"modifierId":"236025632784492"}]}]}]}'
{
"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.",
"emailNotification": "DONT_CHANGE"
},
"orderNote": "Sample Order Note",
"maxTimeToAttemptOrderDeliverToPos": 60000,
"staffId": 1234567890,
"accountProfileCode": "LOCALORDER",
"scheduledTimeForOrderAsIso8601": "2024-05-04T09:42:00.000+00:00",
"payment": {
"paymentMethod": "OOPAYMENT",
"paymentAmount": 22.01,
"tipAmount": 2.0
},
"accountId": "1234567890",
"accountIdentifier": "A1235.89",
"tableNumber": "1",
"clientCount": 4,
"items": [
{
"quantity": 2,
"sku": "UGG-BB-PUR-06",
"customItemName": "My Custom Item Name",
"customItemPrice": 10.0,
"discountAmountOverride": 5.0,
"discountPercentOverride": 10.0,
"modifiers": [
{
"modifierId": "236025632784492"
}
],
"discountCode": "FIVEPERCENT",
"course": 2,
"subItems": [
{
"quantity": 1,
"sku": "ABC-123",
"customItemName": "My Custom Sub-Item Name",
"customItemPrice": 2.0,
"modifiers": [
{
"modifierId": "236025632784492"
}
]
}
]
}
]
}
{
"status": "ok"
}
{
"timestamp": "2023-11-07T19:15:05.043+0000",
"status": 400,
"error": "Bad Request",
"message": "Validation failed for object='localOrder'. Error count: 1",
"errors": [
{
"codes": [
"NotNull.localOrder.thirdPartyReference",
"NotNull.thirdPartyReference",
"NotNull.java.lang.String",
"NotNull"
],
"arguments": [
{
"codes": [
"localOrder.thirdPartyReference",
"thirdPartyReference"
],
"defaultMessage": "thirdPartyReference",
"code": "thirdPartyReference"
}
],
"defaultMessage": "must not be null",
"objectName": "localOrder",
"field": "thirdPartyReference",
"bindingFailure": false,
"code": "NotNull"
}
],
"path": "/o/op/1/order/local"
}
{
"status": "fail",
"msg": "reference has already been used 123456789"
}