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.
Seat changes
A seat change is prorated the same way. Bachs compares the price for the old seat count with the price for the new one.- More seats is a charge for the extra seats, for the rest of the period.
invoice_nowcharges it now.next_cycleadds it to the next renewal. - Fewer seats is always a credit, like a downgrade.
How the amount is calculated
For the portion of the period remaining at the moment of the change:- For a seat change,
old_amountandnew_amountare the price for the old and new seat counts. - 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 or seat count and pass the proration behavior you want.
Payment recovery
What happens when an immediate proration charge fails.

