You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 22 Next »
URL
http://test.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989352
接口功能
获取产品有效库存
支持格式
开发人员
请求方式
GET
发布日期
参数
必选
说明
类型
ids
必填
产品id
VARCHAR(255)
返回字段
字段类型
live_stock
INT
当前站点库存
current_locked_stock
当前站点下被占有库存
dynamic_warehouse_available_stock
动态仓可用库存
id
产品ID,查询多个ID用”,”号分隔
地址:http://test.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989352
# api_key和company_id和提交数据中的delivery_service_id需要替换成实际数据 -Headers 'api_key: {{bs.default_api_key}}' \ #所需登录站点company_id -Headers 'company_id: {{bs.default_company_id}}' \ #所需登录账号的api_key -Headers 'content-type: application/json' \
url:https://branch.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989429,2989354
{ "data": [ { "live_stock": 0, "current_locked_stock": 0, "dynamic_warehouse_available_stock": 0, "id": 2989429 }, { "live_stock": 91, "current_locked_stock": 28, "dynamic_warehouse_available_stock": 0, "id": 2989354 } ], "success": true, "refresh": false, "moduleName": "client" }
请求参数:
url:https://branch.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989
返回结果:
{ "success": false, "message": "Product with id 2989 does not belong to you." }
需确保请求参数的ids的值在是正确的