> ## Documentation Index
> Fetch the complete documentation index at: https://platform.lulacommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders to your kitchen

> Receive every order from every channel in one format, and drive fulfillment from your own systems.

Orders from Lula Direct, DoorDash, Uber Eats, and Grubhub all arrive in the same format. Send them to your kitchen system or POS, and update status back to Lula. Lula relays each update to the originating channel, its customer, and its courier.

## Order lifecycle

```mermaid theme={null}
stateDiagram-v2
  [*] --> placed
  placed --> accepted
  placed --> rejected
  accepted --> preparing
  preparing --> ready
  ready --> picked_up
  picked_up --> delivered
  ready --> completed
  delivered --> completed
  accepted --> cancelled
  preparing --> cancelled
```

> [!TIP]
>
> Already have an order API that your own app uses? Lula can deliver orders straight into it. See [Connect your order API](https://platform.lulacommerce.com/guides/order-destinations.md).

## 1. Receive new orders

Subscribe an endpoint to `order.created`, `order.updated`, and `order.cancelled`. Each `order.created` event carries the full order, including items, modifiers, special instructions, and fulfillment details.

```json theme={null}
{
  "id": "evt_01J9ZZ5Y8A2B",
  "type": "order.created",
  "data": {
    "id": "ord_01J9ZR8M3T5X",
    "display_id": "4K7R",
    "store_id": "8f1c2e4a-5b6d-4e7f-9a0b-1c2d3e4f5a6b",
    "channel": "doordash",
    "status": "placed",
    "fulfillment": { "type": "delivery", "scheduled_for": null },
    "items": [
      {
        "id": "oi_1",
        "external_id": "KIT-1042",
        "name": "Chicken Taquitos (3)",
        "quantity": 2,
        "station": "kitchen",
        "modifiers": [
          { "group_name": "Dipping sauces", "option_name": "Queso", "quantity": 1, "price": { "amount": 0, "currency": "USD" } },
          { "group_name": "Dipping sauces", "option_name": "Ranch", "quantity": 1, "price": { "amount": 50, "currency": "USD" } }
        ]
      },
      {
        "id": "oi_2",
        "external_id": "028400090858",
        "name": "Potato Chips, Classic 9.25 oz",
        "quantity": 1,
        "station": "retail"
      }
    ]
  }
}
```

## 2. Route by station

Every item has a `station`. Send `kitchen` items to your kitchen display or kitchen management system and `retail` items to the pick list. Station assignment is configured per item in the Lula dashboard.

## 3. Accept and set prep time

```bash theme={null}
curl -X POST https://api.lulacommerce.com/v1/orders/ord_01J9ZR8M3T5X/accept \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "prep_time_minutes": 12 }'
```

Lula confirms the order on the channel and uses the prep time to time the courier's arrival. Orders can also be set to accept automatically per store.

## 4. Mark ready

```bash theme={null}
curl -X POST https://api.lulacommerce.com/v1/orders/ord_01J9ZR8M3T5X/ready \
  -H "Authorization: Bearer $TOKEN"
```

Courier progress arrives as `order.updated` events with `fulfillment.courier.status`. Delivery orders complete automatically after pickup. For pickup orders, call `POST /orders/{order_id}/complete` at handoff.

## Adjusting an order

If an item is unavailable after the order is placed, remove it, reduce it, or substitute it. Totals are recalculated, the customer is notified on their channel, and the difference is refunded.

```json theme={null}
{
  "adjustments": [
    { "order_item_id": "oi_2", "action": "substitute", "substitute_external_id": "028400090865" }
  ],
  "reason": "out_of_stock"
}
```

## Payment

Every order includes a `payment` object. Orders are paid before they reach the store, so `payment.status` is `paid` and your POS can release the order without collecting payment. Refunds from adjustments and cancellations update the status to `partially_refunded` or `refunded`.

## Working alongside the store app

Your integration and the Lula store app can be used together. A clerk accepting an order on the tablet and your system accepting it through the API produce the same `order.updated` event, and a second accept returns `409` so nothing happens twice.

## Modifier pricing

Modifier groups support minimum and maximum selections, pre-selected defaults, per-option prices, and a number of free selections. For example, a group with `free_selections: 2` includes the first two dips at no charge and charges each additional dip at its option price. The order shows the final price of each selection, so your kitchen and receipt systems never need to recompute it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.