获取中国直发包裹标签


POST https://eu-openapi.chukou1.cn:86/v1/directExpressOrders/label
½Ó¿Ú˵Ã÷: 获取中国直发包裹标签,支持多个包裹
Http 200 - 成功
Http 400 - 提交的数据有误,请检查

ÊäÈë²ÎÊý

Body Parameters
Ãû³ÆÀàÐ͸ñʽҪÇóÊÇ·ñ±ØÐëÃèÊöʾÀýÖµ
PackageIds Collection of string

None.

±ØÐë

包裹Id列表

PrintFormat PrintFormat

None.

±ØÐë

打印格式

ClassicLabel

PrintContent DirectExpressPrintContent

None.

±ØÐë

打印内容

AddressCostomsSplit

CustomPrintOptions Collection of DirectExpressCustomPrintOption

None.

Custom区域的内容选项

Custom

IdType IdType

None.

输入参数id的类型

ÊäÈë²ÎÊýµÄjsonÐÎʽ
{
  "PackageIds": [
    "sample string 1",
    "sample string 2"
  ],
  "PrintFormat": "ClassicA4",
  "PrintContent": "Address",
  "CustomPrintOptions": [
    "RefNo",
    "RefNo"
  ],
  "IdType": "PackageId"
}

·µ»Ø½á¹û

Ãû³ÆÀàÐ͸ñʽҪÇóÊÇ·ñ±ØÐëÃèÊöʾÀýÖµ
Label string

None.

Base64 编码,需要转换成byte数据,再生成pdf文件

·µ»Ø½á¹ûµÄjsonÐÎʽ
{
  "Label": "sample string 1"
}