换发货仓库
把某一单改到另一个仓库发货。目标仓库存不够会直接报错,不会硬改。
| 请求方式 | POST |
| 接口路径 | /api/order/buyer/changeWarehouse |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
orderId | Integer | 是 | - |
warehouseId | Array<Integer> | 是 | - |
stockId | Integer | 否 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/order/buyer/changeWarehouse' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"orderId": 1,
"warehouseId": [
1
],
"stockId": 1
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": true
}