Update shipment
PATCH/api/v2/orders/{order_id}/shipments/{shipment_id}
Updates an existing shipment. Only shipments that are in draft can be changed.
Authorization
Add HTTP header Authorization with the received API key as the bearer token:
- Authorization
- API Key
Parameters
URL parameters
| Property | Type | Description |
|---|---|---|
order_id | string | Order ID Unique identifier for order. uuid |
shipment_id | string | Shipment ID Unique identifier for shipment. uuid |
Request body
- Content-Type
application/json- Body
- UpdateShipmentRequestrequired
| Property | Type | Description |
|---|---|---|
shipment | Schema that is used to update an existing shipment. All fields are optional and will be used to patch fields. Nills are accepted an will result in updating the field to an empty value. required | |
currency | string | Currency used for rates and shipments. nullable one of: EUR |
delivery_instructions | string | The delivery instructions given to a carrier. This text should be short. It is only implemented for the following carriers:
TNT;
Transmission;
bpost (only certain products);
Mondial Relay; nullable length 1...200 |
description | string | Text field that may contain multiple lines and unicode characters. nullable length 1...2700 |
external_id | string | External identification number used for shipments that are generated by third-party systems (like bol.com). nullable length 1...255 |
height | integer | The height in CMs. nullable value 1... |
incoterms | string | Incoterms applicable for shipment. Must be DDP (Delivered Duty Paid) or DAP (Delivered At Place). nullable one of: DDP DAP |
length | integer | The length in CMs. nullable value 1... |
meta | object | This is an additional free format structured field that will give you the possibility to manage your booking process. Maps and lists are supported. nullable |
order_lines | nullable | |
description | string | The description/name of the item required nullable length 1...2700 |
ean | string | EAN Code of product (European Article Number) |
hs_code | string | HS Code of product (Harmonized Commodity Description and Coding System) |
meta | object | This is an additional free format structured field that will give you the possibility to manage your booking process. Maps and lists are supported. |
origin_country_code | string | ISO country code. required length 2...2 |
quantity | integer | The number of items for a product in an order line. required value 1... |
sku | string | SKU Code of product |
value | integer | The total value in cents. required value 1... |
weight | integer | The weight or a product or shipment in grams. required value 1... |
ordered_at | string | Date time in ISO 8601 format (YYYY-MM-DD HH:MM:SS) in UTC date-time nullable |
parcelshop_drop_off | boolean | Indicates if the shipment will be dropped of by the sender for pickup at a parcelshop. nullable |
parcelshop_id | string | ID of the parcelshop where the package is going to be delivered. String must contain carrier_code:code_of_parcelshop. nullable length 3...64 |
receiver_address | Address schema that is used to update an existing address in a shipment nullable | |
address2 | string | Address2 address field. nullable length 1...255 |
business_name | string | Name of business for address. If this name is supplied, it will indicate that the address type is business. If left empty, it indicates that the address type is a consumer. nullable length 1...255 |
city | string | City of address. nullable length 2...30 |
country_code | string | ISO country code. nullable length 2...2 |
email_address | string | Email address compatible with RFC 5322. nullable length 3...320 |
eori_number | string | Economic Operators Registration and Identification number that is required by businesses to ship internationally. nullable length 3...17 |
family_name | string | nullable length 1...30 |
given_name | string | nullable length 1...30 |
house_number | string | House number in an address. May also contain house number extensions. nullable length 1...14 |
id | string | Unique ID for an address. Can be a ID of an existing sender_address or a unique ID of a parcelshop. In all other cases this ID is empty. nullable length 1...64 |
phone_number | string | Phone number that may consist of a country code. nullable length 2...30 |
state_code | string | State code for an address. The state code should be applicable for the country. So NY (New York) for country_code US (United States) or YT (Yukon) for country_code CA (Canada) nullable length 2...3 |
street_name | string | Street name is an identifying name given to a street or road. nullable length 2...55 |
vat | string | Value-added tax identification number or VAT identification number (VATIN). nullable length 3...14 |
zip_code | string | The zipcode of an address. nullable length 1...10 |
reference | string | Custom reference code to identify your shipments or orders nullable length 1...255 |
return | boolean | nullable |
sender_address | Address schema that is used to update an existing address in a shipment nullable | |
address2 | string | Address2 address field. nullable length 1...255 |
business_name | string | Name of business for address. If this name is supplied, it will indicate that the address type is business. If left empty, it indicates that the address type is a consumer. nullable length 1...255 |
city | string | City of address. nullable length 2...30 |
country_code | string | ISO country code. nullable length 2...2 |
email_address | string | Email address compatible with RFC 5322. nullable length 3...320 |
eori_number | string | Economic Operators Registration and Identification number that is required by businesses to ship internationally. nullable length 3...17 |
family_name | string | nullable length 1...30 |
given_name | string | nullable length 1...30 |
house_number | string | House number in an address. May also contain house number extensions. nullable length 1...14 |
id | string | Unique ID for an address. Can be a ID of an existing sender_address or a unique ID of a parcelshop. In all other cases this ID is empty. nullable length 1...64 |
phone_number | string | Phone number that may consist of a country code. nullable length 2...30 |
state_code | string | State code for an address. The state code should be applicable for the country. So NY (New York) for country_code US (United States) or YT (Yukon) for country_code CA (Canada) nullable length 2...3 |
street_name | string | Street name is an identifying name given to a street or road. nullable length 2...55 |
vat | string | Value-added tax identification number or VAT identification number (VATIN). nullable length 3...14 |
zip_code | string | The zipcode of an address. nullable length 1...10 |
type | string | Indicates the type of shipment. nullable one of: document package pallet letterbox |
value | integer | The total value in cents. nullable value 1... |
weight | integer | The weight or a product or shipment in grams. nullable value 1... |
width | integer | The width of a shipment or product in CMs. nullable value 1... |
Request example
Response
Response body
- Content-Type
application/json- Body
| Property | Type | Description |
|---|---|---|
order | A collection of shipments. Contains data for orders that are persisted. required | |
| required | ||
reference | string | Custom reference code to identify your shipments or orders required length 1...255 |
| required | ||
id | string | Unique identifier for order. required uuid |
inserted_at | string | Date time in ISO 8601 format (YYYY-MM-DD HH:MM:SS) in UTC required date-time |
order_code | string | Unique human readable identifier of an order in Wuunder. length 13...13 |
receiver | Specifies the full legal address of a business or person, including street, house number, zip code, city, and country that is used to send the order to. required | |
sender | Specifies the full legal address of a business or person, including street, house number, zip code, city, and country that is used to send the order from. required | |
shipments | ||
status | string | required |
status_history | object | Contains all historical events that took place on this shipment or order. required |
updated_at | string | Date time in ISO 8601 format (YYYY-MM-DD HH:MM:SS) in UTC required date-time |