#s0viet - coupon update
1 messages · Page 1 of 1 (latest)
When you make the subscription update with a coupon, the discount should be prorated but yes will not show until the next invoice. You can force an invoice now with proration_behavior=always_invoice
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
And optionally you can set the proration_date to back date the change.
What should be proration_date - just the creation of subscription?
You can only back date to the start of the current period IIRC, but yea if its during the first billing cycle that works
the default is "now"
Yup because generally the subscription while applying the coupon is not started
okay, thanks!
you can also send those parameters to the upcoming invoice endpoint to see how they'll behave before updating the sub
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, when I tried making always_invoice, upcoming invoice is not returning me the costs...
Is it because they are somehow calculated differently?
can you be more precise? which "costs"?
we were fetching total amount ,tax amount etc from upcoming invoice
Can you share the request ID so i can look at the parameters?
Sorry, I am out now - I am going to debug it and if there would be a trouble start new thread eventually... maybe just some configuration step I am missing. Thanks for help anyway
OK sounds good, good luck with it!