Check a physical manufacturing action without changing stock
All field references · Manufacturing
POST /v1/manufacturing/commands/preview
Checks the same real booking path and then fully rolls it back. saved=false is not a receipt; keep the current versions and concrete quantities before you execute. Test keys cannot read live goods or process them on a trial basis.
Required scopes: "inventory:assemble", "inventory:read", "products:read".
#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.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.already_applied | boolean | Required when parent is present | Not allowed | Whether the same intended operation was already applied and this response is its replay. |
| data.before_fingerprint | string | Required when parent is present | Not allowed | Opaque fingerprint of the state inspected by the preview. pattern: "^[0-9a-f]{64}$". |
| data.before | alternative (anyOf) | Required when parent is present | Allowed by schema | Business state before the proposed action; null when the action would create the record. |
| data.before | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Business state before the proposed action; null when the action would create the record. |
| data.before.{key} | any JSON value | Every additional entry | Allowed by schema | anyOf 1/2: At least one alternative must match. Operation-specific manufacturing field. Read the selected manufacturing operation and its options for the current shape. |
| data.before | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Business state before the proposed action; null when the action would create the record. |
| data.after | object | Required when parent is present | Not allowed | Prospective business state after applying this operation; a preview does not persist it. |
| data.after.{key} | any JSON value | Every additional entry | Allowed by schema | Operation-specific manufacturing field. Read the selected manufacturing operation and its options for the current shape. |
| data.effects | object | Required when parent is present | Not allowed | Business effects of the proposed operation; previews do not persist these changes. Additional properties are not allowed. |
| data.effects.kind | string | Required when parent is present | Not allowed | Kind selects required fields. enum: ["assemble","consume","output","disassemble","recovery_output"]. |
| data.effects.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.effects.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.effects.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.effects.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.effects.version | integer | Required when parent is present | Not allowed | Current record version; use unchanged as expected_version. minimum: 1. maximum: 2147483647. |
#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-manufacturing.md