v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBProducts
Get Product Stocks
To get stock information for a specific product with its ID<br> 使用商品 ID 獲取特定一個商品的庫存資料
get/products/{id}/stocks
Path parameters
idstring required
Product ID<br>商品ID
Query parameters
excludes[]string[]
Could exclude certain parameters in the response<br>結果要排除哪些參數
[ "items.status" ]
fields[]string[]
Could only show certain parameters in the response<br>結果只顯示哪些參數
[ "items.status" ]
Response
OK
Example response
{
"id": "5d3594c276e7ec003b7021c0",
"stocks": [
{
"warehouse_id": "5ee819deab591e00169a4618",
"quantity": 15
}
]
}