Update a parcel
Changed onUpdate a parcel
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/parcels/{parcelId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"weight": 1000,
"unit_of_weight": "gr",
"eel_pfc": "EEL",
"contents_type": "merchandise",
"customs_signer": "John Doe",
"non_delivery_option": "return",
"restriction_type": "none",
"shipping_label_url": "https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf",
"shipping_label_file_type": "application/pdf",
"shipping_label_size": "4x7",
"shipping_label_resolution": "200",
"tracking_number": "1Z4V2A000000000000",
"tracking_status": "delivered",
"tracking_status_detail": "arrived_at_destination",
"tracking_status_updated_at": "2018-01-01T12:00:00.000Z",
"tracking_details": [
{
"object": "TrackingDetail",
"message": "Pre-Shipment information received",
"status": "pre_transit",
"datetime": "2018-02-27T16:02:17Z",
"source": "DHLExpress",
"tracking_location": {
"object": "TrackingLocation"
}
}
],
"carrier_weight_oz": "42.32",
"signed_by": "John Smith",
"incoterm": "EXW",
"delivery_confirmation": "SIGNATURE",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"shipment": {
"data": {
"id": "XAyRWNUzyN"
}
},
"package": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated parcel object
Changes
- breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
request property
//was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - breaking
the
//request property type changed fromstringtoarraynull - warning
removed the request property
/// - warning
removed the request property
/// - 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
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
//became nullable - 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
//became nullable - 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
//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 valueparcelswas removed - info
added the new
grenum value to the request property// - info
added the new
lbenum value to the request property// - info
added the new
ozenum value to the request property// - info
added the new
parcelsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking