Webhook
Header
Content-Type : application/json
ems-transaction : "1234567890"
ems-transaction is a random string and matches with each request on system.
body json
{
"TrackingCode": "ExxxxxxxxxxVN",
"Fee": [
{
"FeeCode": "cod_fee",
"FeeValue": 13000,
"Currency": "VND"
},
{
"FeeCode": "handling_fee",
"FeeValue": 0,
"Currency": "VND"
},
{
"FeeCode": "overweight_fee",
"FeeValue": 0,
"Currency": "VND"
},
{
"FeeCode": "shipping_fee",
"FeeValue": 55471,
"Currency": "VND"
},
{
"FeeCode": "special_fee",
"FeeValue": 0,
"Currency": "VND"
}
],
"OrderCode": "ODR22134",
"Weight": 1000,
"StatusCode": 11000,
"StatusName": "Đã giao cho bưu tá",
"Location": "129060 - BCP Từ Liêm (ÐT:024.37871825)",
"Note": null,
"CreatedAt": "2019-07-09 07:48:30"
}
Parameter
Description
TrackingCode
Tracking code
OrderCode
Order code (If any)
Weight
Total weight
StatusCode
Shipment status
StatusName
Shipment status name
Location
Shipment location
Note
Note
CreatedAt
Created time
Fee
Array fee detail
Fee.*.FeeCode
Service code
Fee.*.FeeValue
Service fee
Fee.*.Currency
Currency
Response demo
{
"code" : "success",
"transaction" : "1234567890"
}
{
"code" : "error",
"transaction" : "1234567890"
}
transaction id get at ems-transaction from header
Last updated