---
title: Set Up Twilio SMS Dunning
url: https://docs.maxio.com/billing/subscriptions/dunning/set-up-schedules/set-up-twilio-sms-dunning
applies_to: Advanced Billing
updated: 2026-08-28
---

# Set Up Twilio SMS Dunning

Extend your dunning tools by sending SMS (text) reminders alongside email notices when payments fail. Connect your Twilio account, then add SMS messages to individual dunning steps using Liquid fields, including the required "STOP" and "HELP" language so Customers can manage their subscription to texts.

## Set up your Twilio account

You need a <a href="https://www.twilio.com/" target="_blank" rel="noopener noreferrer">Twilio</a> account to use this integration.

We suggest using one Twilio number per Advanced Billing site. Customers can unsubscribe from SMS dunning messages, so you'll want to make sure they aren't unsubscribed from a secondary Advanced Billing site.

We also suggest sending both emails and SMS messages during dunning, so Customers still receive an email even if they unsubscribe from SMS messages.

## Connect Twilio to Advanced Billing

Enter your Twilio credentials in Advanced Billing and enable the integration before you can add SMS messages to any dunning step.

**To connect Twilio to Advanced Billing**

1. Go to **Config** > **Integrations**, then select **Twilio**.
2. Enter your **From** number, **Account SID**, and **Auth Token** from your Twilio account.
3. Check **Twilio Enabled?**, then select **Save Twilio Settings**.

![Twilio account settings with the API credentials section](https://docs.maxio.com/content-images/billing/subscriptions/dunning/set-up-schedules/set-up-twilio-sms-dunning/29540079049229_Screenshot_2024-08-07_at_11.04.00_AM.png)

*Twilio integration settings, under Config > Integrations*

You can find your **Account SID** and **Auth Token** in Twilio's own console.

![Maxio fields for the Twilio number and API credentials](https://docs.maxio.com/content-images/billing/subscriptions/dunning/set-up-schedules/set-up-twilio-sms-dunning/24287177250829_twilio_credentials.png)

*Your credentials in Twilio*

To verify your configuration, select **send a test text**. Remember: if someone at your organization regenerates your Twilio credentials, the integration stops working until you update the credentials in Advanced Billing. If a Customer doesn't have a phone number on file, Advanced Billing doesn't send them a text message.

## Add SMS to a dunning step

After you've connected Twilio, go to **Config** > **Retries & Dunning** to add SMS messages to your Dunning Schedule.

![SMS dunning step editor with the message body](https://docs.maxio.com/content-images/billing/subscriptions/dunning/set-up-schedules/set-up-twilio-sms-dunning/43248408081293_im_EditDunningSchedule_Twillio_SMS.png)

*Send SMS action, at the bottom of a step's Actions list*

When editing or adding a step, check **Send SMS** at the bottom of the editor. This shows a text box for the message body.

The SMS message body also supports Liquid fields. See <a href="https://docs.maxio.com/configuration/advanced-billing/email-settings/liquid-examples" target="_blank" rel="noopener noreferrer">Customize Emails with Liquid Examples</a> for more.

Include "STOP" and "HELP" text in each of your dunning messages, and keep your text messages short (160 characters is recommended).

Customers who have provided a cell phone number receive SMS messages on all of the configured dunning steps.

![Phone showing a received dunning SMS, annotated to note that the trial-account prefix is absent on a full account](https://docs.maxio.com/content-images/billing/subscriptions/dunning/set-up-schedules/set-up-twilio-sms-dunning/24287162411917_sms_message.png)

*Preview on your phone*
