1、 API Description
| Function | Get shipping label (waybill) via order code |
|---|---|
| Frequency | Real-time |
| Method | GET |
| Type | |
| URI | /oms/v1/OrderLabel/findOrderLabelByCode/{orderCode}/{labelType}/{userId} |
2、 API Request
2.1、Request Parameters
| Field | Type | Max Length | Required | Description |
|---|---|---|---|---|
| orderCode | String | Y | Order ID returned from order creation (includes orderId, conCode, refCode) |
|
| labelType | Integer | Y | Type of label to print: 1 - Warehouse Receipt 2 - Shipping Label 3 - Proof of Delivery |
|
| userId | String | Y | User ID |
3、 API Response
3.1、Common Response Parameters
| Field | Type | Max Length | Required | Description |
|---|---|---|---|---|
| body | String | - | Y | Address of shipping label |
| code | integer(int32) | - | Y | Response status code |
| msg | string | - | Y | Discription |
3.1.1、Response Status
| Status Code | Description |
|---|---|
| 200 | Get shipping label successful |
| 201 | Created |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not FoundOK |
| 500 | System error |
| 51005 | Address of shipping label is empty |
3.2、Success Response Example
{
"body": "https://file.xinzhtech.com/xxxxx.pdf",
"code": 200,
"msg": ""
}
3.3、 Failure Response Example
{
"body": {},
"code": 500,
"msg": "System error"
}作者:conghui 创建时间:2024-09-12 14:46
最后编辑:conghui 更新时间:2025-12-16 17:30
最后编辑:conghui 更新时间:2025-12-16 17:30