Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

地址: http://test.birdsystem.co.uk/client/product/Get-Product-Available-Quantity

只读

获取单个产品可用库存

参数

字段备注类型说明
ids产品id集合string多个产品id以 ',' 分割,查询定向共享产品时格式为 客户ID|产品ID|D,例如客户2定向共享给客户1的产品3,客户1查询的时候格式为2|1|D。查询多个产品时参数ids=2,2|1|D



返回

{
   "data": [
      {
         "live_stock": "1",     //当前库存
         "current_locked_stock": 0,  //占用库存
         "id": 1  //产品ID
      },
      {
         "live_stock":  "5", //当前库存
         "current_locked_stock": 1,
         "id": 2
      }
   ],
   "success": true,
   "refresh": false,
   "moduleName": "client"
}

可用库存为live_stock - current_locked_stock

  • No labels