Template Status
The payload structure for 'Template Status' webhook is mentioned below as an example:
Payload
{
"channelMetadata": {
"entry": [
{
"changes": [
{
"field": "message_template_status_update",
"value": {
"reason": "NONE",
"message_template_name": "testing_template",
"event": "APPROVED/REJECTED/PENDING_DELETION...",
"message_template_language": "en",
"message_template_id": "10545..........."
}
}
],
"id": "32002...........",
"time": "17497....."
}
],
"object": "whatsapp_business_account"
},
"channel": "whatsApp",
"type": "TEMPLATE_STATUS",
"timestamp": 17497.....
}
The payload structure for the 'Template Status' webhook, in the event that a template is paused, is provided below as an example:
Payload
{
"channelMetadata": {
"entry": [
{
"changes": [
{
"field": "message_template_status_update",
"value": {
"reason": "NONE",
"message_template_name": "testing_template",
"event": "PAUSED",
"message_template_language": "en",
"message_template_id": "10545...........",
"other_info": {
"title": "SECOND_PAUSE",
"description": "Your WhatsApp message template has been paused for 6 hours until Aug 31 at 12:47 AM UTC because it continued to have issues."
}
}
}
],
"id": "32002...........",
"time": "17497....."
}
],
"object": "whatsapp_business_account"
},
"channel": "whatsApp",
"type": "TEMPLATE_STATUS",
"timestamp": "17497....."
}
The details are mentioned below:
Attribute | Description |
---|---|
type | Template_Status. |
channel | WA. |
timestamp | Timestamp value. |
channelMetadata (object) | Highlighting metadata of the Event. |
The details of 'channelMetadata' object is as mentioned below:
Attribute | Description |
---|---|
id | WABA ID. |
changes(object) | Highlighting the changes. |
The details of 'Changes' object is as mentioned below:
Attribute | Description |
---|---|
value (Object) | Highlighting changes details. |
field | Fixed Value: message_template_status_update. |
The details of value object for 'Template Status' is as mentioned below:
Attribute | Description |
---|---|
event | For template status, the available values are- Approved, Paused, Rejected, Flagged, Pending_Deletion. |
message_template_name | Template Name. |
message_template_language | Template Language Code. |
reason | ABUSIVE_CONTENT — Content has been determined to be abusive. INCORRECT_CATEGORY — Category has been determined to be incorrect. INVALID_FORMAT — Duplicate content or missing examples. NONE - Default, set when template is approved. SCAM — Content has been determined to be a scam. |
other_info(object) | Received only if the template is Paused. It contains Below details: Title- Possible Values- FIRST_PAUSE, SECOND_PAUSE Description- Highlighting the time for which Template is Paused. |
disable_info(object) | Disable_Date - The date at which the Template is disabled. |