Update a shipment
Depending on the state of a shipment, some or all of its attributes can be modified. List of attributes are described in create shipment page.
As long as it is not handled by the warehouse, all the attributes can be modified:
after creation of export shipment with
ORDERevent, beforeGOODS_RECEIPTevent.after creation of import shipment with
ORDERevent, beforePICKUPorGOODS_RECEIPTevent, whichever comes first.after creation of export delivery shipment with
DELIVERY_ORDERevent, beforeDELIVERY_PREPARATIONevent.
For export shipment, as long as it has not reach the DELIVERY_PREPARATION event, the master mawbNumber and house hawbNumber numbers can be added/modified. This is also the last moment at which e.g. services can be added.
For every type of shipments, the customerReference can be modified until the final DELIVERY_COMPANY/DELIVERY event. Once delivered, the shipment will be archived in read-only mode, so not editable any more.
Update shipment
falsefalseBad Request
Unprocessable Entity
Conflict
Unprocessable Entity
PUT /shipment/{shipmentId} HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 572
{
"orderReference": "text",
"customerReference": "text",
"quantityExpected": 1,
"quantityTypeExpected": "AUT",
"grossWeightExpected": 1,
"grossWeightTaxableExpected": 1,
"volumeExpected": 1,
"quantityReal": 1,
"quantityTypeReal": "AUT",
"grossWeightReal": 1,
"grossWeightTaxableReal": 1,
"volumeReal": 1,
"mawbNumber": "text",
"hawbNumber": "text",
"hbl": "text",
"mbl": "text",
"goodsDescription": "text",
"fly": "text",
"ship": "text",
"isSecure": false,
"isDangerous": false,
"limitBoardingTime": "text",
"shippingReference": "text",
"departure": "text",
"departureCountry": "AD",
"arrival": "text",
"arrivalCountry": "AD"
}{
"shipmentId": "123e4567-e89b-12d3-a456-426614174000",
"departure": "text",
"departureCountry": "AD",
"arrival": "text",
"arrivalCountry": "AD",
"orderReference": "text",
"customerReference": "text",
"quantityExpected": 1,
"quantityTypeExpected": "AUT",
"grossWeightExpected": 1,
"grossWeightTaxableExpected": 1,
"volumeExpected": 1,
"quantityReal": 1,
"quantityTypeReal": "AUT",
"grossWeightReal": 1,
"grossWeightTaxableReal": 1,
"volumeReal": 1,
"mawbNumber": "text",
"hawbNumber": "text",
"hbl": "text",
"mbl": "text",
"goodsDescription": "text",
"fly": "text",
"ship": "text",
"isSecure": false,
"isDangerous": false,
"limitBoardingTime": "text",
"shippingReference": "text",
"assignations": [
"123e4567-e89b-12d3-a456-426614174000"
],
"anomalies": [
"123e4567-e89b-12d3-a456-426614174000"
],
"customs": [
"123e4567-e89b-12d3-a456-426614174000"
],
"details": [
"123e4567-e89b-12d3-a456-426614174000"
],
"documents": [
"123e4567-e89b-12d3-a456-426614174000"
],
"events": [
"123e4567-e89b-12d3-a456-426614174000"
],
"operators": [
"123e4567-e89b-12d3-a456-426614174000"
],
"securities": [
"123e4567-e89b-12d3-a456-426614174000"
],
"services": [
"123e4567-e89b-12d3-a456-426614174000"
],
"preparations": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": null,
"updatedAt": null
}Last updated