庫存單筆查詢

商品庫存查詢與更新 #

庫存單筆查詢 #

查詢 單筆商品庫存

Endpoint URL: https://tw.scm.yahooapis.com/scmapi/api/GdStock/GetQty
HTTP Method: POST

Request Body #

ProductId #

商品編號。
資料型態: Integer
必填: 是
說明: 需為正整數

Request/Response Sample #

POST /scmapi/api/GdStock/GetQty

{
    "ProductId": 6497187
}
{
    "Qty": 305
}

Response Elements #

若操作成功,API 會回傳 HTTP 200 response。並以 JSON 格式回傳完整的商品庫存。

Qty #

庫存數量。
資料型態: Integer

Errors #

Bad Request #

輸入的參數不符合 API 定義的 Pattern。
HTTP Status Code: 403

Error
Error Code Description
Invalid input
403 商品編號有誤,請查明後重新查詢