Waybill API
Electronic waybill/label management endpoints.
Endpoints Overview
| Endpoint | Method | Description |
|---|---|---|
/api/v1/label/create | POST | Create electronic waybill |
/api/v1/label/page | POST | Get waybill list |
/api/v1/label/reorder | POST | Re-purchase waybill |
/api/v1/label/renotify | POST | Manual notification |
/api/v1/label/resync | POST | Re-sync label |
/api/v1/label/update | POST | Update waybill info |
/api/v1/label/price/estimate | POST | Price estimation |
/api/v1/label/service/available | POST | Available services |
Create Waybill
Create a new electronic waybill/label.
Request
Endpoint: POST /api/v1/label/create
Headers:
Content-Type: application/jsonAuthorization: appToken {token}
Request Body:
json
{
"request_id": "string",
"sender": {
"postal_code": "string",
"country_code": "string",
"province": "string",
"city": "string",
"suburb": "string",
"address_1": "string",
"address_2": "string"
},
"recipient": {
"postal_code": "string",
"country_code": "string",
"province": "string",
"city": "string",
"suburb": "string",
"address_1": "string",
"address_2": "string"
},
"shipperId": "string",
"weight_unit": "g",
"size_unit": "cm",
"pkg_weight": 1000,
"pkg_volume": {
"length": 30,
"width": 20,
"height": 10
},
"declare": [
{
"name": "Product Name",
"quantity": 2,
"unit_code": "pcs",
"weight": 500,
"price": {
"amount": 25.00,
"currency": "USD"
},
"hs_code": "123456",
"origin_country_code": "CN"
}
],
"parcels": [
{
"parcel_number": 1,
"weight": 1000,
"width": 20,
"height": 10,
"length": 30
}
],
"additional_service": [
{
"service_code": "INSURANCE",
"service_value": {
"amount": 100.00,
"currency": "USD"
}
}
]
}Response
json
{
"code": 200,
"msg": "success",
"data": {
"ok": true,
"errors": [],
"dato": {
"id": "waybill_id",
"tracking_number": "123456789",
"label": "https://...",
"process": "preOrder"
}
}
}Waybill List
Get paginated list of waybills.
Request
Endpoint: POST /api/v1/label/page
Request Body:
json
{
"pageNumber": 1,
"pageSize": 20,
"process": "processing"
}Response
json
{
"code": 200,
"msg": "success",
"data": {
"total": 100,
"currPage": 1,
"data": [...]
}
}Re-purchase Waybill
Re-purchase a failed waybill.
Request
Endpoint: POST /api/v1/label/reorder
json
{
"id": "waybill_id"
}Update Waybill
Update waybill information.
Request
Endpoint: POST /api/v1/label/update
json
{
"id": "waybill_id",
"label": "new_label_url",
"tracking_number": "new_tracking_number",
"weight": 1500,
"width": 25,
"height": 15,
"length": 35
}Available Update Fields:
labeltracking_numberexchange_tracking_numberconfirmservice_codeexchange_labelliftstail_liftweightwidthheightlengthtax_iddelivery_datetimepickup_datetime
Manual Notification
Re-trigger webhook notification.
Request
Endpoint: POST /api/v1/label/renotify
json
{
"id": "waybill_id"
}Re-sync Label
Re-fetch label from carrier.
Request
Endpoint: POST /api/v1/label/resync
json
{
"id": "waybill_id"
}