更新商品库存(通过yhProductId)
简要描述:
- 此接口用于修改云商城中指定站点下的商品库存数量(通过yhProductId)。
请求URL:
- 沙箱环境
http://api.mall.sandbox.yhsms.com.cn/Mall/Goods/GoodsService.svc/ModifyGoodsAmountByYhProductId - 生产环境
http://api.mall.yhsms.com.cn/Mall/Goods/GoodsService.svc/ModifyGoodsAmountByYhProductId
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| PlatformID | 是 | string | YHDT号 |
| StationID | 是 | string | 站点编号 |
| PlatformAccessToken | 是 | string | 平台级Token |
| GoodsID | 是 | string | 商品编号 |
| yhProductId | 是 | string | 益华商品唯一编码 |
| GoodsAmount | 是 | int | 商品库存数 |
| ShelfInfo | 是 | string | 商品货架信息(详见下方结构说明) |
ShelfInfo 参数结构说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ShelfID | string | 货架编号 |
| ShelfName | string | 货架名称 |
| ShelfAmount | int | 架上数量 |
ShelfInfo 示例
[{"ShelfID": "05001011","ShelfName": "精装大全","ShelfAmount": "0"},{"ShelfID": "05001016","ShelfName": "海豚专架","ShelfAmount": "3"}]
返回示例
{"Code":"0","Method":0,"Compressed":false,"Encrypted":false,"Message": "操作已成功"}
备注
- 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2020-06-09 14:33 作者:张国伟