# Choose production quantities and released workflows for a section

[All field references](/en/developers/field-reference) · [Shipping](/en/developers/fields-group-shipping)

`GET /v1/dispatches/production-options`

Exact picked components and active production workflows. Also requires the current permission to create production jobs. Workflow definitions are not returned.

Required scopes: `"dispatch:production"`.

[How to read these tables](/en/developers/field-reference#reading-the-field-tables)

## Parameters

### query: section_id

Required. Your own picked section.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | string | Whole value | Not allowed | format: `"uuid"`. |

## Request body

No request body is defined for this operation.

## Response 200

200: Success

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.section_id | string | Required when parent is present | Not allowed | Identifier of the dispatch section; choose a new UUID for planning and retain it for subsequent section actions. format: `"uuid"`. |
| data.order_id | string | Required when parent is present | Not allowed | Meykt order identifier from an authorized order read; not the order number or external reference. format: `"uuid"`. |
| data.version | integer | Required when parent is present | Not allowed | Current version of this record; use it unchanged when an operation asks for expected_version. exclusiveMinimum: `0`. |
| data.lines | array | Required when parent is present | Not allowed | Complete line selection for this operation; each entry must satisfy the selected action's quantity and identity rules. maxItems: `250`. |
| data.lines[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.lines[].line_id | string | Required when parent is present | Not allowed | Identifier of the specific line in the selected delivery, return case or dispatch section. format: `"uuid"`. |
| data.lines[].component_id | string | Optional | Not allowed | Identifier of the specific component within the relevant order, shipment or dispatch section. format: `"uuid"`. |
| data.lines[].order_item_id | string | Required when parent is present | Not allowed | Identifier of the specific order line from the current order response. format: `"uuid"`. |
| data.lines[].quantity | string | Required when parent is present | Not allowed | Exact quantity in the stated unit, sent as a decimal string; never send a floating-point approximation. pattern: `"^(0\|[1-9]\\d{0,8})(\\.\\d{1,6})?$"`. |
| data.lines[].stock_product_id | string | Required when parent is present | Not allowed | Physical article whose inventory is tracked for this product or variant. format: `"uuid"`. |
| data.lines[].structure_part_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Identifier of the component in the saved product structure. |
| data.lines[].structure_part_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of the component in the saved product structure. format: `"uuid"`. |
| data.lines[].structure_part_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Identifier of the component in the saved product structure. |
| data.lines[].workflow_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Identifier of an offered workflow selected to prepare production; does not itself start a machine. |
| data.lines[].workflow_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of an offered workflow selected to prepare production; does not itself start a machine. format: `"uuid"`. |
| data.lines[].workflow_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Identifier of an offered workflow selected to prepare production; does not itself start a machine. |
| data.workflows | array | Required when parent is present | Not allowed | Explicit workflow selection for every offered component requiring production. maxItems: `250`. |
| data.workflows[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.workflows[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: `"uuid"`. |
| data.workflows[].name | string | Required when parent is present | Not allowed | Display name. |

## Response 401, 403, 404, 409, 422, 429, 500, 503

401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 409: The same ID already exists with different content. It is never overwritten. 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: `"uri"`. |
