跳到主要内容
版本:202201

查询商品库存详情

GET 

/openapi/2022-01/products/:product_id/inventory

通过商品 ID 获取指定商品的库存详情。

请求

Path参数

    product_id string必填

    商品 ID。

Query参数

    location_id string

    地点 ID(可选;指定后只返回该地点的库存)。

响应

200

数据结构
    product_idstring
    示例: f854e9a2-986d-4e2b-9df0-8e4c139ae80e
    variants object[]
  • Array [
  • variant_idstring
    示例: 5723299f-238a-4491-8b42-a187462e748a
    location_items object[]
  • Array [
  • location_idinteger
    默认值: 0
    示例: 327627904831724000
    stockinteger
    默认值: 0
    示例: 1
  • ]
  • ]