Nhất Tín LogisticsDevelopers
API ReferenceShipments

Webhook

Receive shipment status updates from Nhất Tín through the partner callback URL.

POSTPartner callback URL

Nhất Tín sends a webhook payload whenever a shipment status changes.

Auth: Callback URL configured by partner

Configure the webhook on the Web portal

Header key: Authorization

Header token value: from Partner

Configure the webhook URL, token, and HTTP method on the Web portal

Request body

FieldTypeRequiredDescription
bill_nostringYesNhất Tín shipment code.
ref_codestringYesCustomer reference code.
status_idnumberYesStatus ID.
status_namestringYesStatus name.
status_timenumberYesTime when the status changed.
push_timenumberYesTime when Nhất Tín pushed the webhook.
shipping_feenumberYesShipping fee.
is_partialnumberYes1 when the shipment is returned from partial delivery.
reasonstringNoReason, if available.
weightnumberYesCargo weight.
dimension_weightnumberYesDimensional weight.
lengthnumberYesLength in cm.
widthnumberYesWidth in cm.
heightnumberYesHeight in cm.
expected_atstringYesExpected delivery date in YYYY-MM-DD HH:mm:ss format.
{
"bill_no": "CP16658276R",
"ref_code": "40724974",
"status_id": 3,
"status_name": "Da lay hang",
"status_time": 1681382601,
"push_time": 1681382738,
"shipping_fee": 38610,
"is_partial": 1,
"weight": 2,
"dimension_weight": 1,
"length": 1,
"width": 1,
"height": 1,
"expected_at": "2024-08-02 09:00:00"
}
  • Return HTTP 2xx after your system receives the webhook successfully.
  • Dedupe by the bill_no, status_id, and status_time tuple to avoid duplicate processing.
  • Log push_time and the original payload for operational reconciliation.

On this page