POST 查询订单锁库仓库
参数位置:body:array。 POST 查询。body 为销售订单ID的 JSON 数组。返回各订单明细生效的锁库仓库、库位与剩余锁定数量。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
sales.shipment.order-lock-warehouses | sales:read | POST /v1/sales-shipment/order-lock-warehouses(comap-sales) |
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "sales.shipment.order-lock-warehouses",
"body": [
"1961000000000000001"
]
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
salesOrderId | integer(int64) | — | 销售订单ID |
salesOrderItemId | integer(int64) | — | 销售订单明细行ID |
productId | integer(int64) | — | 产品ID |
skuId | integer(int64) | — | SKU ID |
storeId | integer(int64) | — | 锁库仓库ID |
storeName | string | — | 锁库仓库名称 |
locationId | integer(int64) | — | 锁库库位ID |
locationName | string | — | 锁库库位名称 |
remainingLockQty | number | — | 剩余锁定量(主单位) |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 sales:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-sales 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回发货单