Update a shipment customs

If needed, customs information can be modified by sending a PUT request to the /shipment-customs/{id} route. Like any other object attached to a shipment, it is not possible to modify customs number after DELIVERY/DELIVRY_COMPANY event.

Update shipment customs

put

Update shipment customs

Authorizations
Path parameters
idstringRequired
Body
shipmentstring · uuidOptional
typestring | nullableOptional
statusstring · max: 1Optional
numberstring · max: 255Optional
dateany | nullableOptional
Responses
200Success
application/json
put
PUT /shipment-customs/{id} HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "shipment": "123e4567-e89b-12d3-a456-426614174000",
  "type": "text",
  "status": "text",
  "number": "text",
  "date": null
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "shipment": "123e4567-e89b-12d3-a456-426614174000",
  "type": "text",
  "status": "text",
  "number": "text",
  "date": null,
  "createdAt": null,
  "updatedAt": null
}

Last updated