How proration works
Proration is calendar-day based:- Credit = (remaining days / total days in period) × current plan amount
- Debit = (remaining days / total days in period) × new plan amount
- Net = debit − credit
Preview before applying
Always preview the proration amounts before committing a change so you can show the customer what they’ll owe:Apply a plan change with proration
PassprorationBehavior: "create_prorations" to apply the change immediately:
Schedule for next billing cycle (default)
To keep the existing behavior - plan change applies at next renewal with no proration:Proration invoice
When a proration invoice is created it:- Has
status: "open"ifnetAmount > 0(customer owes money) - Is skipped (no invoice) if
netAmount ≤ 0 - Contains two line items:
proration_credit(negative) andproration_debit(positive) - Is due immediately - link the customer to the hosted invoice page to collect payment