Failed rebills and retries

Retry policies, final actions and the retry matrix when a rebill fails.

When a rebill fails, the subscription becomes past_due and the platform retries the payment on the same card, following a retry policy. A successful retry puts the subscription back to active.

Retry policy

A retry policy has a schedule and a final action. Each offer has one. You manage retry policies in the Console, under Subscriptions › Retry policies.

Schedule. A list of delays in minutes, hours, days or weeks. Each delay counts from the previous attempt. Example: 1 day, then 3 days, then 1 week gives retries on day 1, day 4 and day 11 after the failed rebill. An empty schedule means no retry: the final action applies at the first failure.

Final action. What happens when the last retry fails:

Final actionResult
Cancel the subscriptionThe subscription becomes cancelled, with cancelled_by: dunning_policy and cancellation_reason: payment_failure.
Pause the subscriptionThe subscription becomes paused with no end date, until you resume it or reactivate its subscriber.
Give up the unpaid rebill and keep billingThe subscription goes back to active and the next rebill is taken on its normal date.

In every case the unpaid rebill is counted: is_overdue becomes true and overdue_occurrences_count goes up by one. The unpaid rebill can still be paid later on the hosted payment page. See Update the payment method.

Give up and keep billing returns the subscription to active

With this final action, the subscription does not stay past_due: it goes back to active, and the unpaid rebill is counted in overdue_occurrences_count.

Retry matrix

The retry matrix sets the retry behaviour from the reason of the failure, across all your offers. At the first failure of a rebill, the platform checks the matrix and does one of three things:

OutcomeWhat happens
Follow the policy set in the matrixThe retries follow that policy instead of the policy of the offer.
Do not retryThe rebill is given up at once. The final action of the offer is not applied: the subscription keeps its status and only the overdue counters change. Use it for failures a retry cannot fix.
Follow the policy of the offerWhen the matrix says so, or when no rule matches.

The choice is made once, at the first failure. The retries then follow it to the end.

Related pages