/erp/sc/storage/shipment/printFbaLabels{
"operation": {
"method": "POST",
"path": "/erp/sc/storage/shipment/printFbaLabels"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/erp/sc/storage/shipment/printFbaLabels?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"data\": [{\n \"shipment_id\": \"FBA16Q9LDF2X\",\n \"page_type\": \"PackageLabel_Plain_Paper_CarrierBottom\",\n \"page_start_index\": 1,\n \"num\": 2\n }],\n \"hide_ship_from_company_name\": 1,\n \"hide_ship_to_company_name\": 1,\n \"print_sta_name_page\": 1,\n \"sort_label\": 1,\n \"sort_by_packing_task_box\": 1,\n \"print_made_in_china\": 1,\n \"print_product_num\": 1,\n \"print_center_id\": 1,\n \"print_fnsku\": 1,\n \"print_product_name\": 1,\n \"print_packing_task_box_no\": 1,\n \"type\": \"card\",\n \"is_return_url\": 1\n}'",
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "17036564-84C9-554E-5225-BEFE9A3733EC",
"response_time": "2022-07-04 18:40:49",
"total": 0,
"data": {
"file_url": "https://example.com/file.pdf"
}
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | data | 请求数据 | array<object> | — | Required | 请求数据 |
| 1.1 | shipment_id | 货件编号 | string | — | Required | 货件编号 |
| 1.2 | page_type | 页面类型 | string | — | Required | 页面类型: PackageLabel_A4_2 - 每张A4纸打印2个标签 PackageLabel_A4_4 - 每张A4纸打印4个标签 PackageLabel_Plain_Paper - 每张美国信纸打印1个标签 PackageLabel_Letter_2 - 每张美国信纸打印2个标签 PackageLabel_Letter_6 - 每张美国信纸打印6个标签 PackageLabel_Thermal_NonPCP - 热敏纸(108 x 152 mm)1个标签 PackageLabel_Thermal_AK100 - 热敏纸(100 x 100mm)1个标签 PackageLabel_Thermal_AK100_Mark - 热敏纸(100 x 100mm)1个标签(带水印) |
| 1.3 | num | 页数【非合作承运人货件必填 | integer | — | Optional | 页数【非合作承运人货件必填;合作承运人标签无法指定页数,不需要填】 |
| 1.4 | page_start_index | 箱子打印的起始页 | integer | — | Optional | 箱子打印的起始页,默认为1 |
| 2 | hide_ship_from_company_name | 隐藏ship from公司名 | integer | — | Optional | 隐藏ship from公司名,默认不隐藏,非必填,传值1为开启 |
| 3 | hide_ship_to_company_name | 传值1为隐藏ship to公司名 | integer | — | Optional | 传值1为隐藏ship to公司名,默认不隐藏,非必填,传值1为开启 |
| 4 | print_sta_name_page | 传值1为新增任务名称页 | integer | — | Optional | 传值1为新增任务名称页,默认不新增,非必填,仅打印box箱子标签时生效,传值1为开启 |
| 5 | sort_label | 传值1为按箱子顺序重排 | integer | — | Optional | 传值1为按箱子顺序重排,默认不按箱子顺序重排,仅打印box箱子子标签时生效(说明:不按箱子顺序重排时,打印文件... |
| 6 | sort_by_packing_task_box | 传值1为按装箱任务箱号重拍 | integer | — | Optional | 传值1为按装箱任务箱号重拍,需货件关联了装箱任务时才支持这个选项 |
| 7 | print_made_in_china | 传值1为打印MADE IN CHINA | integer | — | Optional | 传值1为打印MADE IN CHINA |
| 8 | print_product_num | 传值1为打印箱子商品数 | integer | — | Optional | 传值1为打印箱子商品数 |
| 9 | print_center_id | 传值1为打印物流中心编码 | integer | — | Optional | 传值1为打印物流中心编码 |
| 10 | print_fnsku | 传值1为打印FNSKU | integer | — | Optional | 传值1为打印FNSKU |
| 11 | print_product_name | 传值1为打印产品品名 | integer | — | Optional | 传值1为打印产品品名 |
| 12 | print_packing_task_box_no | 传值1为打印货件箱子关联的装箱任务编号 | integer | — | Optional | 传值1为打印货件箱子关联的装箱任务编号 |
| 13 | type | 打印类型 | string | — | Required | 打印类型:box 箱子标签,card 卡板标签 |
| 14 | is_return_url | 传值1时 | integer | — | Optional | 传值1时,不返回base64字符串,直接返回有10分钟过期时间的url用于下载文件 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | Required | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | 17036564-84C9-554E-5225-BEFE9A3733EC | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-07-04 18:40:49 | Required | 响应时间 |
| 6 | total | 总数 | integer | 0 | Required | 总数 |
| 7 | data | 响应数据 | object | — | Required | 响应数据 |
| 7.1 | file_base64 | 未传或is_return_url不为1时 | string | xxx | Required | 未传或is_return_url不为1时,返回打印PDF文件的base64编码 |
| 7.2 | file_url | file_url | string | https://example.com/file.pdf | Required | is_return_url=1时返回PDF下载链接(10分钟有效) |
The 查询FBA货件箱子、卡板标签 API (/erp/sc/storage/shipment/printFbaLabels) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.