Product Inventory

  • 库存查询

Request

  • Path: oms/product/inventory
  • Method: POST
  • Header:
    • Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
    • Blade-Auth: access_token
  • Request body example:
1
2
3
4
5
{
"tenantId": "******",
"productSkus": "200319yj01,57223637"
}

  • Tip:
    • tenantId: required
    • productSkus: optional, multiple sku join with ,

Response

  • Response body example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"inventories": [
{
"available_quantity": 5,
"product_sku": "200319yj01",
"total_quantity": 5,
"product_name": "测试仪(P30)",
"freeze_quantity": 0
},
{
"available_quantity": 0,
"product_sku": "57223637",
"total_quantity": 0,
"product_name": "电锯",
"freeze_quantity": 0
}
],
"tenantId": "******"
}