Plan expiry reminder via WhatsApp API
The scenario sends the customer a personalised WhatsApp template before a plan or subscription ends.
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
Payments & Invoices
Subscription renewal reminder via WhatsApp API
The scenario sends the customer a personalised WhatsApp template before a subscription renewal date.
Payments & Invoices
Subscription activated message via WhatsApp API
The scenario sends the customer a personalised WhatsApp template when a new subscription is activated.
Payments & Invoices
Subscription cancellation message via WhatsApp API
The scenario sends the customer a personalised WhatsApp template when a subscription is cancelled.
Payments & Invoices
Send a PDF invoice via WhatsApp API (sendFile)
This scenario sends a PDF document with sendFile during the 24-hour WhatsApp customer service window.
Payments & Invoices
Payment confirmation message via WhatsApp API
The scenario sends the customer a personalised WhatsApp template when a payment succeeds.
Payments & Invoices
Overdue payment reminder via WhatsApp API
The scenario sends the customer a personalised WhatsApp template when their payment becomes overdue.
Payments & Invoices
Payment method choice with WhatsApp buttons (API)
The scenario sends the customer a personalised WhatsApp template when billing needs to know the payment method.
Payments & Invoices
Send a payment link via WhatsApp API
The scenario sends the customer a personalised WhatsApp template when billing or checkout needs to collect payment.


