Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "success": false,
    "message": "Product with id 2989 does not belong to you."
}

...

Include Page

...

URL

...

http://test.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989352

...

接口功能

...

支持格式

...

URL

...

开发人员

...

请求方式

...

GET

...

发布日期

请求json参数说明:

不填条件参数,则默认查询所有产品有效库存,默认返回50条产品数据,一次性最多返回1000条产品数据

...

参数

...

必选

...

说明

...

类型

...

ids

...

Status
colourRed
title必填

...

产品id

...

VARCHAR(255)

返回字段:

...

返回字段

...

字段类型

...

说明

...

live_stock

...

INT

...

当前站点库存

...

current_locked_stock

...

INT

...

当前站点下被占有库存

...

dynamic_warehouse_available_stock

...

INT

...

动态仓可用库存

...

id

...

INT

...

产品ID,查询多个ID用”,”号分隔

接口示例:

接口请求示例

地址:http://test.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989352

Code Block
languagejs
  -Headers 'api_key: {{bs.default_api_key}}' \	#所需登录站点company_id
  -Headers 'company_id: {{bs.default_company_id}}' \	#所需登录账号的api_key

请求参数示例

请求方式url:支持获取多个产品库存信息

url:https://branch.birdsystem.com/client/product/Get-Product-Available-Quantity?ids=2989429,2989354

接口返回示例

Code Block
languagejson
{
    "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

返回结果:

产品有效库存获取
产品有效库存获取