获取标签
获取指定尾派小包的标签。
请在调用此接口前确保已获取跟踪号,否则将返回 HTTP 404。
端点: GET /api/shipments/{id}/label
所需权限 (Scope): shipments:read
路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | 要获取标签的尾派小包 ID。 |
响应规范
返回包装在 Result 中的 Shipment Label 对象。
示例 JSON
{
"Data": {
"Link": "https://...",
"Base64": null,
"ContentType": "application/pdf"
},
"Succeeded": true,
"Error": null,
"CapturedValues": {}
}
{
"Succeeded": false,
"Error": {
"Code": "HttpError404",
"Message": "未找到尾派小包标签 xxxx,请确保在打印标签前已获取跟踪号"
},
"CapturedValues": {}
}