/erp/sc/storage/shipment/printFnskuLabels{
"operation": {
"method": "POST",
"path": "/erp/sc/storage/shipment/printFnskuLabels"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/erp/sc/storage/shipment/printFnskuLabels?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"data\": [{\n \"shipment_id\": \"FBA16RKY2ZNR\",\n \"num\": 20,\n \"seller_sku\": \"Black_ Head_Rope\",\n \"fnsku\": \"B09MT3989Q\"\n }],\n \"page_type\": \"DOUBLE_COL_100_30\",\n \"print_content\": \"yes\",\n \"content_type\": \"sku\",\n \"print_custom\": \"yes\",\n \"custom_content\": \"MADE IN CHINA\",\n \"new_tag\": \"yes\",\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": 1,
"data": {
"file_url": "https://example.com/file.pdf"
}
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | data | data | array<object> | — | 必填 | |
| 1.1 | shipment_id | 货件编号 | string | — | 必填 | 货件编号 |
| 1.2 | num | 标签打印个数 | integer | — | 必填 | 标签打印个数 |
| 1.3 | seller_sku | seller_sku | string | — | 必填 | MSKU |
| 1.4 | fnsku | fnsku | string | — | 必填 | FNSKU |
| 2 | page_type | 标签页面类型 | string | — | 必填 | 标签页面类型: SINGLE_COL_50_30 热敏纸【50X30】单排 SINGLE_COL_70_30 热敏纸【70X30】单排 DOUBLE_COL_100_30 热敏纸【100X30】双排 A4_FOUR_COL_40 A4纸【每页40个标签】四排 A4_FOUR_COL_44 A4纸【每页44个标签】四排 US_LETTER_THREE_COL_30 美国信纸【每页30个标签】三排 |
| 3 | print_content | 是否打印 | string | — | 可选 | 是否打印:【默认yes】 yes 是 no 否 |
| 4 | content_type | 打印SKU/品名 | string | — | 可选 | 打印SKU/品名:【默认sku】 sku SKU sku_name 品名 |
| 5 | print_custom | 是否打印自定义内容 | string | — | 可选 | 是否打印自定义内容:【默认yes】 yes 是 no 否 |
| 6 | custom_content | 自定义内容 | string | — | 可选 | 自定义内容,默认MADE IN CHINA |
| 7 | new_tag | 标签中是否显示‘new’字样 | string | — | 可选 | 标签中是否显示‘new’字样:【默认yes】 yes 是 no 否 |
| 8 | is_return_url | 传值1时 | integer | — | 可选 | 传值1时,不返回base64字符串,直接返回有10分钟过期时间的url用于下载文件 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | 17036564-84C9-554E-5225-BEFE9A3733EC | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-07-04 18:40:49 | 必填 | 响应时间 |
| 6 | total | 总数 | integer | 1 | 必填 | 总数 |
| 7 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 7.1 | file_base64 | 未传或is_return_url不为1时 | string | xxx | 必填 | 未传或is_return_url不为1时,返回打印PDF文件的base64编码 |
| 7.2 | file_url | file_url | string | https://example.com/file.pdf | 必填 | is_return_url=1时返回PDF下载链接(10分钟有效) |
领星ERP的接口:查询FBA货件商品FNSKU标签(/erp/sc/storage/shipment/printFnskuLabels),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。