Skip to content

获取标签 Label

接口说明

通过此接口可获取客户对应客户参考号的Label文件。

接口地址: http://tms.gateway.sc-express.cn/api/order/label

请求方式: POST

请求参数

请求字段说明

字段名称字段类型字段长度是否必需字段说明
authorizationJSONObject接口校验信息
codeString5-20Y客户编码
tokenString50YAPI授权码
datasJSONObject本次提交数据集
printTypeString

A4:A4标签

Label:热敏纸(不需要打印标签该值传空)
printInvoiceStringY

agent:代理标签

addressLabel:地址标签

expressLabel:面单

invoiceLabel:发票

customernumberJSONArrayY

客户参考号

请求报文示例

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"
    }
}