POST
When a promotion activity of the specified type starts, expires, or is deactivated, you’ll receive this webhook. This webhook will only be triggered when all the following conditions are met:
- Your App has been authorized the
Promotion Informationscope. - The activities are of the following types:
FIXED_PRICEDIRECT_DISCOUNTSHIPPING_DISCOUNTBUY_MORE_SAVE_MOREFLASHSALE(Only available in SEA markets: SG, TH, ID, MY, PH, VN)
- One of the following status changes happens:
- The activity starts: the status changes from
NOT_STARTtoONGOING. - The activity expires: the status changes from
ONGOINGtoEXPIRED. - The activity is deactivated: the status changes to
DEACTIVATED.
- The activity starts: the status changes from
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
type
required
The ID of the webhook type.
integer
tts_notification_id
The ID of the notification.
string
shop_id
The ID of the shop.
string
timestamp
The time when this webhook was triggered, represented by Unix timestamp.
integer format: int64
data
object
activity_id
The ID of the promotion activity.
string
update_time
The time when the status changed, represented as a Unix timestamp (seconds).
integer format: int64
activity_type
The type of the promotion activity. Possible values are:
FIXED_PRICEDIRECT_DISCOUNTSHIPPING_DISCOUNTBUY_MORE_SAVE_MOREFLASHSALE(Only available in SEA markets: SG, TH, ID, MY, PH, VN)
string
product_level
Activity product dimension, values are:
PRODUCTVARIATIONSHOP
string
status
The current status of the promotion activity. Possible values are:
ONGOINGEXPIREDDEACTIVATED
string
Example
{ "type": 39, "shop_id": "7494049642642441621", "tts_notification_id": "7327112393057371910", "timestamp": 1644412885, "data": { "activity_id": "7136104329798256386", "update_time": 1644412885, "activity_type": "FIXED_PRICE", "product_level": "PRODUCT", "status": "ONGOING" }}Responses
Section titled “Responses”Return HTTP 200 to acknowledge receipt.