This webhook will be triggered in either of the following situations:
- The
current_inventory_statushas dropped to LOW_STOCK / OUT_OF_STOCK. - TikTok Shop predicts the
available_quantitywill drop to0in X days.
Note: The value of X can be system-configured or manually set by the seller.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The ID of the webhook type.
The ID of this webhook notification.
The shop ID.
The time when this webhook is triggered. Unix timestamp.
object
The ID of the product.
The ID of the SKU.
object
PREDICTION: TikTok Shop predicts the inventory will go out of stock in X days REALTIME: The inventory has reached LOW_STOCK or OUT_OF_STOCK
When alert_type == PREDICTION, the value is the time slot between update_time and the predicted out-of-stock date.
When alert_type == REALTIME, the parameter is not returned.
When alert_type == REALTIME, the value is the low stock threshold met.
When alert_type == PREDICTION, the parameter is not returned.
SUFFICIENT_STOCK: defined as having enough stocks. LOW_STOCK: defined as available stock ≤ stock alert value OUT_OF_STOCK: defined as having 0 available stock.
object
The total quantity of the stock physically in the warehouses. total_quantity=available_quantity + creator_reserved_quantity + campaign_reserved_quantity + committed_quantity.
The total number of SKUs available for ordering in the warehouses.
The total number of SKUs reserved for creators in the warehouses.
The total number of SKUs reserved for campaigns in the warehouses.
The total number of SKUs reserved by existing customer orders in the warehouses.
The time when the status changed, represented as a Unix timestamp (seconds).
Example
{ "type": 27, "tts_notification_id": "7327112393057371910", "shop_id": "7494049642642441621", "timestamp": 1644412885, "data": { "product_id": "732357708734418520388", "sku_id": "73235770873441823254", "trigger_reason": { "alert_type": "PREDICTION", "lead_days": 21 }, "current_inventory_status": "LOW_STOCK", "inventory_distribution": { "total_quantity": 100, "available_quantity": 50, "creator_reserved_quantity": 20, "campaign_reserved_quantity": 20, "committed_quantity": 10 }, "update_time": 1627587600 }}Responses
Section titled “Responses”Return HTTP 200 to acknowledge receipt.