> ## 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.

# Kitchen capacity and throttling

> Protect the kitchen during a rush without turning off the store.

A rush of marketplace orders should not bury the kitchen or the in-store line. Set capacity rules per store and Lula throttles automatically, then restores normal service when the queue clears.

```bash theme={null}
curl -X PUT https://api.lulacommerce.com/v1/stores/ext:0142/capacity \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "max_open_kitchen_orders": 12,
    "max_quoted_prep_minutes": 25,
    "when_exceeded": "pause_kitchen_items",
    "channels": ["doordash", "ubereats", "grubhub"]
  }'
```

## What happens when a limit is reached

| `when_exceeded` | Effect |
| - | - |
| `extend_prep_time` | Quoted prep times grow with the queue, so couriers arrive when the food is ready |
| `pause_kitchen_items` | Kitchen items show as unavailable; packaged and retail items stay on sale |
| `pause_store` | The store pauses on the selected channels until the queue clears |

`GET /stores/{store_id}/capacity` shows the current queue, the quoted prep time, and whether the store is throttled. Every change emits `store.throttle_changed`, so your operations team sees throttling as it happens.

## Use it with your own signals

Capacity rules work on Lula's view of the queue. If your kitchen systems know more (a fryer down, a crew short), call `POST /stores/{store_id}/pause` with specific `channels`, or mark the affected items or components unavailable. Both work alongside automatic throttling.


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