Create a destination
Payload formats
lula_order_v1sends the standard order object, the same one webhooks carry.custom_templatesends a payload mapped to your existing order contract, so your API does not need a new endpoint. Lula’s integration team builds and tests the mapping with you against your sandbox.
Delivery guarantees
- Lula retries until your API returns a
2xx, with exponential backoff for up to 30 minutes. - Requests carry an
Idempotency-Keyheader with the Lula order ID, so a retry never creates a duplicate order in your system. - The order number your API returns (found at
order_id_path) is saved asexternal_order_id, so either system can look the order up by either ID. - If delivery still fails, Lula emits
order.delivery_failedand the order appears in the Lula store app, so no order is ever lost. GET /order-destinations/{id}reports success rate and latency for the last 24 hours.
Limiting what is delivered
Filter a destination bystore_ids, channels, or stations. For example, deliver only orders containing kitchen items to your kitchen order API, and let retail-only orders flow to the store app.
Status back to the channel
Your kitchen systems report progress with the standard order calls (accept, ready, complete), using either the Lula order ID or your own. Lula relays each update to the marketplace, the customer, and the courier.
Payment
Every delivered order includes apayment object. Marketplace and storefront orders are paid before they reach the store (status: paid), so your POS can release them without collecting payment. Tenders include card, wallet, EBT SNAP, loyalty, and gift card.
Test it
POST /order-destinations/{id}/test sends a sample order and returns your API’s response. In the sandbox, simulate orders on any channel to see them arrive end to end.
