Notifying when a business account is locked out from the system
The event is triggered when a business account is locked out from the product.
Webhook authorization: using a directory token.
Subscribing to the Account Closed webhook:
curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "account/closed",
"target_url": "URL"
}'
Account Closed Payload Example:
{
"entity_name": "account",
"event_type": "closed",
"data": {
"business_id": "123456789abcdefg",
"business_name": "School Of Rock",
"email": "[email protected]",
"address": "Tel Aviv, Israel",
"created_at": "2021-08-15T11:02:48Z",
"closed_at": "2021-08-15T11:04:46+00:00"
}
}