/basicOpen/packingTask/addTask{
"operation": {
"method": "POST",
"path": "/basicOpen/packingTask/addTask"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/basicOpen/packingTask/addTask?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"relateSnType\": 1,\n \"wid\": 1,\n \"data\": [\n {\n \"sid\": 1,\n \"relateSn\": \"FBA124343434\"\n }\n ]\n}'",
"responseExample": "{\n\t\"code\":0,\n\t\"message\":\"success\",\n\t\"error_details\":[],\n\t\"request_id\":\"a0d54debf93140f3b58d1ed81e8e3583\",\n\t\"response_time\":\"2026-04-23 12:00:00\",\n\t\"data\":{\n\t\t\"taskSn\":\"PL260427001\",\n\t\t\"relateSn\":\"RP260421007\"\n\t}\n}```"
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | relateSnType | 单据类型 1-发货计划 | integer | — | Required | 单据类型 1-发货计划,2-发货单,3-FBA货件,4-海外仓备货单,5-VC货件 |
| 2 | wid | 仓库ID | integer | — | Optional | 仓库ID,单据类型为FBA货件时必传 |
| 3 | data | 关联单据数据 | array<object> | — | Required | 关联单据数据 |
| 3.1 | sid | 店铺ID | integer | — | Required | 店铺ID |
| 3.2 | relateSn | 关联单据编号 | string | — | Required | 关联单据编号 |
| 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 | a0d54debf93140f3b58d1ed81e8e3583 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2026-04-23 12:00:00 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | taskSn | 装箱任务编号 | string | PL260427001 | Required | 装箱任务编号 |
| 6.2 | relateSn | 关联单据编号 | string | RP260421007 | Required | 关联单据编号 |
The 装箱任务 - 生成装箱任务 API (/basicOpen/packingTask/addTask) 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.