# Create Local Order **POST /o/op/1/order/local** Creates a new dine-in order for a specific business location. See [Online Ordering Basics](https://api-portal.lsk.lightspeed.app/guides/tutorials/online-ordering-basics) for more details. If the [accountIdentifier](https://api-docs.lsk.lightspeed.app/operation/operation-apelocalorder#operation-apelocalorder-body-application-json-accountidentifier) of an existing order is provided in the body of the request, the request will update the existing order. ## Servers - Demo URL: https://api.trial.lsk.lightspeed.app (Demo URL) - Production URL: https://api.lsk.lightspeed.app (Production URL) ## Authentication methods - O auth2 ## Parameters ### Body: application/json (object) - **businessLocationId** (integer(int64)) The unique identifier for the business location. - **thirdPartyReference** (string) The external reference provided for this order. Must be unique. This value will be included in the order details sent to the [webhook URL](https://api-docs.lsk.lightspeed.app/operation/operation-apecreatewebhookoo#operation-apecreatewebhookoo-body-application-json-url). - **endpointId** (string) Endpoint ID for a unique webhook that has been created using [the webhook endpoint](https://api-docs.lsk.lightspeed.app/operation/operation-apecreatewebhookoo). - **customerInfo** (object) - **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`](https://api-docs.lsk.lightspeed.app/operation/operation-apelocalorder#operation-apelocalorder-body-application-json-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](https://api-docs.lsk.lightspeed.app/operation/operation-apeaccountprofiles#operation-apeaccountprofiles-200-body-application-json-accountprofilelist-code) to associate with this order. See the [order profiles](https://api-portal.lsk.lightspeed.app/guides/definitions/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) - **accountId** (string) 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), the `tableNumber` cannot be updated. - **clientCount** (integer(int32)) The number of customers for this order. If updating an existing order, (ie.`accountIdentifier` is specified), the `clientCount` cannot be updated. - **items** (array[object]) The items in this order. - **targetPrinterProfileId** (integer(int64)) The printer profile id to use for printing the receipt for this payment. If not provided, the default active printer profile for the business location will be used. ## Responses ### 200 accepted #### Body: application/json (object) - **status** (string) The response. ### 400 Bad Request. #### Body: application/json (object) - **timestamp** (string(date-time)) The date and time at which the error occurred. - **status** (integer) The HTTP status code of the error response. - **error** (string) A brief title of the error status. - **message** (string) A message describing the nature of the error in detail. - **errors** (array[object]) An array of error details, outlining specific issues with the request. - **path** (string) The path of the failed request. ### 409 Conflict #### Body: */* (object) - **status** (string) The request status. - **msg** (string) A message describing the error. [Powered by Bump.sh](https://bump.sh)