⌘K
Order lifecycle
Ordering Workflow
Ordering channel
Order
Fulfillment
The Online Ordering API follows a strict transactional workflow to ensure data integrity and stock availability.
1
Preview2
Create- Retrieve Configuration: Get brand specific settings via
/brands/webordering-configuration. - Get Menu: Download the hash map via
/menus/id/hash_map. - Build Cart: Construct the recursive product object locally.
- Preview (Validation): Call
/orders/preview.This step validates stock, calculates discounts/fees, and ensures the payload format is correct. It does not persist the order. - Create (Persistence): Call
/orderswith the exact same payload + anidempotency-key.This finalizes the transaction, triggers the Kitchen Display System (KDS), and processes payment.