#nn87-subs
1 messages · Page 1 of 1 (latest)
hello @rustic dock! you can take a look at this guide to find out more on how upgrades/downgrades are handled : https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
@fathom horizon I just edited the question. Can you please check it again
you can update the quantity using https://stripe.com/docs/api/subscriptions/update, and set proration_behavior=always_invoice which will calculate the proration and then immediately generate an invoice after making the switch.
One more question
In case of metered billing, the customer is required to add the card when subscribing and is billed at the end of the month. Right?
just so you're aware, if you're using metered billing, proration wouldn't be applied
yes, in case of metered billing, the customer is billed at the end of the month. It's up to your integration to ensure (or make it mandatory) that the customer adds the card when subscribing. A payment method is not mandatory when creating the subscription
So how to use proration in case of metered billing. In my case an organisation is billed on its number of users where a user can also leave before the end of month. I was thinking of using metered billing for this but it does not have proration as you say. Then how can I ensure that the organisation is not charged for the entire duration if an user leaves in middle of the month?
unfortunately, Stripe doesn't currently support proration for metered billing. You would have to implement your own logic to do so e.g.
- if the user adds/removes users, charge for the full month for the number of current users,
- implement your own logic to determine how much to prorate i.e. either refund to the card or add to the customer balance (https://stripe.com/docs/billing/customer/balance)
- you would then cancel the current subscription and start a new subscription with the new number of users