Process an inbound delivery in your own warehouse
All field references · Inbound deliveries
POST /v1/inbounds/receiving-commands
Runs only the operations documented here. Quantity, current owner/operator access, revision and idempotency are checked together. After an unclear outcome, read the original receipt or retry with exactly the same idempotency key. No automatic refund or Shopify publication.
Required scopes: "inbound:receive".
#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 | Action to perform. Select kind first; only that variant determines which fields are required. |
| operation | object | Conditional: anyOf 1/7 | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Kind selects required fields. const: "handoff_recovery". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.quarantine_condition_id | string | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Quarantine condition selected for goods that are not yet released for use. format: "uuid". |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. Recorded reason. minLength: 1. maxLength: 500. |
| operation.physically_confirmed | boolean | Required when parent is present | Not allowed | anyOf 1/7: At least one alternative must match. Applies to kind = "handoff_recovery", physically_confirmed = true. true only after this physical work was performed. const: true. |
| operation | object | Conditional: anyOf 2/7 | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm". Kind selects required fields. const: "confirm". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.confirmed_eta | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm". Arrival day confirmed by the warehouse operator, with its time zone; null means no confirmed day. |
| operation.confirmed_eta | object | Conditional: anyOf 1/2 | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm".; anyOf 1/2: At least one alternative must match. A local calendar day in this time zone. Additional properties are not allowed. |
| operation.confirmed_eta.date | string | Required when parent is present | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm".; anyOf 1/2: At least one alternative must match. Calendar date as YYYY-MM-DD; interpret it in the accompanying time_zone. format: "date". |
| operation.confirmed_eta.time_zone | string | Required when parent is present | Not allowed | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm".; anyOf 1/2: At least one alternative must match. IANA time-zone name, for example Europe/Berlin; determines the local calendar day. minLength: 1. maxLength: 100. |
| operation.confirmed_eta | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/7: At least one alternative must match. Applies to kind = "confirm".; anyOf 2/2: At least one alternative must match. Arrival day confirmed by the warehouse operator, with its time zone; null means no confirmed day. |
| operation | object | Conditional: anyOf 3/7 | Not allowed | anyOf 3/7: At least one alternative must match. Applies to kind = "arrive". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 3/7: At least one alternative must match. Applies to kind = "arrive". Kind selects required fields. const: "arrive". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 3/7: At least one alternative must match. Applies to kind = "arrive". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 3/7: At least one alternative must match. Applies to kind = "arrive". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.occurred_at | string | Required when parent is present | Not allowed | anyOf 3/7: At least one alternative must match. Applies to kind = "arrive". Time the physical business event occurred, including UTC Z or a numeric time-zone offset. format: "date-time". |
| operation | object | Conditional: anyOf 4/7 | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Kind selects required fields. const: "receive". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.line_id | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Line identifier in this delivery/return/dispatch section. format: "uuid". |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Positive decimal string in the stated unit. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| operation.location_id | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Storage location identifier in the selected warehouse. format: "uuid". |
| operation.condition_id | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Condition identifier from current choices. format: "uuid". |
| operation.received_at | string | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Time the physical receipt occurred, including UTC Z or a numeric time-zone offset. format: "date-time". |
| operation.batch | alternative (anyOf) | Optional | Allowed by schema | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Goods batch label; null = none supplied. Default: null. |
| operation.batch | string | Conditional: anyOf 1/2 | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive".; anyOf 1/2: At least one alternative must match. Goods batch label; null = none supplied. minLength: 1. maxLength: 200. |
| operation.batch | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 4/7: At least one alternative must match. Applies to kind = "receive".; anyOf 2/2: At least one alternative must match. Goods batch label; null = none supplied. |
| operation.expires_on | alternative (anyOf) | Optional | Allowed by schema | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Actual best-before date as YYYY-MM-DD; null or omission means unknown. It does not itself release goods for use. |
| operation.expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive".; 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.expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 4/7: At least one alternative must match. Applies to kind = "receive".; 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.accept_overdelivery | boolean | Required when parent is present | Not allowed | anyOf 4/7: At least one alternative must match. Applies to kind = "receive". Explicit acknowledgement that the physical receipt may exceed the announced remaining quantity. |
| operation | object | Conditional: anyOf 5/7 | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Kind selects required fields. const: "reject". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.line_id | string | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Line identifier in this delivery/return/dispatch section. format: "uuid". |
| operation.quantity | string | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Positive decimal string in the stated unit. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 5/7: At least one alternative must match. Applies to kind = "reject". Recorded reason. minLength: 1. maxLength: 500. |
| operation | object | Conditional: anyOf 6/7 | Not allowed | anyOf 6/7: At least one alternative must match. Applies to kind = "close". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 6/7: At least one alternative must match. Applies to kind = "close". Kind selects required fields. const: "close". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 6/7: At least one alternative must match. Applies to kind = "close". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 6/7: At least one alternative must match. Applies to kind = "close". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.accept_shortage | boolean | Required when parent is present | Not allowed | anyOf 6/7: At least one alternative must match. Applies to kind = "close". Explicit acknowledgement of remaining unreceived quantities when closing the case. |
| operation | object | Conditional: anyOf 7/7 | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Action to perform. Select kind first; only that variant determines which fields are required. Additional properties are not allowed. |
| operation.kind | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Kind selects required fields. const: "convert_expected". |
| operation.inbound_id | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| operation.expected_version | integer | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Latest-read version; stale versions rejected. minimum: 1. maximum: 2147483647. |
| operation.claim_id | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Identifier of the received-quantity claim selected for conversion. format: "uuid". |
| operation.expected_balance_version | integer | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Current version of the selected stock balance from the latest warehouse read. minimum: 1. maximum: 2147483647. |
| operation.target_location_id | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Actual destination storage location for the moved or recovered goods; null only where the selected action permits no destination. format: "uuid". |
| operation.released_condition_id | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Released condition selected for goods being transferred into usable stock. format: "uuid". |
| operation.reason | string | Required when parent is present | Not allowed | anyOf 7/7: At least one alternative must match. Applies to kind = "convert_expected". Recorded reason. minLength: 1. maxLength: 500. |
| work_session | object | Optional | Not allowed | Your own unchanged work session proof after claiming or taking over this receiving task. It grants no additional receiving rights. Additional properties are not allowed. |
| work_session.session_token | string | Required when parent is present | Not allowed | Unchanged opaque proof of the claimed work session. format: "uuid". |
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.event_id | string | Required when parent is present | Not allowed | Identifier of the accepted business event returned by the command. format: "uuid". |
| data.kind | string | Required when parent is present | Not allowed | Kind selects required fields. enum: ["announce","amend","amend_line","confirm","arrive","receive","reject","cancel","close","set_default","allocate_expected","release_expected","convert_expected","handoff_recovery"]. |
| data.inbound_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Inbound UUID: new on announce; reuse for reads/changes/retries. |
| data.inbound_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Inbound UUID: new on announce; reuse for reads/changes/retries. format: "uuid". |
| data.inbound_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Inbound UUID: new on announce; reuse for reads/changes/retries. |
| data.version | integer | Required when parent is present | Not allowed | Current record version; use unchanged as expected_version. minimum: 1. maximum: 2147483647. |
| data.stock_event_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Identifier of the resulting stock movement; null when this action created no stock movement. |
| data.stock_event_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of the resulting stock movement; null when this action created no stock movement. format: "uuid". |
| data.stock_event_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Identifier of the resulting stock movement; null when this action created no stock movement. |
| data.recovery_movements | array | Optional | Not allowed | Stock movements recorded when goods are recovered after an interrupted handover. maxItems: 1000. |
| data.recovery_movements[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.recovery_movements[].stock_item_id | string | Required when parent is present | Not allowed | Offered stock item ID for this owner/warehouse; not a SKU. format: "uuid". |
| data.recovery_movements[].quantity | string | Required when parent is present | Not allowed | Positive decimal string in the stated unit. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.recovery_movements[].source_balance_id | string | Required when parent is present | Not allowed | Exact stock balance from which goods are consumed or moved. format: "uuid". |
| data.recovery_movements[].target_balance_id | string | Required when parent is present | Not allowed | Stock balance receiving the moved goods. format: "uuid". |
| data.recovery_movements[].stock_event_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Identifier of the resulting stock movement; null when this action created no stock movement. |
| data.recovery_movements[].stock_event_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of the resulting stock movement; null when this action created no stock movement. format: "uuid". |
| data.recovery_movements[].stock_event_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Identifier of the resulting stock movement; null when this action created no stock movement. |
#Response 401, 403, 404, 409, 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. 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-receive-inbound.md