- SaaS with a card on file that you charge at the end of each cycle
- Usage-based products billed monthly in arrears
- Customers you trust to pay after consumption rather than pre-funding an account
Postpaid is the default
billing_mode for every plan. You don’t have to set anything — it’s what you get when you omit billing_mode. Payout plans always use the postpaid flow.How it works
Everything in this flow runs automatically once a subscription’s period ends — you don’t trigger any of it by hand.Setting up a postpaid plan
Because postpaid is the default, you can simply omitbilling_mode. It’s shown explicitly below for clarity:
billing_period (daily, weekly, monthly, quarterly, annually) and every pricing model. See Pricing Models for the full set.
The billing cycle at period end
When a postpaid period closes, Monigo runs these steps automatically:- Aggregates usage — all events ingested during the period are rolled up per metric.
- Calculates the invoice total — each price rule is applied to its metric’s aggregated value; VAT is added if configured.
- Generates a draft invoice — one line item per metric/price pair.
- Finalizes the invoice — amounts are locked, status moves to
finalized, andinvoice.finalizedfires. - Attempts collection — Monigo charges the customer through your connected payment provider.
- Advances the period — the subscription moves to its next billing period.
The happy path: payment succeeds
When collection succeeds, the invoice moves topaid, paid_at is stamped, and an invoice.paid webhook fires.
The resulting invoice will have:
How Monigo collects, in order:
- Wallet — if the customer has a wallet with enough balance, it’s debited first.
- Saved card — otherwise the default card on file (captured from prior successful charges) is charged.
- Payment link — if there’s no chargeable card, Monigo emails the customer a hosted payment link to settle the invoice.
A card is added to the customer’s file automatically the first time they pay through a provider — there’s no separate “save card” step. Subsequent invoices can then be charged without customer interaction.
Handling failed payments
If collection fails (insufficient funds, expired card, provider decline), the invoice staysfinalized and a payment.failed webhook fires. Monigo then begins dunning — it automatically retries collection on a fixed schedule:
payment.failed
paid and invoice.paid fires — the dunning sequence ends there.
When dunning is exhausted
If all three retries fail, Monigo suspends the subscription and firessubscription.suspended:
subscription.suspended
Webhook events
Register a webhook endpoint in the Webhooks guide to receive these events and verify their signatures.
Customer portal
In the customer portal, postpaid subscriptions show the customer their invoices (draft, finalized, paid, void), the estimated total for the current open period, and their saved payment methods. When an invoice is unpaid, the portal surfaces a Pay now action backed by your payment provider — no code required on your side.Comparing the billing modes
Related
- Billing Cycle — how periods work and when billing runs
- Invoice Lifecycle — draft → finalized → paid → void
- Subscription Lifecycle — pause, resume, suspend, and cancel
- Prepaid Billing — wallet debited at period end
- Real-Time Billing — wallet debited continuously as usage accrues
- Webhooks — receiving billing events

