Nhất Tín LogisticsDevelopers
API ReferenceShipments

Update shipment

Update shipments only when they are in Not successful (1) or Waiting for pickup (2) status.

POST/v3/bill/update-shipping

Update a shipment by shipment code.

Auth: Bearer access token

Request body

FieldTypeRequiredDescription
bill_codestringYesShipment code to update.
cod_amountnumberNoNew COD amount.
cargo_valuenumberNoCargo value.
weightnumberNoCargo weight.
lengthnumberNoPackage length.
heightnumberNoPackage height.
widthnumberNoPackage width.
cargo_contentstringNoCargo content.
receiver_phonestringNoReceiver phone number.
receiver_namestringNoReceiver name.
receiver_addressstringNoReceiver full address.
package_nonumberNoNumber of packages.
is_return_docnumberNo1 when document return is required.
notestringNoDelivery note.
is_installationnumberNo1 if delivery includes installation support.
curl --request POST \
--url https://apisandbox.ntlogistics.vn/v3/bill/update-shipping \
--header "Authorization: Bearer <access_token>" \
--header "Content-Type: application/json" \
--data '{
  "bill_code": "TEST-009",
  "cod_amount": 200000,
  "is_return_doc": 0
}'

Response

{
  "success": true,
  "message": "Update successful",
  "data": {
    "bill_id": 159839,
    "bill_code": "CP15983901",
    "ref_code": "TEST-009",
    "status_id": 2,
    "cod_amount": 200000,
    "total_fee": 38962
  }
}

Failed response

{
  "success": false,
  "message": "descriptions for detail error",
  "data": {}
}

On this page