#iamshubhamaratha
1 messages ยท Page 1 of 1 (latest)
You can use Update Subscription API to update the quantity of the price: https://stripe.com/docs/api/subscriptions/update#update_subscription-items
Once you create a subscription, it will return the subscription item ID (si_xxx) of the price. You can then update the quantity of this subscription item ID with the new quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank for the response
No problem! Happy to help ๐
I have just posted another query can you please help with that as well ๐
Can you please use the thread created for you here?
suppose the user has subscribed for 12 seats and payment for 12 seats has been completed but in the middle of the month he has required 5 more seats in that case what can we do if we update the subscription does stipe will charge the additional amount of 5 seats in the same day in which he has updated the seats or he will charge that additional amount in next month?
It will depend on the proration_behavior: https://stripe.com/docs/api/subscriptions/create#create_subscription-proration_behavior
If proration_behaviour: 'create_prorations', customer will be charged in the next cycle
If proration_behaviour: 'always_invoice', customer will be charged immediately
got it thanks
No problem! Happy to help ๐