Read unopened parcels that came back
All field references · Returns
GET /v1/returns/parcels
Without parcel_id, a page of parcels, overdue decisions first. With parcel_id or code, that parcel includes its history. A returned parcel is still closed and does not book stock. Notes and replacement addresses are customer data. Test keys cannot read real parcels.
Required scopes: "returns:read".
#Parameters
#query: limit
Optional. Entries per page, 1 to 100. Default 50.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | integer | Whole value | Not allowed | Default: 50. minimum: 1. maximum: 100. |
#query: offset
Optional. Rows to skip. Default 0.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | integer | Whole value | Not allowed | Default: 0. minimum: 0. maximum: 1000000. |
#query: parcel_id
Optional. Read one parcel, including its history.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#query: code
Optional. Case code, for example KF-0001. Includes the history.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | minLength: 1. maxLength: 40. |
#query: status
Optional. Keep only this status.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | enum: ["open","awaiting_owner","decided","closed"]. |
#query: search
Optional. Case code, tracking number or exact order number.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | minLength: 1. maxLength: 120. |
#query: overdue
Optional. true keeps only parcels whose decision deadline has passed and that are not closed.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | boolean | Whole value | Not allowed | — |
#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 | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are accepted. |
| data.parcels | array | Required when parent is present | Not allowed | Matching parcels, overdue first, then newest. |
| data.parcels[] | object | Every array item | Not allowed | Additional properties are accepted. |
| data.parcels[].id | string | Required when parent is present | Not allowed | Return parcel. format: "uuid". |
| data.parcels[].code | string | Required when parent is present | Not allowed | Case code, for example KF-0001. |
| data.parcels[].status | string | Required when parent is present | Not allowed | open, awaiting_owner, decided, or closed. enum: ["open","awaiting_owner","decided","closed"]. |
| data.parcels[].decision | alternative (anyOf) | Required when parent is present | Allowed by schema | Stored decision; null until someone decides. |
| data.parcels[].decision | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Stored decision; null until someone decides. enum: ["reship","unpack","scrap","hold"]. |
| data.parcels[].decision | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Stored decision; null until someone decides. |
| data.parcels[].decision_side | alternative (anyOf) | Required when parent is present | Allowed by schema | Who decided; null until someone decides. |
| data.parcels[].decision_side | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Who decided; null until someone decides. enum: ["operator","owner"]. |
| data.parcels[].decision_side | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Who decided; null until someone decides. |
| data.parcels[].decision_note | string or null | Required when parent is present | Allowed by schema | Note stored with the decision; null when none. |
| data.parcels[].outcome | alternative (anyOf) | Required when parent is present | Allowed by schema | Closed outcome; null otherwise. |
| data.parcels[].outcome | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Closed outcome; null otherwise. enum: ["reshipped","unpacked","scrapped"]. |
| data.parcels[].outcome | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Closed outcome; null otherwise. |
| data.parcels[].due_at | string or null | Required when parent is present | Allowed by schema | Decision deadline, ISO-8601; null when the rule has no deadline. |
| data.parcels[].reminded_at | string or null | Required when parent is present | Allowed by schema | When the deadline reminder was sent; null when not reminded. |
| data.parcels[].version | integer | Required when parent is present | Not allowed | Parcel version. Send it back as expected_version. minimum: 1. maximum: 2147483647. |
| data.parcels[].created_at | string | Required when parent is present | Not allowed | When the parcel was registered, ISO-8601. |
| data.parcels[].updated_at | string | Required when parent is present | Not allowed | When the parcel last changed, ISO-8601. |
| data.parcels[].order_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Warehouse order; null for an unknown parcel. |
| data.parcels[].order_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Warehouse order; null for an unknown parcel. format: "uuid". |
| data.parcels[].order_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Warehouse order; null for an unknown parcel. |
| data.parcels[].order_number | string or null | Required when parent is present | Allowed by schema | Displayed order number; null when there is no order. |
| data.parcels[].owner | object | Required when parent is present | Not allowed | Goods owner. Additional properties are accepted. |
| data.parcels[].owner.organization_id | string | Required when parent is present | Not allowed | Organization that owns the goods. format: "uuid". |
| data.parcels[].owner.name | string or null | Required when parent is present | Allowed by schema | Display name of the goods owner. |
| data.parcels[].owner.own | boolean | Required when parent is present | Not allowed | True when the warehouse owns the goods. |
| data.parcels[].client_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Customer file at the warehouse; null when the goods are the warehouse's own. |
| data.parcels[].client_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Customer file at the warehouse; null when the goods are the warehouse's own. format: "uuid". |
| data.parcels[].client_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Customer file at the warehouse; null when the goods are the warehouse's own. |
| data.parcels[].package_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Shipped package; null when unknown. |
| data.parcels[].package_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Shipped package; null when unknown. format: "uuid". |
| data.parcels[].package_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Shipped package; null when unknown. |
| data.parcels[].shipment_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Warehouse shipment; null when unknown. |
| data.parcels[].shipment_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Warehouse shipment; null when unknown. format: "uuid". |
| data.parcels[].shipment_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Warehouse shipment; null when unknown. |
| data.parcels[].case_id | string | Required when parent is present | Not allowed | Clarification case. format: "uuid". |
| data.parcels[].reason_system_key | string or null | Required when parent is present | Allowed by schema | System reason key; null when an organization reason was used. |
| data.parcels[].reason_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Organization reason; null when a system reason was used. |
| data.parcels[].reason_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Organization reason; null when a system reason was used. format: "uuid". |
| data.parcels[].reason_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Organization reason; null when a system reason was used. |
| data.parcels[].reason_label | string | Required when parent is present | Not allowed | Reason text captured at registration. |
| data.parcels[].follow_up | string | Required when parent is present | Not allowed | Suggested follow-up from the reason. |
| data.parcels[].contains_personalized | boolean | Required when parent is present | Not allowed | True when any captured piece is personalized. |
| data.parcels[].items | array | Required when parent is present | Not allowed | Content snapshot, at most 50 lines. maxItems: 50. |
| data.parcels[].items[] | object | Every array item | Not allowed | — |
| data.parcels[].items[].{key} | any JSON value | Every additional entry | Allowed by schema | One captured content field, such as the label, quantity or whether the piece is personalized. |
| data.parcels[].shipping | object | Required when parent is present | Not allowed | First-shipment snapshot: land, versandart, produktcode, anbieter, konto_inhaber. Missing keys are absent. |
| data.parcels[].shipping.{key} | any JSON value | Every additional entry | Allowed by schema | One first-shipment attribute, such as country, shipping method or whose account paid. A missing attribute is absent. |
| data.parcels[].note | string or null | Required when parent is present | Allowed by schema | Parcel note; null when none. |
| data.parcels[].reship_address | alternative (anyOf) | Required when parent is present | Allowed by schema | Address stored with a reship decision; null otherwise. |
| data.parcels[].reship_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Address stored with a reship decision; null otherwise. |
| data.parcels[].reship_address.{key} | any JSON value | Every additional entry | Allowed by schema | anyOf 1/2: At least one alternative must match. One stored address field: text, number, boolean, null, or a nested value captured with the decision. |
| data.parcels[].reship_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Address stored with a reship decision; null otherwise. |
| data.parcels[].reship_tracking | string or null | Required when parent is present | Allowed by schema | Tracking number of the replacement shipment; null when a label or nothing was recorded. |
| data.parcels[].reship_carrier | string or null | Required when parent is present | Allowed by schema | Carrier of the replacement shipment; null when a label or nothing was recorded. |
| data.parcels[].reship_label_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Manual label used to reship; null when none. |
| data.parcels[].reship_label_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Manual label used to reship; null when none. format: "uuid". |
| data.parcels[].reship_label_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Manual label used to reship; null when none. |
| data.parcels[].return_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Return case created by unpack; null otherwise. |
| data.parcels[].return_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Return case created by unpack; null otherwise. format: "uuid". |
| data.parcels[].return_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Return case created by unpack; null otherwise. |
| data.parcels[].scanned_code | string | Required when parent is present | Not allowed | Code scanned at registration. |
| data.parcels[].tracking_number | string or null | Required when parent is present | Allowed by schema | Original tracking number; null when none. |
| data.parcels[].created_by | alternative (anyOf) | Required when parent is present | Allowed by schema | User who registered the parcel; null when unknown. |
| data.parcels[].created_by | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. User who registered the parcel; null when unknown. format: "uuid". |
| data.parcels[].created_by | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. User who registered the parcel; null when unknown. |
| data.parcels[].placement | string | Required when parent is present | Not allowed | Where the clarification case sits: none, dynamic, fixed, place, or box. |
| data.parcels[].location_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Place of the case; null when the parcel is not on a place. |
| data.parcels[].location_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Place of the case; null when the parcel is not on a place. format: "uuid". |
| data.parcels[].location_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Place of the case; null when the parcel is not on a place. |
| data.parcels[].location_name | string or null | Required when parent is present | Allowed by schema | Place name; null when there is no place. |
| data.parcels[].location_code | string or null | Required when parent is present | Allowed by schema | Place code; null when there is no place. |
| data.parcels[].location_path | string or null | Required when parent is present | Allowed by schema | Place path without the place itself; null when there is no place. |
| data.parcels[].box_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Clarification box; null when the parcel is not in a box. |
| data.parcels[].box_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Clarification box; null when the parcel is not in a box. format: "uuid". |
| data.parcels[].box_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Clarification box; null when the parcel is not in a box. |
| data.parcels[].box_code | string or null | Required when parent is present | Allowed by schema | Box code; null when there is no box. |
| data.parcels[].events | alternative (anyOf) | Required when parent is present | Allowed by schema | Timeline. Null on list rows. An array when the query asked for one parcel by id or code. |
| data.parcels[].events | array | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Timeline. Null on list rows. An array when the query asked for one parcel by id or code. |
| data.parcels[].events[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are accepted. |
| data.parcels[].events[].kind | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Event kind on the parcel timeline. |
| data.parcels[].events[].at | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. When the event was recorded, ISO-8601. |
| data.parcels[].events[].actor_side | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Warehouse or goods owner. enum: ["operator","owner"]. |
| data.parcels[].events[].data | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Event payload. Empty object when the event has no extra data. |
| data.parcels[].events[].data.{key} | any JSON value | Every additional entry | Allowed by schema | anyOf 1/2: At least one alternative must match. One event detail. A note can name a person or an address. |
| data.parcels[].events | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Timeline. Null on list rows. An array when the query asked for one parcel by id or code. |
| data.limit | integer | Required when parent is present | Not allowed | Page size that was applied. |
| data.offset | integer | Required when parent is present | Not allowed | Rows skipped. |
#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-list-return-parcels.md