# Book physical assembly, consumption, output or disassembly

[All field references](/en/developers/field-reference) · [Manufacturing](/en/developers/fields-group-manufacturing)

`POST /v1/manufacturing/commands`

assemble, consume, output, disassemble and recovery_output use the same validated warehouse path. Physical confirmation is binding; no automatic order release, refund or raw-material restoration. Recovery only allows documented earlier work, into quarantine. After an unclear response, read the original receipt first. Retry with exactly the same key and the same arguments; no new key and no new booking. If live API access has been blocked in the meantime, use the existing authorized user interface, AI tools or data export to clarify; blocked access does not prove a failure.

Required scopes: `"inventory:assemble"`, `"products:read"`.

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

## 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 | New client UUID per command; after unclear outcomes retry the same UUID and arguments. format: `"uuid"`. |
| operation | alternative (anyOf) | Required when parent is present | Not allowed | Select kind, then supply its required fields. |
| operation | object | Conditional: anyOf 1/5 | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Select kind, then supply its required fields. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Kind selects required fields. const: `"assemble"`. |
| operation.manufacturing_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Manufacturing operation identifier. For a new operation choose a new UUID; later output actions use the existing identifier. format: `"uuid"`. |
| operation.owner_organization_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Goods owner from current authorized options. format: `"uuid"`. |
| operation.definition_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Identifier of the published warehouse manufacturing definition. format: `"uuid"`. |
| operation.expected_definition_revision | integer | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Current revision of the selected manufacturing definition; changed definitions require a new read and deliberate selection. minimum: `1`. maximum: `2147483647`. |
| operation.warehouse_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Warehouse identifier from authorized options. format: `"uuid"`. |
| operation.output_stock_item_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Existing stock item for the output; null lets the authorized operation resolve the output stock item. |
| operation.output_stock_item_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Existing stock item for the output; null lets the authorized operation resolve the output stock item. format: `"uuid"`. |
| operation.output_stock_item_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Existing stock item for the output; null lets the authorized operation resolve the output stock item. |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.components | array | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Choose each source balance once per component slot. Repeated references to the same balance must use the same expected_version. minItems: `1`. maxItems: `250`. x-meykt-unique-by: `[["definition_part_id","balance_id"]]`. |
| operation.components[] | object | Every array item | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Additional properties are not allowed. |
| operation.components[].definition_part_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Identifier of the component slot in the manufacturing definition. format: `"uuid"`. |
| operation.components[].stock_item_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Offered stock item ID for this owner/warehouse; not a SKU. format: `"uuid"`. |
| operation.components[].balance_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Stock balance ID from the current warehouse view. format: `"uuid"`. |
| operation.components[].expected_version | integer | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Latest-read version; stale versions rejected. minimum: `1`. maximum: `2147483647`. |
| operation.components[].quantity | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.reference | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Displayed source-system reference. minLength: `1`. maxLength: `200`. |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Recorded reason. minLength: `1`. maxLength: `500`. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. true only after this physical work was performed. const: `true`. |
| operation.output | object | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Actual destination, condition and receipt details of the produced goods; null only where the selected action explicitly allows no output. Additional properties are not allowed. |
| operation.output.location_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Storage location identifier in the selected warehouse. format: `"uuid"`. |
| operation.output.condition_id | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Condition identifier from current choices. format: `"uuid"`. |
| operation.output.received_at | string | Required when parent is present | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Time the physical receipt occurred, including UTC Z or a numeric time-zone offset. format: `"date-time"`. |
| operation.output.batch | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Goods batch label; null = none supplied. |
| operation.output.batch | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. minLength: `1`. maxLength: `200`. |
| operation.output.batch | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.output.expires_on | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.output.expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. format: `"date"`. |
| operation.output.expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/5: At least one alternative must match. Applies to kind = `"assemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation | object | Conditional: anyOf 2/5 | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Select kind, then supply its required fields. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Kind selects required fields. const: `"consume"`. |
| operation.manufacturing_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Manufacturing operation identifier. For a new operation choose a new UUID; later output actions use the existing identifier. format: `"uuid"`. |
| operation.owner_organization_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Goods owner from current authorized options. format: `"uuid"`. |
| operation.definition_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Identifier of the published warehouse manufacturing definition. format: `"uuid"`. |
| operation.expected_definition_revision | integer | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Current revision of the selected manufacturing definition; changed definitions require a new read and deliberate selection. minimum: `1`. maximum: `2147483647`. |
| operation.warehouse_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Warehouse identifier from authorized options. format: `"uuid"`. |
| operation.output_stock_item_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Existing stock item for the output; null lets the authorized operation resolve the output stock item. |
| operation.output_stock_item_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Existing stock item for the output; null lets the authorized operation resolve the output stock item. format: `"uuid"`. |
| operation.output_stock_item_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Existing stock item for the output; null lets the authorized operation resolve the output stock item. |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.components | array | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Choose each source balance once per component slot. Repeated references to the same balance must use the same expected_version. minItems: `1`. maxItems: `250`. x-meykt-unique-by: `[["definition_part_id","balance_id"]]`. |
| operation.components[] | object | Every array item | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Additional properties are not allowed. |
| operation.components[].definition_part_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Identifier of the component slot in the manufacturing definition. format: `"uuid"`. |
| operation.components[].stock_item_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Offered stock item ID for this owner/warehouse; not a SKU. format: `"uuid"`. |
| operation.components[].balance_id | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Stock balance ID from the current warehouse view. format: `"uuid"`. |
| operation.components[].expected_version | integer | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Latest-read version; stale versions rejected. minimum: `1`. maximum: `2147483647`. |
| operation.components[].quantity | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.reference | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Displayed source-system reference. minLength: `1`. maxLength: `200`. |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. Recorded reason. minLength: `1`. maxLength: `500`. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 2/5: At least one alternative must match. Applies to kind = `"consume"`, physically_confirmed = `true`. true only after this physical work was performed. const: `true`. |
| operation | object | Conditional: anyOf 3/5 | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Select kind, then supply its required fields. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches, the then rules apply; otherwise the else rules apply. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Kind selects required fields. const: `"output"`. |
| operation.manufacturing_id | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Manufacturing operation identifier. For a new operation choose a new UUID; later output actions use the existing identifier. format: `"uuid"`. |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Latest-read version; stale versions rejected. minimum: `1`. maximum: `2147483647`. |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.output | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Actual destination, condition and receipt details of the produced goods; null only where the selected action explicitly allows no output. |
| operation.output | object | Conditional: anyOf 1/2 | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Actual destination, condition and receipt details of the produced goods; null only where the selected action explicitly allows no output. Additional properties are not allowed. |
| operation.output.location_id | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Storage location identifier in the selected warehouse. format: `"uuid"`. |
| operation.output.condition_id | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Condition identifier from current choices. format: `"uuid"`. |
| operation.output.received_at | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Time the physical receipt occurred, including UTC Z or a numeric time-zone offset. format: `"date-time"`. |
| operation.output.batch | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.output.batch | string | Conditional: anyOf 1/2 | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. minLength: `1`. maxLength: `200`. |
| operation.output.batch | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.output.expires_on | alternative (anyOf) | Optional | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.output.expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. format: `"date"`. |
| operation.output.expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.output | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Actual destination, condition and receipt details of the produced goods; null only where the selected action explicitly allows no output. |
| operation.close_remaining_as_scrap | boolean | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Explicitly close the unfinished remainder as scrap. Zero output requires this to be true and output to be null. |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Recorded reason. minLength: `1`. maxLength: `500`. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. true only after this physical work was performed. const: `true`. |
| operation | object | Conditional: then | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.output | null | Optional | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.close_remaining_as_scrap | boolean | Optional | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. const: `true`. |
| operation | object | Conditional: else | Allowed by schema | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Unless `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.output | object | Optional | Not allowed | anyOf 3/5: At least one alternative must match. Applies to kind = `"output"`, physically_confirmed = `true`. Unless `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation | object | Conditional: anyOf 4/5 | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Select kind, then supply its required fields. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Kind selects required fields. const: `"recovery_output"`. |
| operation.manufacturing_id | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Manufacturing operation identifier. For a new operation choose a new UUID; later output actions use the existing identifier. format: `"uuid"`. |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Latest-read version; stale versions rejected. minimum: `1`. maximum: `2147483647`. |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.output | object | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Actual destination, condition and receipt details of the produced goods; null only where the selected action explicitly allows no output. Additional properties are not allowed. |
| operation.output.location_id | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Storage location identifier in the selected warehouse. format: `"uuid"`. |
| operation.output.condition_id | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Condition identifier from current choices. format: `"uuid"`. |
| operation.output.received_at | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Time the physical receipt occurred, including UTC Z or a numeric time-zone offset. format: `"date-time"`. |
| operation.output.batch | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Goods batch label; null = none supplied. |
| operation.output.batch | string | Conditional: anyOf 1/2 | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. minLength: `1`. maxLength: `200`. |
| operation.output.batch | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.output.expires_on | alternative (anyOf) | Optional | Allowed by schema | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.output.expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. format: `"date"`. |
| operation.output.expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. Recorded reason. minLength: `1`. maxLength: `500`. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 4/5: At least one alternative must match. Applies to kind = `"recovery_output"`, physically_confirmed = `true`. true only after this physical work was performed. const: `true`. |
| operation | object | Conditional: anyOf 5/5 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Select kind, then supply its required fields. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Kind selects required fields. const: `"disassemble"`. |
| operation.output_id | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Identifier of a recorded manufacturing output selected for disassembly. format: `"uuid"`. |
| operation.source_balance_id | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Exact stock balance from which goods are consumed or moved. format: `"uuid"`. |
| operation.expected_balance_version | integer | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Current version of the selected stock balance from the latest warehouse read. minimum: `1`. maximum: `2147483647`. |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.recovered_components | array | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Actual recovered quantity for each original component slot, including destination and condition for nonzero quantities. minItems: `1`. maxItems: `100`. x-meykt-unique-by: `[["definition_part_id"]]`. |
| operation.recovered_components[] | object | Every array item | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches, the then rules apply; otherwise the else rules apply. Additional properties are not allowed. |
| operation.recovered_components[].definition_part_id | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Identifier of the component slot in the manufacturing definition. format: `"uuid"`. |
| operation.recovered_components[].stock_item_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Offered stock item ID for this owner/warehouse; not a SKU. |
| operation.recovered_components[].stock_item_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Offered stock item ID for this owner/warehouse; not a SKU. format: `"uuid"`. |
| operation.recovered_components[].stock_item_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Offered stock item ID for this owner/warehouse; not a SKU. |
| operation.recovered_components[].quantity | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| operation.recovered_components[].location_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Storage location identifier in the selected warehouse. |
| operation.recovered_components[].location_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Storage location identifier in the selected warehouse. format: `"uuid"`. |
| operation.recovered_components[].location_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Storage location identifier in the selected warehouse. |
| operation.recovered_components[].condition_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Condition identifier from current choices. |
| operation.recovered_components[].condition_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Condition identifier from current choices. format: `"uuid"`. |
| operation.recovered_components[].condition_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Condition identifier from current choices. |
| operation.recovered_components[].batch | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Goods batch label; null = none supplied. |
| operation.recovered_components[].batch | string | Conditional: anyOf 1/2 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. minLength: `1`. maxLength: `200`. |
| operation.recovered_components[].batch | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.recovered_components[].expires_on | alternative (anyOf) | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.recovered_components[].expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 1/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. format: `"date"`. |
| operation.recovered_components[].expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`.; anyOf 2/2: At least one alternative must match. Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.recovered_components[] | object | Conditional: then | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].stock_item_id | null | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].location_id | null | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].condition_id | null | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].batch | null | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].expires_on | null | Optional | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. When `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[] | object | Conditional: else | Allowed by schema | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Unless `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. |
| operation.recovered_components[].location_id | string | Optional | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Unless `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. format: `"uuid"`. |
| operation.recovered_components[].condition_id | string | Optional | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Unless `{"properties":{"quantity":{"const":"0"}},"required":["quantity"]}` matches. format: `"uuid"`. |
| operation.confirm_component_shortage | boolean | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Explicit acknowledgement that fewer components were physically recovered than the original structure specifies. |
| operation.occurred_at | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Time the physical business event occurred, including UTC Z or a numeric time-zone offset. format: `"date-time"`. |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. Recorded reason. minLength: `1`. maxLength: `500`. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 5/5: At least one alternative must match. Applies to kind = `"disassemble"`, physically_confirmed = `true`. true only after this physical work was performed. const: `true`. |

## 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.id | string | Required when parent is present | Not allowed | Stable entry identifier. format: `"uuid"`. |
| data.public_ref | string | Required when parent is present | Not allowed | Public reference of this manufacturing operation, stable for follow-up reads. format: `"uuid"`. |
| data.organization_id | string | Required when parent is present | Not allowed | Organization owning this authorized record. format: `"uuid"`. |
| data.idempotency_key | string | Required when parent is present | Not allowed | New client UUID per command; after unclear outcomes retry the same UUID and arguments. format: `"uuid"`. |
| data.kind | string | Required when parent is present | Not allowed | Kind selects required fields. enum: `["assemble","consume","output","disassemble","recovery_output"]`. |
| data.manufacturing_id | string | Required when parent is present | Not allowed | Manufacturing operation identifier. For a new operation choose a new UUID; later output actions use the existing identifier. format: `"uuid"`. |
| data.version | integer | Required when parent is present | Not allowed | Current record version; use unchanged as expected_version. minimum: `1`. maximum: `2147483647`. |
| data.quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| data.produced | string | Required when parent is present | Not allowed | Total quantity already produced by this manufacturing operation. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| data.scrapped | string | Required when parent is present | Not allowed | Total quantity explicitly recorded as scrap. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| data.produced_delta | string | Required when parent is present | Not allowed | Quantity added to produced by this command. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| data.scrapped_delta | string | Required when parent is present | Not allowed | Quantity added to scrap by this command. pattern: `"^(0\|[1-9]\\d{0,8})$"`. |
| data.state | string | Required when parent is present | Not allowed | Operation state; processing/decision states do not prove completion. enum: `["in_progress","completed","closed_with_scrap"]`. |
| data.output_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Identifier of a recorded manufacturing output selected for disassembly. |
| data.output_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of a recorded manufacturing output selected for disassembly. format: `"uuid"`. |
| data.output_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Identifier of a recorded manufacturing output selected for disassembly. |
| data.stock_events | array | Required when parent is present | Not allowed | Stock movement identifiers created by this manufacturing action. maxItems: `251`. |
| data.stock_events[] | string | Every array item | Not allowed | format: `"uuid"`. |
| data.created_at | string | Required when parent is present | Not allowed | Created at, with time-zone offset. format: `"date-time"`. |

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