--- sidebar_label: 'Production and capacity' sidebar_position: 4 --- # Production and capacity :::warning This article is under review. The information in the article is mostly obsolete and refer to already removed configurations. Do not use information in this article without active communication with Future Ordering. ::: :::note These articles use the stores import formats to describe stores, most important for producers of the store data (e.g. POS system integration creating stores). Since a store can contain tenant-specific extensions, use the Stores schema endpoints in your specific tenant to understand details on consuming store data. ::: `production` defines how order load is scheduled and limited for a store. It combines slot duration, an order cost estimator, and capacity schedules that are evaluated with conditions. ## Production fields | Field | Type | Required | Description | Example | |---|---|---|---|---| | `timeslotDuration` | `string` | Yes | Duration of one production slot in ISO-8601 format. | `"PT10M"` | | `orderCostEstimator` | `object` | Yes | Defines how an order consumes capacity. | `{ "type": "PointsPerOrder" }` | | `capacity` | `array` | Yes | Ordered capacity rules with conditions and schedules. | See [Capacity rules](#capacity-rules) | ## Order cost estimator | Field | Type | Required | Description | Example | |---|---|---|---|---| | `type` | `string` | Yes | How order cost is calculated. Allowed values: `PointsPerOrder`, `OrderBasketPoints`. | `"PointsPerOrder"` | - `PointsPerOrder` is typically used for slot-time based production planning. - `OrderBasketPoints` is typically used for promise-time based planning. ## Capacity rules Each `capacity` entry has `conditions` and a `schedule`. | Field | Type | Required | Description | Example | |---|---|---|---|---| | `conditions` | `array` | Yes | One or more conditions that must all match. Uses the same condition model as opening hours. | `[{ "type": "specificdates", "dates": ["2026-06-05"] }]` | | `schedule` | `array` | Yes | One or more time intervals and their slot capacity. | `[{ "from": "00:00", "to": "00:00", "toNextDay": true, "capacityPerTimeslot": 200 }]` | Condition types are documented in [Opening hours](opening-hours.md). ### Capacity schedule fields | Field | Type | Required | Description | Example | |---|---|---|---|---| | `from` | `string(HH:mm)` | Yes | Start time for the capacity interval. | `"10:00"` | | `to` | `string(HH:mm)` | Yes | End time for the capacity interval. | `"14:00"` | | `toNextDay` | `boolean` | No | When `true`, `to` is interpreted as next day. | `false` | | `capacityPerTimeslot` | `integer` | No | Max capacity available per slot in this interval. | `200` | ## Example ```json { "production": { "timeslotDuration": "PT10M", "orderCostEstimator": { "type": "PointsPerOrder" }, "capacity": [ { "conditions": [ { "type": "specificdates", "dates": ["2026-06-05"] } ], "schedule": [ { "from": "00:00", "to": "00:00", "toNextDay": true, "capacityPerTimeslot": 200 } ] } ] } } ```