#petersaverman
1 messages · Page 1 of 1 (latest)
Hi there!
Hi!
Not very fmiliar with quotes, I'll have a look. But can you clarify why you need to use Quotes? This is a very rarely used feature.
To calculate the price of an upcoming subscription. Apparently you can do it for current subscriptions to calculate what the next invoice is going to be, but not for someone who hasn't already got one. Again, I might be mistaking.
This is the parameter: https://stripe.com/docs/api/quotes/create?lang=node#create_quote-discounts
And here's how to create a coupon: https://stripe.com/docs/api/coupons/create?lang=node
pparently you can do it for current subscriptions to calculate what the next invoice is going to be, but not for someone who hasn't already got one. Again, I might be mistaking.
I'm pretty sure you can use the upcoming invoice even if you don't have a Subscripton created
Here: https://stripe.com/docs/api/invoices/upcoming
You can see then subscription parameter is optional.
Oh, so I just leave it out?
Yes if you don't have an existing subscription, then don't use thesubscriptionparameter at all.
I might have gotten that to work. Just let me find my code to try it out, ok?
Sure!
It worked! Thank you!