庫存訂閱推播 API

測試端點:
https://transact.ti.com/v2/store/subscriptions/inventory/test

生產端點:
https://transact.ti.com/v2/store/subscriptions/inventory

當缺貨商品有貨時,庫存訂閱推播 API 就會通知您,並提供目前定價資訊。Webhook 會即時傳送至您的系統,且可用於觸發自動化流程。這只是通知,並不會保留庫存。在發生備貨觸發事件後,就會移除訂閱,除非已設定「autoSubscribe」旗標。所有訂閱都會在其到期日時逾期,且必須重新提交。

注意:如果目前庫存量大於訂閱數量,則在庫存量降至低於訂閱數量並補充至等於或大於訂閱數量後,才會觸發推播通知。

推播通知可以使用「.../store/subscriptions/inventory/test」端點測試。如此會根據規格產生 Webhook,並透過 HTTP POST 要求傳送至您配置的 API。隨後將會從您的 API 傳回狀態代碼。

 

商店庫存訂閱流程概覽

  1. 進行驗證,方法為使用指派給您的 API 金鑰和秘密
  2. 在收到存取權杖後,請傳送要求至其中一個庫存訂閱 API。
  3. API 將會回覆狀態代碼 200 OK,以及 JSON 回應。
     

TI store inventory subscription API
 2.0.0 
OAS3

/content/dam/developer-api/inventory-subscription-push-api.yaml

This API allows the user to subscribe to inventory back-in-stock notifications. When a part has stocked up, this API will generate a notification that is sent to your configured API via an HTTP POST request.

Servers

Error