What gets prorated
Proration applies only to charges that are billed in advance for a fixed-class price:
Metered and arrears charges are never prorated because their measurement window already bounds them: a change on the 16th simply means the old rate applies to usage before the 16th and the new rate after. Only an advance charge that has already been paid for the full period needs unwinding.
The calculation
Proration is day-based. The full-period amount is divided by the number of days in the full billing cycle to get a daily rate, which is multiplied by the days in the partial period. The result is rounded to two decimal places at the line-total level (not per unit), so multi-unit lines do not accumulate rounding error.Upgrade
200/month on day 15 of a 30-day cycle:Downgrade
100/month on day 20 of 30:Added product
A $50/month advance add-on added on day 10 of 30:Where it shows up
A mid-cycle change generates an invoice for the net difference at the effective date; the dashboard save dialog calls this out when you choose Mid-cycle. From the next period onward the new price bills at its full amount. Prorated lines carry their own date range on the invoice so the customer can see which days each covers.Preview the change first.
POST /subscriptions/{id}/changes/preview resolves the effective date and the item delta without writing anything; in the dashboard, the save dialog shows the same before you confirm.Avoiding proration
Proration is a consequence of timing, not a setting you switch off. To make a change with no mid-cycle adjustment, land it on a cycle boundary:- API: use
effective: "next_billing_period"(start of the next invoicing cycle) oreffective: "next_term_renewal"(contract end) onPOST /subscriptions/{id}/changes, or pick a date fromvalid_on_cycle_datesinGET /subscriptions/{id}/billing-dates. - Dashboard: when saving, choose From start of a billing cycle rather than Mid-cycle.
Proration on cancellation
Cancelling at the end of the current billing period needs no proration: the customer has paid for the period and keeps access until it ends. Cancelling immediately ends billing today; review the subscription’s invoices afterwards and issue a credit note if the customer is owed money for an unused advance charge. See Canceling Subscriptions.Next steps
Amendments
Make the change that triggers proration.
Versioning
Effective dates and the draft/published model.
Credit notes
Manual credits for anything proration does not cover.
How Alguna Works
Where invoices come from.