Create order
Create order
Call this after the diner completes payment and is redirected back.
This endpoint does three things in sequence:
- Validates the cart (items, timeslot, minimum order, etc.)
- Checks payment status in real-time against the payment processor (does NOT depend on webhooks — makes a synchronous call to verify)
- If fully paid, converts the cart to a confirmed order
Returns the full order object on success, or 422 with specific errors
if the cart is invalid or payment hasn’t completed yet.
If the order was already created (e.g. duplicate call), returns the existing order.
After success, the session automatically gets a new empty cart.
POST
Create order
Authorizations
Merchant storefront identifier. Provided during onboarding.
Diner session identifier. Created by GET /channel and returned in the X-Session-Id response header.
Response
Order created successfully
Unix timestamp
Unix timestamp
Unix timestamp
Unix timestamp