API Documentation
API documentation:
1. Authenticate with the vendor-token request header; please contact your business manager.
2. Use the API domain; please contact your business manager.
POST label - Get Label
URL: /api/order/label · Description: Get the label of an order (if the label was already generated synchronously when creating the order, you can directly use the label returned by print).
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
order_id |
Yes | int | Order ID (only the current vendor's own orders can be operated) |
Request Example
POST /api/order/label
Header: vendor-token: xxxxx
Content-Type: application/json
{
"order_id": 1024
}
Response Example (data is the unified channel return structure)
{
"success": true,
"message": "Label fetched successfully!",
"code": 200,
"data": {
"success": true,
"currency_id": 1,
"label": "https://cdn.xxx.com/label/123_1699999999.pdf", // Label URL
"tracking": "9212345678901234567890", // Channel tracking number
"sub_labels": [] // Per-piece labels for multi-piece shipments (currently empty)
}
}