/erp/sc/routing/storage/shipment/lockStock{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/shipment/lockStock"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"requestExample": {
"shipment_nos": [
"SP240123007"
],
"is_auto_batch": 0
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "21EE37F0-5C84-0A70-9A7D-C9695538A59A",
"response_time": "2024-10-03 14:51:38",
"data": [],
"total": 0
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | shipment_nos | 发货单单号 | array<any> | — | Required | 发货单单号,对应查询FBA发货单列表接口字段【shipment_sn】 |
| 2 | is_auto_batch | 是否锁定至批次 | integer | — | Optional | 是否锁定至批次,1:是,0:否,默认为否,否:只锁定库存数量,发货时按先进先出规则匹配出库批次;是:按先进先锁规则自动指定批次并锁定,发货时按锁定批次出库;分配库存后,可在【查询发货单详情】接口的采购信息中查看锁定的批次 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | number | 0 | Required | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | Required | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | Required | 错误信息 |
| 4 | request_id | 请求链路id | string | 21EE37F0-5C84-0A70-9A7D-C9695538A59A | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2024-10-03 14:51:38 | Required | 响应时间 |
| 6 | data | 响应数据 | array<any> | — | Required | 响应数据 |
| 7 | total | 总数 | number | 0 | Required | 总数 |
The 发货单分配库存 API (/erp/sc/routing/storage/shipment/lockStock) 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.