Ticket closed notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when a support ticket is closed.
Common errors
| Status | API response | Cause | Fix |
|---|---|---|---|
| 200 | Message was not sent: template is not defined | namespace, template or language is missing from the request body. | Send all three. Take namespace and the exact template name from GET /templates; language is an object: {"policy": "deterministic", "code": "en"}. |
| 200 | template name (…) does not exist in <language> | The template is approved in a different language than the one requested. | Use the exact language code the template was approved in (for example es_MX is not the same as es). Check it in GET /templates. |
| 200 | Message was not sent: provide chatId, phone, bsuid, or username | No recipient the channel could resolve. | Pass exactly one recipient: phone (country code plus number, digits only), chatId (for example [email protected]) or bsuid. |
Common questions
Related
Customer Service
Ticket transfer notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when a support ticket is transferred to another department.
Customer Service
Ticket status update notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when a support ticket status changes.
Customer Service
Ticket escalation notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when a support ticket is escalated because resolution is taking longer than usual.
Customer Service
Ticket created notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when a new support ticket is created.
Customer Service
Ask for a photo or file via WhatsApp API template
The scenario sends the client a personalized WhatsApp template when support needs a photo, document, or proof to process a ticket and no 24-hour session is open.
Customer Service
Request ticket details outside 24h (WhatsApp API)
The scenario sends the client a personalized WhatsApp template when support needs more data to resolve a ticket and no session window is open.
Customer Service
Ticket accepted notification via WhatsApp API
The scenario sends the client a personalized WhatsApp template when their support request is accepted for processing.
Customer Service
Create a WhatsApp group via API (groups endpoint)
This scenario uses the groups API with a create operation to provision a named WhatsApp group for team broadcasts.


