Appearance
获取标签 Label
接口说明
通过此接口可获取客户对应客户参考号的Label文件。
接口地址: http://tms.gateway.sc-express.cn/api/order/label
请求方式: POST
请求参数
请求字段说明
字段名称 | 字段类型 | 字段长度 | 是否必需 | 字段说明 | ||
---|---|---|---|---|---|---|
authorization | JSONObject | 接口校验信息 | ||||
code | String | 5-20 | Y | 客户编码 | ||
token | String | 50 | Y | API授权码 | ||
datas | JSONObject | 本次提交数据集 | ||||
printType | String | A4:A4标签 Label:热敏纸(不需要打印标签该值传空) | ||||
printInvoice | String | Y | agent:代理标签 addressLabel:地址标签 expressLabel:面单 invoiceLabel:发票 | |||
customernumber | JSONArray | Y | 客户参考号 |
请求报文示例
json
{
"authorization": {
"code": "KJHB",
"token": "c60bf762-01f7-470e-8c8f-acde06c81fed"
},
"datas": {
"printType": "A4",
"printInvoice": "agent",
"customernumber": ["T620200611-1001","T620200611-1002"]
}
}
{
"authorization": {
"code": "KJHB",
"token": "c60bf762-01f7-470e-8c8f-acde06c81fed"
},
"datas": {
"printType": "A4",
"printInvoice": "agent",
"customernumber": ["T620200611-1001","T620200611-1002"]
}
}
响应数据
字段名称 | 字段说明 | ||
---|---|---|---|
code | 接口请求是否通过 0:表示接口请求通过,其他表示失败 | ||
msg | 说明信息 | ||
data | |||
url | 标签地址 | ||
notCustomernumber | 系统中不存在的单号 |
响应数据示例
json
{
"code": 0,
"msg": "调用成功",
"data": {
"url": "http://120.79.93.68:8080/upload/order/label/2020-06-12/66AC9F263B874B4DACBB03C9A081DADE.PDF"
}
}
{
"code": 0,
"msg": "调用成功",
"data": {
"url": "http://120.79.93.68:8080/upload/order/label/2020-06-12/66AC9F263B874B4DACBB03C9A081DADE.PDF"
}
}