Update a shipment
Changed onUpdate a shipment
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/shipments/{shipmentId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"number": "#1234/S/001",
"_upcoming": true,
"_cancel": true,
"_on_hold": true,
"_picking": true,
"_packing": true,
"_ready_to_ship": true,
"_ship": true,
"_deliver": true,
"_reserve_stock": true,
"_release_stock": true,
"_decrement_stock": true,
"_get_rates": true,
"selected_rate_id": "rate_f89e4663c3ed47ee94d37763f6d21d54",
"_purchase": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"shipping_category": {
"data": {
"id": "XAyRWNUzyN"
}
},
"inventory_stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_address": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_method": {
"data": {
"id": "XAyRWNUzyN"
}
},
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated shipment object
Changes
- info
added the optional property
//to the response with the status
- info
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valueshipmentswas removed - info
added the new
shipmentsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking