# Change the shipping address and pass it on

[All field references](/en/developers/field-reference) · [Orders](/en/developers/fields-group-orders)

`POST /v1/orders/{id}/shipping-address`

Changes only the shipping address of one of your own API orders — even after work has started, without replacing the order at the fulfiller. Every fulfiller order without a shipping label gets it immediately (passed_on_to_partners); if it already has a label or has shipped, Meykt does not silently change anything there, and both sides see an open item (too_late_at_partners). With message, a message goes to the fulfiller at the same time (for example the answer to their question, reply_to). The address is saved first, then the message. Rejected (409): shipped, completed or cancelled.

Required scopes: `"orders:change"`.

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

## Parameters

### path: id

Required. Meykt ID of an order of this API channel and this environment.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | string | Whole value | Not allowed | format: `"uuid"`. |

## Request body

Request body required.

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | Examples: `[{"idempotency_key":"33333333-3333-4333-8333-333333333333","address":{"name":"Alex Example","line1":"Example Street 12","postal_code":"10115","city":"Berlin","country":"DE"}}]`. Additional properties are not allowed. |
| idempotency_key | string | Required when parent is present | Not allowed | New UUID for this intended command; retry unchanged with the same UUID. format: `"uuid"`. |
| address | object | Required when parent is present | Not allowed | Replacement shipping address. Omitted members are absent from the replacement; this is not a partial address update. Additional properties are not allowed. |
| address.name | alternative (anyOf) | Optional | Allowed by schema | Recipient or contact display name. |
| address.name | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Recipient or contact display name. maxLength: `200`. |
| address.name | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Recipient or contact display name. |
| address.company | alternative (anyOf) | Optional | Allowed by schema | Company or organization name. |
| address.company | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Company or organization name. maxLength: `200`. |
| address.company | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Company or organization name. |
| address.line1 | alternative (anyOf) | Optional | Allowed by schema | Street, house number and primary address line. |
| address.line1 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Street, house number and primary address line. maxLength: `200`. |
| address.line1 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Street, house number and primary address line. |
| address.line2 | alternative (anyOf) | Optional | Allowed by schema | Additional delivery or address information. |
| address.line2 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Additional delivery or address information. maxLength: `200`. |
| address.line2 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Additional delivery or address information. |
| address.postal_code | alternative (anyOf) | Optional | Allowed by schema | Postal code as text, preserving leading zeroes. |
| address.postal_code | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. maxLength: `20`. |
| address.postal_code | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| address.city | alternative (anyOf) | Optional | Allowed by schema | City or locality. |
| address.city | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. City or locality. maxLength: `120`. |
| address.city | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. City or locality. |
| address.state | alternative (anyOf) | Optional | Allowed by schema | Region, state or province. |
| address.state | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Region, state or province. maxLength: `120`. |
| address.state | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Region, state or province. |
| address.country | alternative (anyOf) | Optional | Allowed by schema | Two-letter country code such as DE. The existing contract accepts up to two characters. |
| address.country | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. maxLength: `2`. |
| address.country | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. |
| address.phone | alternative (anyOf) | Optional | Allowed by schema | Contact telephone number including international prefix where applicable. |
| address.phone | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. maxLength: `80`. |
| address.phone | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| address.email | alternative (anyOf) | Optional | Allowed by schema | Contact email address. |
| address.email | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Contact email address. format: `"email"`. maxLength: `320`. |
| address.email | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Contact email address. |
| message | string | Optional | Not allowed | Optional accompanying message to the fulfiller after the address is saved. minLength: `1`. maxLength: `2000`. |
| reply_to | string | Optional | Not allowed | Identifier of a message from the other party on this order; forbidden for resume. format: `"uuid"`. |
| partner_order_number | string | Optional | Not allowed | Selects the fulfiller order when the source order has several fulfillment partners. minLength: `1`. maxLength: `120`. |

## Response 200

200: Success

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | — |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. |
| data.order_id | string | Required when parent is present | Not allowed | Meykt order ID from authorized reads; not order number/external reference. format: `"uuid"`. |
| data.changed | boolean | Required when parent is present | Not allowed | false if the address was already stored exactly like this. |
| data.passed_on_to_partners | integer | Required when parent is present | Not allowed | Number of partner orders updated with the replacement shipping address. minimum: `0`. |
| data.too_late_at_partners | integer | Required when parent is present | Not allowed | Number of partner orders whose shipment state prevented applying the new address. minimum: `0`. |
| data.own_label_outdated | boolean | Required when parent is present | Not allowed | One of your own shipping labels still carries the old address. |
| data.message | alternative (anyOf) | Required when parent is present | Allowed by schema | Message associated with this action or event. |
| data.message | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Message associated with this action or event. Additional properties are not allowed. |
| data.message.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: `"uuid"`. |
| data.message.from | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. you = your system or your team, partner = the fulfiller. enum: `["you","partner"]`. |
| data.message.kind | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. question = a question from the fulfiller (the order is waiting), status = a status report from the fulfiller, return = a return or parcel card. enum: `["message","question","status","return"]`. |
| data.message.reason | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Recorded reason. enum: `["address_undeliverable","file_unusable","personalization_unclear","item_unavailable","deadline_at_risk","other",null]`. |
| data.message.status_change | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Fulfillment status change reported with this message; null for ordinary messages. enum: `["query","paused","on_hold","failed","resumed","cancelled",null]`. |
| data.message.body | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Message text shown to the other party. |
| data.message.reply_to | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Identifier of the earlier message this answers; null for a new message. format: `"uuid"`. |
| data.message.shipping_address_changed | boolean | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. A new shipping address was passed on with this message. |
| data.message.partner_order_number | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Order number at the fulfiller. |
| data.message.created_at | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Created at, with time-zone offset. format: `"date-time"`. |
| data.message.read_at | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Read by the other side. format: `"date-time"`. |
| data.message.resolved_at | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Questions only: resolved by the fulfiller. format: `"date-time"`. |
| data.message.return_event | string or null | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Present only when kind is return. Which return card this row is. enum: `["registered","decision_needed","decided","reshipped","unpacked","scrapped","restocked","reminder",null]`. |
| data.message.return_parcel_id | string or null | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Present only when kind is return and the card is about a parcel. Otherwise omitted or null. format: `"uuid"`. |
| data.message.return_id | string or null | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Present only when kind is return and the card is about a customer return. Otherwise omitted or null. format: `"uuid"`. |
| data.message | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Message associated with this action or event. |

## Response 400, 401, 403, 404, 409, 422, 429, 500, 503

400: The request is not valid JSON. 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"`. |
