Read returns and decisions you are authorized to access
All field references · Returns
GET /v1/returns
Without return_id, summaries; with return_id, full arrivals, inspections and offered conditions. Only shipped quantities you are actually entitled to can be assigned to a case. A return does not change any historical shipping status.
Required scopes: "returns:read".
#Parameters
#query: limit
Optional. Entries per page; default 50.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | integer | Whole value | Not allowed | Default: 50. minimum: 1. maximum: 100. |
#query: after
Optional. The unchanged next value from the previous page; omit it for the first page.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#query: search
Optional. Case-insensitive reference search; applies to all authorized matches before pagination.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Search offered choices. Default: "". maxLength: 200. |
#query: role
Optional. all covers both perspectives, owner your own goods, operator your own warehouse operation.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Default: "all". enum: ["all","owner","operator"]. |
#query: sort
Optional. id keeps the previous identifier order; created_at sorts by creation time, reference by reference. The identifier breaks ties.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Default: "id". enum: ["id","created_at","reference"]. |
#query: direction
Optional. Sort direction; default asc. When you change filters or sorting, omit after and start on the first page.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Default: "asc". enum: ["asc","desc"]. |
#query: status
Optional. Only cases with this status.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Current status; use listed choices where provided. enum: ["open","clarification","closed","recovery"]. |
#query: return_id
Optional. Read a specific return case in full.
| 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 | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.returns | array | Required when parent is present | Not allowed | Return cases visible to the current caller. maxItems: 100. |
| data.returns[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].organization_id | string | Required when parent is present | Not allowed | Organization owning this authorized record. format: "uuid". |
| data.returns[].operator_organization_id | string | Required when parent is present | Not allowed | Offered authorized warehouse operator; grants no access. format: "uuid". |
| data.returns[].reference | string | Required when parent is present | Not allowed | Displayed source-system reference. |
| data.returns[].status | string | Required when parent is present | Not allowed | Current status; use listed choices where provided. enum: ["open","clarification","closed","recovery"]. |
| data.returns[].version | integer | Required when parent is present | Not allowed | Current record version; use unchanged as expected_version. minimum: 1. maximum: 2147483647. |
| data.returns[].owner_name | string | Required when parent is present | Not allowed | Display name of the goods owner. |
| data.returns[].operator_name | string | Required when parent is present | Not allowed | Display name of the warehouse operator. |
| data.returns[].details_included | boolean | Required when parent is present | Not allowed | List pages contain summaries. Read a specific return to include its lines, receipts and inspections. |
| data.returns[].evidence | array | Required when parent is present | Not allowed | Evidence files attached to the return case. maxItems: 200. |
| data.returns[].evidence[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].evidence[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].evidence[].file_name | string | Required when parent is present | Not allowed | Original display filename of this attachment. |
| data.returns[].evidence[].mime_type | string | Required when parent is present | Not allowed | Validated media type of the file content. |
| data.returns[].evidence[].size_bytes | integer | Required when parent is present | Not allowed | File size in bytes. exclusiveMinimum: 0. |
| data.returns[].evidence[].label | string | Required when parent is present | Not allowed | Display label explaining this attachment or entry to the user. |
| data.returns[].evidence[].inspection_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Inspection ID; retain for owner decisions and execution. |
| data.returns[].evidence[].inspection_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Inspection ID; retain for owner decisions and execution. format: "uuid". |
| data.returns[].evidence[].inspection_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Inspection ID; retain for owner decisions and execution. |
| data.returns[].evidence[].perspective | string | Required when parent is present | Not allowed | Capacity in which the caller acts: owner of the goods or warehouse operator; each requires its matching permission. enum: ["owner","operator"]. |
| data.returns[].evidence[].attached_at | string | Required when parent is present | Not allowed | Time this evidence was attached to the case. format: "date-time". |
| data.returns[].unknown_description | string or null | Required when parent is present | Allowed by schema | Description of goods whose originating shipment or owner has not yet been identified. |
| data.returns[].unknown_quantity | alternative (anyOf) | Required when parent is present | Allowed by schema | Reported quantity of goods not yet assigned to a known return line. |
| data.returns[].unknown_quantity | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Reported quantity of goods not yet assigned to a known return line. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].unknown_quantity | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Reported quantity of goods not yet assigned to a known return line. |
| data.returns[].lines | array | Required when parent is present | Not allowed | All selected lines; each must satisfy this action’s quantity/identity rules. maxItems: 100. |
| data.returns[].lines[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].lines[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].lines[].shipment_id | string | Required when parent is present | Not allowed | Identifier of the documented shipment that proves the returned or dispatched quantity. format: "uuid". |
| data.returns[].lines[].order_item_id | string | Required when parent is present | Not allowed | Line identifier from the current order read. format: "uuid". |
| data.returns[].lines[].component_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Component identifier within this order, shipment or dispatch section. |
| data.returns[].lines[].component_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Component identifier within this order, shipment or dispatch section. format: "uuid". |
| data.returns[].lines[].component_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Component identifier within this order, shipment or dispatch section. |
| data.returns[].lines[].product_id | string | Required when parent is present | Not allowed | Meykt article ID; not SKU/external ID. format: "uuid". |
| data.returns[].lines[].variant_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Native Meykt variant ID; null = main article where allowed. |
| data.returns[].lines[].variant_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. format: "uuid". |
| data.returns[].lines[].variant_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. |
| data.returns[].lines[].unit | string | Required when parent is present | Not allowed | Quantity is expressed in pieces; no implicit carton or material-unit conversion. const: "piece". |
| data.returns[].lines[].product_name | string | Required when parent is present | Not allowed | Article display name. |
| data.returns[].lines[].sku | string or null | Required when parent is present | Allowed by schema | Article SKU used to identify the corresponding goods. |
| data.returns[].lines[].announced | string | Required when parent is present | Not allowed | Quantity initially announced for this return line. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].lines[].received | string | Required when parent is present | Not allowed | Quantity already physically received for this line. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].lines[].inspected | string | Required when parent is present | Not allowed | Quantity already inspected by the warehouse operator. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].lines[].completed | string | Required when parent is present | Not allowed | Quantity whose selected return disposition has been completed. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].lines[].reason | string | Required when parent is present | Not allowed | Recorded reason. |
| data.returns[].receipts | array | Required when parent is present | Not allowed | Physical receipts recorded for this return case. maxItems: 1000. |
| data.returns[].receipts[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].receipts[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].receipts[].line_id | string | Required when parent is present | Not allowed | Line identifier in this delivery/return/dispatch section. format: "uuid". |
| data.returns[].receipts[].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.returns[].receipts[].lot_id | string | Required when parent is present | Not allowed | Identifier of the physical lot represented by this receipt or balance. format: "uuid". |
| data.returns[].receipts[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].receipts[].balances | array | Required when parent is present | Not allowed | Stock balances with their current quantities and conditions. maxItems: 100. |
| data.returns[].receipts[].balances[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].receipts[].balances[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].receipts[].balances[].location_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Storage location identifier in the selected warehouse. |
| data.returns[].receipts[].balances[].location_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Storage location identifier in the selected warehouse. format: "uuid". |
| data.returns[].receipts[].balances[].location_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Storage location identifier in the selected warehouse. |
| data.returns[].receipts[].balances[].condition_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Condition identifier from current choices. |
| data.returns[].receipts[].balances[].condition_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Condition identifier from current choices. format: "uuid". |
| data.returns[].receipts[].balances[].condition_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Condition identifier from current choices. |
| data.returns[].receipts[].balances[].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})(\\.\\d{1,6})?$". |
| data.returns[].receipts[].balances[].version | integer | Required when parent is present | Not allowed | Current record version; use unchanged as expected_version. minimum: 1. maximum: 2147483647. |
| data.returns[].inspections | array | Required when parent is present | Not allowed | Inspections recorded for the returned goods. maxItems: 1000. |
| data.returns[].inspections[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].inspections[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].inspections[].line_id | string | Required when parent is present | Not allowed | Line identifier in this delivery/return/dispatch section. format: "uuid". |
| data.returns[].inspections[].receipt_id | string | Required when parent is present | Not allowed | Identifier of the physical receipt being inspected. format: "uuid". |
| data.returns[].inspections[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. pattern: "^(?=.*[1-9])(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.returns[].inspections[].observed_condition_id | string | Required when parent is present | Not allowed | Condition actually observed during inspection, selected from the condition catalog. format: "uuid". |
| data.returns[].inspections[].observed_condition_name | string | Optional | Not allowed | Display name of the condition observed during inspection. |
| data.returns[].inspections[].notes | string | Required when parent is present | Not allowed | Observations and explanatory notes for the inspection or operation. |
| data.returns[].inspections[].disposition | alternative (anyOf) | Required when parent is present | Allowed by schema | Listed disposition; follow-up depends on the current case and rights. |
| data.returns[].inspections[].disposition | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Listed disposition; follow-up depends on the current case and rights. enum: ["restock","refurbish","return_to_sender","scrap","hold"]. |
| data.returns[].inspections[].disposition | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Listed disposition; follow-up depends on the current case and rights. |
| data.returns[].inspections[].target_condition_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Chosen destination condition. Required and non-null for restock or refurbishment; null for other return dispositions. |
| data.returns[].inspections[].target_condition_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Chosen destination condition. Required and non-null for restock or refurbishment; null for other return dispositions. format: "uuid". |
| data.returns[].inspections[].target_condition_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Chosen destination condition. Required and non-null for restock or refurbishment; null for other return dispositions. |
| data.returns[].inspections[].decision_reason | string or null | Required when parent is present | Allowed by schema | Explanation given by the goods owner for the disposition decision. |
| data.returns[].inspections[].state | string | Required when parent is present | Not allowed | Operation state; processing/decision states do not prove completion. enum: ["awaiting_decision","decided","refurbishing","completed"]. |
| data.returns[].inspections[].offered_conditions | array | Required when parent is present | Not allowed | Conditions the warehouse operator offers for the owner decision. maxItems: 100. |
| data.returns[].inspections[].offered_conditions[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.returns[].inspections[].offered_conditions[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.returns[].inspections[].offered_conditions[].code | string | Required when parent is present | Not allowed | Code of this condition, record or business result. |
| data.returns[].inspections[].offered_conditions[].name | string | Required when parent is present | Not allowed | Display name. |
| data.returns[].inspections[].offered_conditions[].quality_grade | string or null | Required when parent is present | Allowed by schema | Optional quality grade assigned to this stock condition. |
| data.returns[].inspections[].offered_conditions[].disposition | string | Required when parent is present | Not allowed | Listed disposition; follow-up depends on the current case and rights. enum: ["released","quarantine","blocked"]. |
| data.returns[].inspections[].offered_conditions[].catalog_version | integer | Required when parent is present | Not allowed | Version of the selected stock-condition catalog entry. minimum: 1. maximum: 2147483647. |
| data.next | alternative (anyOf) | Required when parent is present | Allowed by schema | Next-page cursor; null = last page. |
| data.next | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Next-page cursor; null = last page. format: "uuid". |
| data.next | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Next-page cursor; null = last page. |
| data.total | integer | Optional | Not allowed | Total cases matching the query before pagination. minimum: 0. |
| data.observed_at | string | Required when parent is present | Not allowed | Observed at, with time-zone offset. format: "date-time". |
#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-list-returns.md