HomeProduct DocsAPI ReferenceChangelog
RecurlyAPI GuidesRecurly.jsWebhooksAPI ReferenceSupportBook demo
Product Docs

Dunning campaigns

Configure Recurly's dunning campaigns to recover failed payments — including email schedules, dunning cycles, multiple campaigns, priority logic, and best practices for maximizing recovery rates.

Dunning Management controls how Recurly handles failed payments — what emails are sent, when retries occur, and what happens if a subscriber never pays. Every site has a default dunning campaign, and merchants on Professional and Elite plans can create up to 50 targeted campaigns for different customer segments or plans.
Dunning Management is available on all plans. Multiple dunning campaigns require Professional or Elite — contact Recurly Sales to upgrade

Prerequisites

  • An active Recurly account.
  • Configuration user access.

Limitations

  • Dunning settings are versioned — changes to a campaign won't affect invoices already in dunning.
  • Maximum of 50 dunning campaigns for eligible merchants.

Definition

Dunning Management refers to the strategies and communications used to prompt subscribers for payment after an initial failure, and the duration allowed for recovery attempts. Dunning activates when an automatic invoice (credit card, ACH, direct debit) fails its initial payment attempt, when a manual invoice (check, wire) exceeds its net terms, and when a trial subscription attempts to convert to paid but the payment fails.

Key benefits

Customized collection strategies Create targeted dunning campaigns for specific customer cohorts and track which customers received which campaign and email via the Account Activities export.
Enhanced subscriber communication Send targeted emails at each dunning step to inform subscribers of payment failures and prompt action.
Flexible dunning cycles Choose from automatic, manual, and post-trial dunning cycles, each with its own emails and schedules.
Improved revenue recovery Longer dunning windows consistently produce higher payment recovery rates.
Analytical insights Track dunning versions and measure their effectiveness over time using Dunning Campaign analytics.

Dunning campaigns

Recurly's Dunning Management lets you create multiple collection strategies for different customer groups. Every account has a default dunning campaign. Merchants with access can create additional campaigns targeted at specific plans or accounts.

Navigate to Configuration → Dunning Management to access and manage your campaigns.

Default dunning campaign

Every site has one default dunning campaign, used for all invoices that don't have a separate campaign assigned at the account or plan level. The default campaign represents your standard collection process.

For sites with multiple dunning campaigns, you can change the default using the Campaign Actions button on the campaign details page. All plans and accounts currently set to the default will automatically switch to the new default.

Dunning configuration

Modify the default dunning campaign

1

Select the campaign

From the Dunning Management page, select the campaign you want to edit.

2

Open Campaign Actions

Click the Campaign Actions dropdown and select Edit Campaign.

3

Make your changes and save

Update the settings as needed, then click Save.

Campaign details

The Campaign Name is visible when selecting dunning campaigns on Plan and Account pages in the Admin Console. The Campaign Code may only contain numbers, lowercase letters, dashes, pluses, and underscores.

Dunning cycles

Dunning cycles are categorized by invoice collection method:

  • Payment Declined — for automatic invoices
  • Invoice Past Due — for manual invoices
  • Post-Trial Payment Declined — for invoices (automatic or manual) that fail after a free trial

Each dunning campaign can include all three cycle types, each with distinct email templates and schedules.

Automatic invoice dunning cycle

For automatic invoice failures, Recurly sends a Payment Declined email and retries on the schedule you configure. You can add, remove, or modify steps, and link each step to a specific email template.

Manual invoice dunning cycle

Manual invoice dunning works the same as automatic, but uses the Invoice Past Due email templates.

Users with authority to modify the Customer section can reopen failed manual invoices. If a failed manual invoice is reopened, dunning will not resume — no dunning emails are sent and the linked subscription is unaffected. A reopened manual invoice remains in an Open state until manually closed and marked paid or failed.

Trial dunning cycle

For invoices that remain unpaid after converting from a free trial to paid, Recurly can send a Post-Trial Payment Declined email. This cycle can be limited to automatic invoices or extended to both automatic and manual.

Note The trial dunning cycle only activates for subscriptions with a free trial applied via the plan or a coupon. Plans that start at $0 and increase after the first billing cycle do not activate the trial dunning cycle.

End of dunning cycle

For each dunning cycle, you can set what happens to the invoice and subscription if the customer doesn't pay by the end of the cycle. You can also customize the final email sent when a subscription expires.

By default, Recurly marks an invoice as failed at the end of the cycle if unpaid. A failed invoice is written off as bad debt, removing the balance from the customer's account. You can configure dunning to never auto-fail the invoice, leaving it overdue indefinitely.

If invoices remain overdue after dunning, two actions will send all overdue invoices on an account back into collections:

  • The customer updates their billing details.
  • A new subscription is added to the account (resubscribe).
Note If Account Updater is active, Recurly continuously runs it on accounts with overdue invoices and attempts collection indefinitely.

Stop dunning

To pause dunning for a subscriber who needs a few extra days, open the overdue invoice and click Stop Dunning in Invoice Actions. The invoice remains in Past Due state, but retry attempts stop, dunning emails stop, and the End of Dunning Cycle action won't execute. Account Updater continues to run if active.

Stop collection & mark paid

To end the entire collection process for a past-due invoice, open the invoice and click either Stop Collection (marks the invoice failed) or Mark Paid (used when payment was received outside Recurly). Both options close the invoice, stop retry attempts, stop dunning emails, and bypass End of Dunning Cycle actions.

Note Stopping collection on an invoice does not automatically cancel the related subscription. Cancel the subscription separately to prevent it from renewing. Subscriptions are only automatically canceled when an invoice fails dunning — and only if your dunning settings are configured to expire subscriptions at the end of the dunning cycle.

Email template configuration

Dunning email templates are managed under Configuration → Email Templates. All dunning-related templates are at the bottom of the Email Templates page. Access requires the Configuration user role.

For full email template editing details, see the email templates documentation.

Create a new dunning email template

Navigate to the Dunning Management section of Email Templates. Template types available:

  • Payment Declined Templates — for automatic invoices
  • Invoice Past Due Templates — for manual invoices
  • Subscription Expired for Non-Payment Templates — for subscriptions unpaid at the end of any dunning cycle
  • Payment Declined Due to 3DS2 — for 3DS2-related declines

Click New Email Template, select a base template to start from, and give the template a name. The name is referenced when linking the template to dunning steps.

Each dunning email shares the same aesthetic as other Recurly email templates but can have distinct content at each step. Escalating urgency through messaging at each step is an effective way to prompt subscriber action.

After creating a template, link it to dunning steps on the Dunning Management page. Once linked, the association is noted on the Email Templates page under each dunning email.

Delete a dunning email template

Before deleting a template, confirm it isn't linked to any dunning step. Navigate to Dunning Management, remove the template from any campaign steps, then return to Email Templates. If the template shows "Not being sent by any current Dunning Campaigns," it can be deleted. The base Payment Declined, Invoice Past Due, Post-Trial Payment Declined, and Subscription Expired for Non-Payment templates cannot be deleted.

Updating billing info

The default Payment Declined email includes a direct link to the customer's hosted account management page for billing updates. You can add this link to your own site using the hosted_login_token parameter from the Accounts API, or modify the template to link to your own billing update form.

When billing details are updated, Recurly retries collection on all overdue invoices for that account. Automated updates via Account Updater also trigger a collection attempt.

Multiple dunning campaigns

Plan requirement Multiple dunning campaigns are not available on Starter or Pro plans. Contact Recurly Sales to upgrade.

You can create up to 50 dunning campaigns for different scenarios. Your existing configuration becomes the Default campaign. On Starter plans, all overdue invoices follow the single default campaign.

Create a new dunning campaign

1

Start a new campaign

From the Dunning Management page, click Create Campaign.

2

Fill in campaign details

Enter a name and reference code in the Campaign Details section.

3

Assign to plans (optional)

Configure Plan Selection to assign this campaign to specific subscription plans.

4

Set up dunning cycles

Configure collection methods, email schedules, and end-of-cycle behavior.

5

Save

Click Save to activate the campaign.

Assign a campaign to a plan or account

1

Open the plan or account

Navigate to the desired Plan or Account page in the Recurly Admin Console.

2

Select a dunning campaign

Locate the Dunning Campaign dropdown and select the desired campaign.

3

Save

Save the changes. You can also assign campaigns in bulk via the Recurly API bulk update endpoint.

Edit dunning campaigns

Changes to a campaign — or reassigning a different campaign to a plan or account — only affect new invoices entering dunning. Invoices already in dunning continue using the settings that were active when they became overdue.

Disable dunning campaigns

Redundant campaigns can be deactivated and won't count toward your 50-campaign limit. The default campaign cannot be deactivated — set another campaign as default first if needed.

When a campaign is deactivated, it no longer appears in the dropdown on Plan and Account pages, and any plans or accounts using it will revert to the default campaign.

Campaign priority

When multiple campaigns could apply, Recurly uses this priority order: Account → Plan → Default.

Additional priority rules:

  • If no additional campaigns exist, the default applies to all invoices.
  • If a campaign is assigned to a plan, it applies to all overdue invoices for that plan's subscribers.
  • If a campaign is assigned to an account, it applies to all past-due invoices for that account.
  • For bundled subscriptions on a single invoice: if no account-level campaign applies and multiple subscriptions use different campaigns, the campaign of the oldest subscription is used.
  • For Account Hierarchy: if the billed account (parent or child) has a campaign assigned, that campaign is used. Dunning settings on the unbilled account are ignored.

Dunning best practices

See tips for improving your dunning emails.

  • Extended dunning windows produce better recovery rates.
  • For monthly subscriptions, limit dunning to 27 days to avoid billing overlap in February and to maximize Intelligent Retry attempts.
  • Direct debit payments can take 3+ days for a response — factor this into dunning window length.
  • For high-value subscribers, most merchants prefer to keep the subscription active and invoice open rather than auto-expiring.
  • Use different campaign messages and durations for different plan types. For example: 27 days for monthly plans, up to 60 days for quarterly, semi-annual, and annual plans.

Review settings history

Every invoice follows the dunning configuration that was active when it entered dunning. To review past configurations, click Settings History on any dunning campaign.

For analytics on each dunning version, click View Analytics on the Settings History page. Analytics role required. Analytics are currently available for automatic payment invoices only. See the dunning effectiveness report documentation for details.

Test dunning behavior

To accelerate the dunning process in sandbox mode for testing webhooks and email delivery:

1

Register with a success card

Create an account using the test card 4111-1111-1111-1111.

2

Update to a "fail but save" card

Update the account's billing details to 4000-0000-0000-0341. The card will be stored despite appearing to fail — this is expected.

3

Accelerate the renewal

Click Change next to the Current Period on the subscription page.

4

Set the renewal date

Set the next renewal date to 1 hour ahead, then confirm.

5

Wait for dunning to trigger

Within the hour, the subscription will renew and dunning will begin.

Dunning notifications via webhooks

Use webhooks to synchronize your service with collection activity in Recurly. See the Webhooks documentation for full details.

  • new_dunning_event — Sent when invoices enter and remain in dunning. Use this to send custom emails or reach customers through other channels (SMS, in-app notifications, etc.).
  • failed_payment — Sent after each failed payment. Use this to flag a user as overdue in your system.
  • successful_payment — Sent after a successful payment. Use this to restore a previously overdue user to good standing.
  • subscription_expired — Sent when Recurly expires a subscription due to non-payment or cancellation. Act on this immediately to terminate access in your system.

Transitioning from sandbox to production

Multiple dunning campaigns can be created and tested in sandbox or development mode, but are only accessible in production on Professional or Elite plans.

When transitioning a sandbox site to production under a Starter plan, all non-default dunning campaigns are deactivated. These campaigns are locked from editing and cannot be reactivated. Any plans assigned to a non-default campaign during testing revert to the default dunning campaign.

Transactions that won't retry

If your first dunning email for failed automatic invoices is scheduled after the first payment attempt, Recurly handles the following non-retryable transactions separately:

  • Hard decline transactions
  • Transactions failing due to incorrect billing details

Since these won't succeed without a billing info update, Recurly skips the retry schedule and waits for customer action.

Plan selection

After creating multiple dunning campaigns, you can assign specific campaigns to subscription plans in the plan details section. If an account has its own dunning campaign assigned, that takes priority over the plan's campaign.


Did this page help you?