Product

Billing

Products, plans, prices, subscriptions, invoices, automated dunning, customer notifications, and finance reporting readiness as paid modules for recurring revenue businesses.

Billing Object Model

Core objects that power subscription billing and invoicing.

Product

The service or goods you sell (e.g., "Pro Plan")

Plan

Customer-facing package with access rules, billing cadence, and invoice behavior

Price

Amount and billing interval (e.g., NPR 2,500/month)

Subscription

Recurring billing relationship with a customer

Invoice

Bill sent to customer for payment

Invoice Item

Line item on an invoice

Payment

Verified provider payment state for an invoice

Subscription Lifecycle

From signup to renewal, managed billing handles the complete customer lifecycle.

Subscription created

Customer subscribes to a plan

Trial period (optional)

14-day free trial

First invoice generated

Invoice created at trial end

Payment attempted

Automatic payment via saved method

Subscription active

Access granted to customer

Next billing cycle

Invoice generated, payment attempted

Finance Reporting

MRR

NPR 245,000

Active Subs

124

Export billing data for accounting systems. Revenue recognition ready.

Automated Dunning

Automatic retry schedule for failed invoice payments.

1
ImmediatelyFirst payment attempt when invoice is due
2
+3 daysSecond attempt after initial failure
3
+5 daysThird attempt with customer notification
4
+7 daysFinal attempt before subscription cancellation

Subscriptions

Example subscription records with various statuses.

Subscription IDCustomerPlanStatusMRRNext Bill
sub_abc123CUS-8821Pro MonthlyactiveNPR 2,500Jun 15, 2024
sub_def456CUS-9912Team AnnualactiveNPR 8,000Dec 1, 2024
sub_ghi789CUS-7743Pro MonthlytrialingNPR 2,500Jun 20, 2024
sub_jkl012CUS-6654Starterpast dueNPR 1,000Overdue
sub_mno345CUS-5565Pro Monthlycanceled
Statuses:activetrialingpast_duecanceledunpaid

Invoices

Example invoice records with payment status tracking.

Invoice IDCustomerAmountStatusDue DatePaid Date
inv_2024_0042CUS-8821NPR 2,500invoice paidJun 1, 2024Jun 1, 2024
inv_2024_0041CUS-9912NPR 8,000invoice openJun 15, 2024
inv_2024_0040CUS-6654NPR 1,000past dueMay 28, 2024
inv_2024_0039CUS-7743NPR 2,500invoice paidMay 20, 2024May 19, 2024
Statuses:invoice_openinvoice_paidpast_dueretry_scheduled

Billing Webhooks

Real-time notifications for billing lifecycle events.

subscription.created

New subscription started

subscription.updated

Subscription plan changed

subscription.canceled

Subscription canceled

invoice.created

New invoice generated

invoice.paid

Invoice payment successful

invoice.payment_failed

Invoice payment failed

Start billing customers

Add paid billing modules for products, prices, subscriptions, invoices, retries, and customer notifications.