Skip to navigation

查詢組合品價格

View as Markdown

依組合 SKU 序號查詢目前的牌價與對外售價,路徑與回應形狀都與 GET /v1/skus/{id}/price 相同。id 不存在、屬於其他租戶,或指向一般規格時,一律回傳 404 not_found,這幾種情況無法從回應內容區分。

⚠️ 舊的複數路徑 GET /v1/bundles/{id}/prices 已移除,沒有保留別名,呼叫會得到 404。

Authentication

X-Signaturestring

每個 /v1 請求都必須帶 X-Client-Id、X-Timestamp、X-Nonce 與 X-Signature 四個標頭。X-Signature 是以 client secret 對 canonical string 做 HMAC-SHA256 後的 Base64。

canonical string 的組成、可複製的簽章範例與 401 排查步驟,請參閱「驗證與簽章」。

Path parameters

idlongRequired

要查詢價格的組合 SKU 序號。不存在、屬於其他租戶,或指向一般規格時,一律回傳 404 not_found。

Response

OK
pricedouble or nullOptional

牌價。

sellPricedouble or nullOptional

對外售價。

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error