Order and Pay
Create Local Order
Changed onCreates 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
- Base URLhttps://api.trial.lsk.lightspeed.app
- URLhttps://api.trial.lsk.lightspeed.app/o/op/1/order/local
- AuthOAuth 2Authorization code: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/authToken URL: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/token scopes: orders-api
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
},
"collectionCode": "ABC-1234",
"orderCollectionTimeAsIso8601": "2024-04-04T09:42:00.000+00:00",
"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"
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added the new optional request property
////
- info