Triggered events each time an account is being blocked or unblocked from sending campaigns
Account promotional blocked subscribe example:
curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "account/promotional_blocked",
"target_url": "URL"
}'
Account promotional blocked response example:
{
"entity_name": "account",
"event_type": "promotional_blocked",
"data": {
"business_uid": "123456789abcdefg",
"is_promotional_blocked": true,
"promotional_blocked_at": "2023-05-04T17:16:38+03:00",
"promotional_block_count": 26
}
}
Account promotional unblocked response example:
{
"entity_name": "account",
"event_type": "promotional_blocked",
"data": {
"business_uid": "123456789abcdefg",
"is_promotional_blocked": false,
"promotional_blocked_at": null,
"promotional_block_count": 25
}
}