{
"id": "evt_djeIQXaQPQyUcRFi",
"type": "whatsapp.business_account.updated",
"apiVersion": "v2",
"createTime": "2024-06-01T00:00:00.000Z",
"whatsappBusinessAccount": {
"id": "106681...",
"updateEvent": "BUSINESS_PRIMARY_LOCATION_COUNTRY_UPDATE",
"primaryBusinessLocation": "US"
}
}
whatsapp.business_account.updated to handle this event at your webhook endpoint.
Triggers
Occurs when a policy violation happened, WhatsApp Business Account has been banned and more. Subscribe towhatsapp.business_account.updated when you configure your webhook endpoint.
Syntax
YCloud sends an HTTPPOST request to your configured webhook URL. The following shape shows one payload variant. Angle-bracket values are placeholders; their types are listed under Parameters. Optional fields and other variants are described below.
Parameters
Validate theYCloud-Signature HTTP header before you process the JSON body. See signature validation.
Event envelope
Event payload
The four common envelope fields are required. Payload fields depend on the event variant. In each object table, Required applies when its parent object is present. Optional fields can be omitted; a sample does not make a field required.
whatsappBusinessAccount
whatsappBusinessAccount.restrictions[]
whatsappBusinessAccount.restrictions[]
whatsappBusinessAccount.authIntlRateEligibilityCountries[]
whatsappBusinessAccount.authIntlRateEligibilityCountries[]
Example
The following JSON is the body delivered to your receiver. IDs, phone numbers, and other account values are illustrative.Utility Direct Send restriction event
Utility Direct Send restriction event
Meta restricted Utility Direct Send for 7 days after repeated category misuse.
Authentication-International Rate Eligibility
Authentication-International Rate Eligibility
Primary Business Location Update
Primary Business Location Update
Phone-number registration limit update
Phone-number registration limit update
Account violation
Account violation
Account Restriction
Account Restriction
Account Disabled
Account Disabled
Account Reinstate
Account Reinstate
2xx response. Process slow work asynchronously.

