Stripe Billing
Preview a Stripe Billing seat change, reuse the calculation timestamp and reconcile the invoice lines.
- Preview
- Calculate the remaining-period lines with a fixed timestamp.
- Update
- Reuse the timestamp and set the item to 15 seats.
- Invoice
- Check the $50 example adjustment and the payment outcome.
A customer moves from 10 to 15 seats halfway through a paid 30-day billing period. At $20 per seat per month, the simple pre-tax expectation is $50 of additional charges for the 15 days left. Use Stripe’s invoice preview to confirm the actual proration before updating the subscription.
Preview the item change at a fixed time
In a Stripe test environment, identify the existing subscription item and its current period. Use Create Preview Invoice with the proposed item quantity and subscription_details.proration_date. Keep the effective timestamp and pass it as proration_date on the subscription update. Compare the preview line items marked as prorations for your API version. Regular renewal charges and pending adjustments can also appear on the preview, so look at the relevant lines before comparing the total.
Agree on the invoice timing separately. create_prorations creates proration items when applicable, while always_invoice invoices the adjustment immediately. Use the behavior that matches the signed policy. Test what happens when payment is required and fails before deciding when the application grants new seats.
Compare preview, update and invoice
| Stage | Expected result | What to keep |
|---|---|---|
| Preview | With no other adjustments, proration lines net to $50 in the example. | Effective timestamp, item ID, quantity and previewed line amounts. |
| Update | The same subscription item has 15 seats. The proration uses the preview timestamp. | Subscription ID and update result. |
| Billing outcome | The posted or pending adjustment matches the approved invoice policy. | Invoice line amounts and payment state. Check tax or credits separately. |
Repeat the exercise on an unpaid invoice or a changed billing anchor if your customer policy allows those cases. Use the quote-to-cash guide to compare the accepted terms with what eventually posts.