TI-API: 庫存訂閱回覆範本

妳好,我查看了ti 網站有介紹訂閱庫存後,當有庫存時TI 會CALL 我們提供的API 網址回傳庫存資訊

 

但是系統上只有看到預計回傳的欄位清單, 測試的部分只會回覆我們API 網址設定是否成功,不會回傳真正的BUSINESS 資料

 

是否可以請協助提供一個JSON 範例,這樣我們開發上可以更快速並且更理解SPEC

  • Hi Carrie,

    您可以看一下链接中的yaml file。 

    callbacks:
            inventoryStockupEvent:
              '${companyProfile.inventoryAPI}':
                post:
                  summary: >-
                    Inventory Notification of stockup for subscribed part
                  tags:
                    - InventoryNotification
                  description: >-
                    The Inventory stockup notification spec sent to your API to notify you of a stockup
                  security:
                    - Basic: []
                    - ApiKey: []
                  requestBody:
                    required: true
                    content:
                      application/json:
                        schema:
                          $ref: '#/components/schemas/InventoryNotification'
                  responses:
                    '200':
                      description: >-
                        Acknowledgment of receipt of inventory notification
                      content:
                        application/json:
                          schema:
                            $ref: '#/components/schemas/InventoryNotificationResponse'
  • 妳好,我想我的意思表達的沒有清楚,

    我理解我可以透過yam 檔案可以查詢所以提供的服務

    但是我需要的是當我訂閱成功後,當真的有庫存的時候 TI CALL 我API 的 JSON 範例

    我有看到預計會傳回的欄位,但是我想確認是否可以提供JSON 範例讓我更快速開發

  • 这里的inventory notification 有的字段你这边开发都最好考虑进去,基本都会出现。

  • 好的,所以可以有任何一個範例的json 提供讓我參考嗎?