How to send Twilio invoice SMS notifications in Blesta
Notify customers when an invoice is created or paid using separate PD Twilio SMS triggers. These are billing-event messages, with invoice-specific merge fields; a bulk SMS campaign is a different workflow.
Prepare Billing Texts and templates
Open Twilio SMS → Client Preferences and review Billing Texts. Apply the intended profile choices and check the test client’s effective mobile number. A hidden billing category prevents its automatic messages even if a trigger is enabled.
Create two enabled templates under Templates. A new-invoice notice can use Hi {first_name}, invoice {invoice_id} for {invoice_total} is due on {invoice_due}. Please check your client area. A paid-invoice notice can use Hi {first_name}, invoice {invoice_id} is now marked paid. Thank you from {company_name}.
Use the invoice number customers recognise, and inspect the rendered amount with its currency. A preview with sample data does not prove that every real invoice context is correct. Rehearse the intended event in a controlled test workflow through Test / Debug Log only before choosing a live gateway.
Create each trigger
- Open Twilio SMS → Triggers → New trigger.
- Choose Invoice created, select the new-invoice template and an explicit Send via gateway, then choose Create trigger.
- Create a second trigger for Invoice paid, using the paid-invoice template.
- Review both rows for the correct template, gateway and enabled state.
The created notice follows the invoice being added. The paid notice follows Blesta closing the invoice as paid in full. It is not a notice for each partial payment, nor proof that a related service has finished provisioning.
These events cover renewals as well as initial invoices. Do not describe every paid-invoice text as a new order confirmation. Check for an existing trigger for the same event to avoid duplicate notifications.
Diagnose a missing notice
Confirm the original event occurred, the client has the intended mobile number and Billing Texts allows the message. Check that the selected template and trigger are enabled. Review pending work, quiet hours and normal cron operation before expecting a History attempt.
If History says Sent through Twilio, Twilio accepted the request; it does not prove phone delivery. Inspect the provider reference and Twilio delivery evidence. A timeout marked Unknown should be reconciled before a manual repeat. Do not create or mark a real invoice paid merely to test the notification.
Several SMS modules on one installation
When several PD SMS modules are enabled, a single module manages the shared client-profile fields. PD SMS Manager takes precedence when present. Follow any Client Preferences message identifying that module and make shared profile-setting changes there. Check PD Twilio SMS’s own category rules, phone source and gateway routing separately; a shared profile summary does not prove every enabled module’s sending configuration.
See the PD Twilio SMS Blesta guide for related tasks, or explore PD Twilio SMS.