Create point-of-sale orders and retrieve them by ID or external reference. Orders convert to invoices at checkout.
GET Order by externalOrderId.
Looks up an order by the externalOrderId your application supplied at creation.
path Parameters
externalOrderIdThe external order identifier.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Order by externalOrderId. › Responses
Returns the order details.
idUnique internal identifier for the order.
customerIdCustomer identifier associated with this order.
List of order line items.
invoiceNumberInvoice number associated with this order.
statusRepresents the current status of an order.
dateTimeCreatedDate when the order was created.
externalOrderIdExternal order identifier (maximum 20 characters).
Represents a delivery address with contact information.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteAny additional notes for the order.
routeDelivery route code. Inherited from the customer when not supplied explicitly.
seqStop sequence within the delivery route.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
paymentMethodPayment method for an order.
cardLast4Last 4 digits of the card number, for display. Only populated when payment method is a credit card.
cardExpCard expiration in MMYY format. Only populated when payment method is a credit card.
PUT Order by externalOrderId.
Creates or replaces the order with this externalOrderId — safe to retry with the same body.
- No such order: created exactly like
POST /orders; responds201 Createdwith aLocationheader. - Order exists: replaced with the body and returned with
200. Omitted optional fields are cleared or defaulted the same wayPOSTwould (e.g. nopaymentclears the payment, noroutefalls back to the customer's).itemsworks as on PATCH: send each line you keep with itsidto update it in place; lines left out are removed. The customer cannot change:customeris ignored on replace, and a differentcustomerIdreturns400. Allowed only while the order isOrderEnteredorUnpickedand has not been checked out; otherwise409.
The body's externalOrderId must match the path. X-Customer-Pin is required when payment.method is OnAccount, or when paying with a stored credit card (by cardId).
path Parameters
externalOrderIdThe external order identifier.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required when payment is OnAccount or uses a stored credit card (CardId).
PUT Order by externalOrderId. › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: customerId | |
| type = object · requires: customer |
customerIdExisting customer ID. If provided, the customer object is ignored.
externalOrderIdExternal order identifier (maximum 20 characters).
Request model for creating a new customer.
statusRepresents the current status of an order.
List of items in the order (at least one). On a PUT replace this is the full line list.
Request model for a delivery address.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
orderDateTimeThe Date and time when the order was placed. If not provided (or null), it defaults to the current date and time.
noteAny additional notes for the order.
routeDelivery route code (maximum 8 characters). Optional — defaults to the customer's route.
seqStop sequence within the delivery route. Optional — defaults to the customer's sequence.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
Payment information for an order. Nested within OrderRequest. Supports On-Account or Credit Card (stored card by ID, or temp card).
PUT Order by externalOrderId. › Responses
Order replaced; returns the updated order.
idUnique internal identifier for the order.
customerIdCustomer identifier associated with this order.
List of order line items.
invoiceNumberInvoice number associated with this order.
statusRepresents the current status of an order.
dateTimeCreatedDate when the order was created.
externalOrderIdExternal order identifier (maximum 20 characters).
Represents a delivery address with contact information.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteAny additional notes for the order.
routeDelivery route code. Inherited from the customer when not supplied explicitly.
seqStop sequence within the delivery route.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
paymentMethodPayment method for an order.
cardLast4Last 4 digits of the card number, for display. Only populated when payment method is a credit card.
cardExpCard expiration in MMYY format. Only populated when payment method is a credit card.
PATCH Order by externalOrderId.
Same as PATCH /orders/id/{id}, looked up by the externalOrderId your application supplied at creation.
path Parameters
externalOrderIdThe external order identifier.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required when payment is OnAccount or uses a stored credit card (CardId).
PATCH Order by externalOrderId. › Request Body
statusRepresents the current status of an order.
The order's full item list, replaced as a whole (JSON Merge Patch, RFC 7396). Items with an
id update that line in place, items without one are added, and existing lines left out
are removed. Lines are renumbered in list order. Omit to leave the lines untouched.
Request model for a delivery address.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteNotes for the order.
routeDelivery route code (maximum 8 characters).
seqStop sequence within the delivery route.
Replacement list of pre-payments. An empty list clears them.
Represents a payment endpoint configuration for external payment systems.
Payment information for an order. Nested within OrderRequest. Supports On-Account or Credit Card (stored card by ID, or temp card).
PATCH Order by externalOrderId. › Responses
Returns the updated order.
idUnique internal identifier for the order.
customerIdCustomer identifier associated with this order.
List of order line items.
invoiceNumberInvoice number associated with this order.
statusRepresents the current status of an order.
dateTimeCreatedDate when the order was created.
externalOrderIdExternal order identifier (maximum 20 characters).
Represents a delivery address with contact information.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteAny additional notes for the order.
routeDelivery route code. Inherited from the customer when not supplied explicitly.
seqStop sequence within the delivery route.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
paymentMethodPayment method for an order.
cardLast4Last 4 digits of the card number, for display. Only populated when payment method is a credit card.
cardExpCard expiration in MMYY format. Only populated when payment method is a credit card.
GET Order by id.
Looks up an order by its internal POS identifier — the one assigned at creation and returned in the Location header of POST /orders.
path Parameters
idThe internal order identifier.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Order by id. › Responses
Returns the order details.
idUnique internal identifier for the order.
customerIdCustomer identifier associated with this order.
List of order line items.
invoiceNumberInvoice number associated with this order.
statusRepresents the current status of an order.
dateTimeCreatedDate when the order was created.
externalOrderIdExternal order identifier (maximum 20 characters).
Represents a delivery address with contact information.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteAny additional notes for the order.
routeDelivery route code. Inherited from the customer when not supplied explicitly.
seqStop sequence within the delivery route.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
paymentMethodPayment method for an order.
cardLast4Last 4 digits of the card number, for display. Only populated when payment method is a credit card.
cardExpCard expiration in MMYY format. Only populated when payment method is a credit card.
PATCH Order by id.
Partially updates an order by its internal POS identifier. Only fields present in the body are changed; omitted fields keep their current values.
items, when sent, is the order's full item list (JSON Merge Patch, RFC 7396: an array replaces the stored array as a whole). An item with an id (from the order's items) updates that line in place, an item without one is added, and lines left out are removed — to change one line, send every line you want to keep, with its id. Within an item with an id, fields you leave out keep the line's current values. A line's id can't change product. To leave the lines untouched, omit items. prePayments, when sent, replaces the list (an empty list clears it). payment and paymentEndpoint each replace the order's payment and cannot be sent together.
The order can only be edited while it is OrderEntered or Unpicked and has not been checked out; otherwise 409.
X-Customer-Pin is required when payment.method is OnAccount, or when paying with a stored credit card (by cardId).
path Parameters
idThe internal order identifier.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required when payment is OnAccount or uses a stored credit card (CardId).
PATCH Order by id. › Request Body
statusRepresents the current status of an order.
The order's full item list, replaced as a whole (JSON Merge Patch, RFC 7396). Items with an
id update that line in place, items without one are added, and existing lines left out
are removed. Lines are renumbered in list order. Omit to leave the lines untouched.
Request model for a delivery address.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteNotes for the order.
routeDelivery route code (maximum 8 characters).
seqStop sequence within the delivery route.
Replacement list of pre-payments. An empty list clears them.
Represents a payment endpoint configuration for external payment systems.
Payment information for an order. Nested within OrderRequest. Supports On-Account or Credit Card (stored card by ID, or temp card).
PATCH Order by id. › Responses
Returns the updated order.
idUnique internal identifier for the order.
customerIdCustomer identifier associated with this order.
List of order line items.
invoiceNumberInvoice number associated with this order.
statusRepresents the current status of an order.
dateTimeCreatedDate when the order was created.
externalOrderIdExternal order identifier (maximum 20 characters).
Represents a delivery address with contact information.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
noteAny additional notes for the order.
routeDelivery route code. Inherited from the customer when not supplied explicitly.
seqStop sequence within the delivery route.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
paymentMethodPayment method for an order.
cardLast4Last 4 digits of the card number, for display. Only populated when payment method is a credit card.
cardExpCard expiration in MMYY format. Only populated when payment method is a credit card.
POST Order.
Create a point-of-sale order capturing the customer's purchase intent. Responds 201 Created with a Location header pointing to the created order (e.g. /orders/id/15007763).
X-Customer-Pin is required when payment.method is OnAccount, or when paying with a stored credit card (by cardId). It is not required for ad-hoc temp-card, cash, or food-stamp payments.
Include a paymentEndpoint to receive payment webhooks at checkout — without one, the invoice generated from the order remains unpaid and requires manual processing. Webhooks time out at 30 seconds.
Webhook orders: when a paymentEndpoint is supplied, the order's payment method is automatically set to Webhook — the configured processor settles the order at checkout. A paymentEndpoint therefore cannot be combined with a payment block (OnAccount/CreditCard); sending both returns 400. Set paymentEndpoint.version to the webhook contract your endpoint speaks, 1 or 2 (absent means 1): the register settles the order through the matching contract, and a mismatch fails the payment at checkout.
Temp credit cards: a one-off payment.card is tokenized with the payment gateway on order creation and stored as a masked PAN + expiry + gateway token — the raw card number is never persisted.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required when payment is OnAccount or uses a stored credit card (CardId).
POST Order. › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: customerId | |
| type = object · requires: customer |
customerIdExisting customer ID. If provided, the customer object is ignored.
externalOrderIdExternal order identifier (maximum 20 characters).
Request model for creating a new customer.
statusRepresents the current status of an order.
List of items in the order (at least one). On a PUT replace this is the full line list.
Request model for a delivery address.
orderMethodRepresents the method by which an order will be fulfilled.
pickupDeliveryTimeScheduled pickup or delivery time.
orderDateTimeThe Date and time when the order was placed. If not provided (or null), it defaults to the current date and time.
noteAny additional notes for the order.
routeDelivery route code (maximum 8 characters). Optional — defaults to the customer's route.
seqStop sequence within the delivery route. Optional — defaults to the customer's sequence.
List of pre-payments made for this order.
Represents a payment endpoint configuration for external payment systems.
Payment information for an order. Nested within OrderRequest. Supports On-Account or Credit Card (stored card by ID, or temp card).
POST Order. › Responses
Order created successfully.