# Preview a goods-owner decision on a returned parcel

[All field references](/en/developers/field-reference) · [Returns](/en/developers/fields-group-returns)

`POST /v1/returns/parcels/decisions/preview`

Reads the parcel the client can see and describes the decision in plain words. saved is false and nothing is booked. Also requires returns:read. A test key cannot read real parcels.

Required scopes: `"returns:decide"`, `"returns:read"`.

[How to read these tables](/en/developers/field-reference#reading-the-field-tables)

## 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 UUID per intended owner decision. Retry the same key and body for the same result. format: `"uuid"`. |
| source_order_id | string | Required when parent is present | Not allowed | The goods owner's own order. The parcel is resolved through the fulfillment transfer of this order. format: `"uuid"`. |
| parcel_id | string | Optional | Not allowed | Return parcel on the fulfiller copy. Omit when code is sent. format: `"uuid"`. |
| code | string | Optional | Not allowed | KF code of the parcel, for example KF-0002. Omit when parcel_id is sent. minLength: `1`. maxLength: `40`. |
| expected_version | integer | Required when parent is present | Not allowed | Parcel version from the last read. A mismatch is wms_version_conflict. minimum: `1`. maximum: `2147483647`. |
| kind | string | Required when parent is present | Not allowed | decide records the outcome. note replaces the note. enum: `["decide","note"]`. |
| decision | string | Optional | Not allowed | Required for decide: reship, unpack, scrap, or hold. enum: `["reship","unpack","scrap","hold"]`. |
| note | string | Optional | Not allowed | Decision note or the note body, 1 to 1000 characters. Required for note. minLength: `1`. maxLength: `1000`. |
| reship_address | object | Optional | Not allowed | Replacement address stored with a reship decision. The label itself is created separately. Omit when the decision is not reship. |
| reship_address.{key} | string or number or boolean or null | Every additional entry | Allowed by schema | One replacement-address field: text, number, boolean or null. Omit the whole address when the decision is not reship. |

## 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.saved | boolean | Required when parent is present | Not allowed | False means nothing was saved. Read the parcel again before sending the command. const: `false`. |
| data.before | string | Required when parent is present | Not allowed | The current situation in plain words. |
| data.after | string | Required when parent is present | Not allowed | What this command would change, in plain words. It is not saved. |

## 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"`. |
