Skip to main content

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

  1. An invoice is issued and becomes overdue (past its due_at date without being paid).
  2. If a dunning policy is assigned to the subscription (or the merchant has a default policy), the dunning cycle starts.
  3. At each interval, a reminder email is sent and a invoice.dunning_attempt webhook fires.
  4. When all retries are exhausted, the configured finalAction is applied and an invoice.dunning_exhausted webhook fires.
  5. If the customer pays at any point during the cycle, the cycle stops and an invoice.paid webhook 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 an overdueAction 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 overdueAction to mark_past_due when using dunning, so the subscription remains accessible while reminders are in flight.

Dashboard

Manage dunning policies at Billing → Dunning in the dashboard. You can create multiple policies, set a default, and deactivate old ones.