库存订阅推送 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"端点。
- 这将使用符合 API 规范的 HTTP POST 请求,生成一个发送到您配置的 API 的测试 webhook。
- 然后它将从您的 API 返回状态代码。
下图:订阅推送通知示例
{
"type": "inventory",
"data": {
"tiPartNumber": "TESTOPN",
"genericPartNumber": "TESTGPN",
"buyNowUrl": "https://www.ti.com.cn/product/cn/TESTGPN/part-details/TESTOPN",
"quantity": 0,
"pricing": [
{
"currency": "USD",
"priceBreaks": [
{
"priceBreakQuantity": 1,
"price": 1.003
}
]
}
],
"description": "Test product for test nofication",
"minimumOrderQuantity": 1,
"standardPackQuantity": 75,
"exportControlClassificationNumber": "EAR99",
"htsCode": "0123456789",
"pinCount": 8,
"packageType": "TESTOPN_8_SOIC_D",
"packageCarrier": "TUBE",
"customReel": false,
"lifeCycle": "ACTIVE"
}
}