页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 下一个 »

Interface description

Generate and print labels and return results in the order of request.

Patn

HTTP Verb URL
Post/services/shipper/labels

Request field

Field (API)Data TypeLengthMandatoryDetails
orderIdsString80O


labelTypeString80O

abelType:

0 Indicates the default value10cm * 15cm,

1 express10cm * 15cm,

2 expressA4,

4 express10cm * 10cm,At present, the API only supports these three formats;

packinglistString40OWhether to print a picking list or not
mergedString64MBoolean type,Specify whether to merge into one PDF file; If consolidation is selected, only the successful orders will be merged and printed, and the consolidation will be carried out according to the order of orders in the request parameters.
labelFormatString3OLabel format: JPG format is optional. If it is not filled in, the default format is pdf format. Jpg format sheets do not support merging. When printing packinglist at the same time, multiple files will be returned.


Request message

Request
{
"orderIds":["ABC123456789001001002"],
"labelType":1,
"packinglist":false,
"merged":false,
"labelFormat":"JPG"
}

Response message

Response
 {
    "status": "Success",
    "errors": null,
    "data": [
        {
            "status":"Success",
            "errors": null,
            "labelContent":"Base64 String"
            "orderId":"JDQ002445001000931503",
            "trackingNo":"JDQ002445001000931503",
            "labelContents": null
        }
    ]
}







  • 无标签