MeyktAPI Documentation

Retrieve the original production preparation

All field references · Shipping

GET /v1/dispatches/production-commands/{idempotencyKey}

Reads the production actually prepared in this connection context. A stored call without a confirmed job receipt stays null and must not be retried with a new identifier.

Required scopes: "dispatch:production".

How to read these tables

#Parameters

#path: idempotencyKey

Required. The original idempotency key, unchanged.

FieldTypePresencenullMeaning, limits and examples
$ (whole value)stringWhole valueNot allowedformat: "uuid".

#Request body

No request body is defined for this operation.

#Response 200

200: Success

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowedAdditional properties are not allowed.
dataalternative (anyOf)Required when parent is presentAllowed by schemaAuthorized response payload or documented event data.
dataobjectConditional: anyOf 1/2Not allowedanyOf 1/2: At least one alternative must match. Authorized response payload or documented event data. Additional properties are not allowed.
data.section_idstringRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Identifier of the dispatch section; choose a new UUID for planning and retain it for subsequent section actions. format: "uuid".
data.production_order_idstringRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Identifier of the production order created for this dispatch section. format: "uuid".
data.job_countintegerRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Number of production jobs prepared by this command. minimum: 1. maximum: 250.
data.versionintegerRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Current version of this record; use it unchanged when an operation asks for expected_version. exclusiveMinimum: 0.
data.idempotency_keystringRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Client-generated UUID for one intended command. Retry an unchanged command with the same UUID after an unclear outcome. format: "uuid".
data.created_atstringRequired when parent is presentNot allowedanyOf 1/2: At least one alternative must match. Time this record was created, including a time-zone offset. format: "date-time".
datanullConditional: anyOf 2/2Allowed by schemaanyOf 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

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowed—
errorobjectRequired when parent is presentNot allowedMachine-readable error code; use it to select the documented recovery path.
error.codestringRequired when parent is presentNot allowedMachine-readable, permanently stable error code. Program against it, not against message.
error.messagestringRequired when parent is presentNot allowedExplanation for humans. May change at any time.
error.fieldstringOptionalNot allowedAffected location in the request, if it can be determined.
error.doc_urlstringRequired when parent is presentNot allowedDocumentation link explaining this API error. format: "uri".

Machine-readable version of this page: https://www.meykt.com/developers/fields-get-dispatch-production-command.md