/erp/sc/routing/owms/overseaStockPlan/lockOverseaStockPlanStock{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/owms/overseaStockPlan/lockOverseaStockPlanStock"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"requestExample": "curl --location 'https://openapi.lingxing.com/erp/sc/routing/owms/overseaStockPlan/lockOverseaStockPlanStock?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"order_sns\": [\n \"PLAN-EXAMPLE\"\n ],\n \"is_combo_auto_process\": 0,\n \"is_auto_adjust\": 0\n}'"
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | order_sns | 待锁定库存的海外仓备货计划单号列表 | array<any> | — | Required | 待锁定库存的海外仓备货计划单号列表;重复单号会自动去重。 |
| 2 | is_combo_auto_process | 组合品是否自动创建加工单 | integer | — | Optional | 组合品是否自动创建加工单,0=否,1=是。 可选值:0、1 |
| 3 | is_auto_adjust | 库存不足时是否自动换标 | integer | — | Optional | 库存不足时是否自动换标,0=否,1=是。 可选值:0、1 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 业务结果码 | integer | — | Required | 业务结果码,与 HTTP 状态码不同;常见值为 1=成功、102=参数错误、1000=业务处理失败、500=系统错误。 |
| 2 | msg | 响应消息 | string | — | Required | 响应消息。 |
| 3 | data | data | object | — | Optional | |
| 3.1 | succ_num | 成功锁定库存的计划数量 | integer | — | Optional | 成功锁定库存的计划数量。 |
| 3.2 | fail_num | 锁定失败的计划数量 | integer | — | Optional | 锁定失败的计划数量。 |
| 3.3 | error | 锁定失败明细 | array<object> | — | Optional | 锁定失败明细。 |
| 3.3.1 | order_sn | 计划单号 | string | — | Optional | 计划单号。 |
| 3.3.2 | sku | 商品 SKU | string | — | Optional | 商品 SKU。 |
| 3.3.3 | fnsku | 商品 FNSKU | string | — | Optional | 商品 FNSKU。 |
| 3.3.4 | msg | 失败原因 | string | — | Optional | 失败原因。 |
| 4 | require_id | 请求追踪 ID | string | — | Optional | 请求追踪 ID;错误响应的 msg 还会附加请求码,便于排查。 |
The 分配并锁定库存 API (/erp/sc/routing/owms/overseaStockPlan/lockOverseaStockPlanStock) 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.