批量拒绝出库
一次拒掉多笔出库,把要拒的记录列表传进来。
| 请求方式 | POST |
| 接口路径 | /api/order/buyer/rejectBatch |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
stockIds | Array<Integer> | 是 | - |
returnToPosition | Boolean | 否 | true=放回货位,false=不放回货位并生成驳回出库流水(默认) |
curl 调用
curl -s 'https://www.8shu8.com/api/order/buyer/rejectBatch' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"stockIds": [
1
],
"returnToPosition": true
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": true
}