Retrieve the original manufacturing receipt
All field references · Manufacturing
GET /v1/manufacturing/commands/{idempotencyKey}
Only the original receipt from the same API connection. data=null means unknown and does not prove a failure. 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:read", "products:read".
#Parameters
#path: idempotencyKey
Required. The original idempotency key, unchanged.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#Request body
No request body is defined for this operation.
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | alternative (anyOf) | Required when parent is present | Allowed by schema | Authorized response payload or documented event data. |
| data | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Authorized response payload or documented event data. Additional properties are not allowed. |
| data.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: "uuid". |
| data.public_ref | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Public reference of this manufacturing operation, stable for follow-up reads. format: "uuid". |
| data.organization_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Organization owning this authorized record. format: "uuid". |
| data.idempotency_key | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. Kind selects required fields. enum: ["assemble","consume","output","disassemble","recovery_output"]. |
| data.manufacturing_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. Current record version; use unchanged as expected_version. minimum: 1. maximum: 2147483647. |
| data.quantity | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. Total quantity explicitly recorded as scrap. pattern: "^(0|[1-9]\\d{0,8})$". |
| data.produced_delta | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. Quantity added to scrap by this command. pattern: "^(0|[1-9]\\d{0,8})$". |
| data.state | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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 | anyOf 1/2: At least one alternative must match. 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.; 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 1/2: At least one alternative must match.; 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 | anyOf 1/2: At least one alternative must match. Stock movement identifiers created by this manufacturing action. maxItems: 251. |
| data.stock_events[] | string | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. format: "uuid". |
| data.created_at | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Created at, with time-zone offset. format: "date-time". |
| data | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Authorized response payload or documented event data. |
#Response 401, 403, 404, 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". 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-read-manufacturing-command.md