Overview
Dunning is the process of systematically reminding customers to pay overdue invoices. PayBridgeNP’s dunning engine lets you define retry intervals and a final action (cancel, pause, or write off) so your cash collection happens automatically without manual intervention.How it works
- An invoice is issued and becomes overdue (past its
due_atdate without being paid). - If a dunning policy is assigned to the subscription (or the merchant has a default policy), the dunning cycle starts.
- At each interval, a reminder email is sent and a
invoice.dunning_attemptwebhook fires. - When all retries are exhausted, the configured
finalActionis applied and aninvoice.dunning_exhaustedwebhook fires. - If the customer pays at any point during the cycle, the cycle stops and an
invoice.paidwebhook fires.
Creating a dunning policy
Retry intervals
retryIntervalsDays is an array of days since the invoice went overdue at which each reminder is sent.
Final actions
Assigning a policy to a subscription
Leave the default policy for most cases. Override per-subscription when needed:Checking dunning status on an invoice
Manually retrying or stopping
Webhooks
Co-existence with plan overdueAction
Each billing plan has anoverdueAction setting (keep_active, mark_past_due, pause, cancel). Dunning and overdueAction are complementary:
- If a subscription has a dunning policy, the policy governs collection.
- Recommendation: set the plan’s
overdueActiontomark_past_duewhen using dunning, so the subscription remains accessible while reminders are in flight.