Check the production preparation for a section
All field references · Shipping
POST /v1/dispatches/production-commands/preview
Runs the same business writer and then fully rolls it back. saved=false is not a booking receipt. Test keys cannot read real warehouse, production or billing state this way.
Required scopes: "dispatch:production".
#Request body
Request body required.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| idempotency_key | string | Required when parent is present | Not allowed | Client-generated UUID for one intended command. Retry an unchanged command with the same UUID after an unclear outcome. format: "uuid". |
| 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". |
| expected_version | integer | Required when parent is present | Not allowed | Current version from the latest read; an outdated version rejects the operation instead of overwriting concurrent changes. exclusiveMinimum: 0. |
| priority | string | Optional | Not allowed | Processing priority selected for this order or production preparation. Default: "normal". enum: ["low","normal","high","urgent"]. |
| workflows | array | Required when parent is present | Not allowed | Explicit workflow selection for every offered component requiring production. minItems: 1. maxItems: 250. |
| workflows[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| workflows[].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". |
| workflows[].workflow_id | string | Required when parent is present | Not allowed | Identifier of an offered workflow selected to prepare production; does not itself start a machine. format: "uuid". |
| workflows[].component_id | string | Optional | Not allowed | Identifier of the specific component within the relevant order, shipment or dispatch section. format: "uuid". |
#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.saved | boolean | Required when parent is present | Not allowed | Whether this operation persisted a change; false identifies a preview rather than a booking. const: false. |
| 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.job_count | integer | Required when parent is present | Not allowed | Number of production jobs prepared by this command. minimum: 1. maximum: 250. |
| data.expected_version | integer | Required when parent is present | Not allowed | Latest-read version; stale versions rejected. exclusiveMinimum: 0. |
#Response 401, 403, 404, 409, 413, 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. 413: The JSON request exceeds 256 KiB. 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". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-preview-dispatch-production.md