proration_behavior on the Update Subscription endpoint.
Proration behaviors
Always send
proration_behavior explicitly so the outcome is predictable. If you omit it, Bachs settles the change immediately (invoice_now).Upgrades and downgrades
Proration cuts both ways, and Bachs handles each side differently. Upgrade (net charge). Moving to a more expensive plan owes money for the rest of the period. Withinvoice_now this is charged to the card immediately; with next_cycle it’s added to the next renewal.
Downgrade (net credit). Moving to a cheaper plan means the customer overpaid for the rest of the period. Bachs always turns that into customer credit, regardless of the proration_behavior you chose, rather than refunding to the card.
Customer credit
A downgrade credit is added to the customer’s credit balance, a running per-customer, per-currency balance held on your account. It isn’t paid back to the card. Instead, Bachs draws it down automatically against the customer’s future invoices before charging their card:- On the next invoice, available credit is applied first.
- If credit fully covers an invoice, that invoice is marked paid and the card is never charged.
- Any leftover credit carries forward to the invoice after that.
How the amount is calculated
For the portion of the period remaining at the moment of the change:- A positive
netis a charge (upgrade); a negativenetis a credit (downgrade). fraction_of_period_remainingis the exact share of the current billing period still ahead, between0and1.- Amounts are rounded to two decimal places.
Related
Managing subscriptions
Change a subscription’s plan and pass the proration behavior you want.
Payment recovery
What happens when an immediate proration charge fails.
Seat-based (per-unit) pricing and its proration are coming soon. This page covers plan changes; seats will be documented when they ship.

