#SafanM-quotes
1 messages ยท Page 1 of 1 (latest)
I don't believe there's a way to use a promotion code with quotes right now, but I can flag that to the team as a future improvement
we use Quotes to draft initial data from our Shopping Cart page and would like to apply the discount, get the total price and later convert it to subscription as it is in the quotes
๐ I'll be sure to let them know
do you know if there's a api that can validate the promo_code rules and get's us the discount price?
No, there isn't an API like this right now
so we need to manually do that in our quotes page, if we want to use the promo code and all its rule?
also can you link me to the flag request to add these feature?
There isn't anything external I can link you to - it's just something I'm flagging internally
How complicated are the promotion codes you're using currently?
๐
not that complicated, we might end up using only 1 or 2 rules: like customer specific and limited
Because you could look into workarounds like the upcoming invoices API + using the associated coupon to give your customers a preview, and then you could create the Subscription with the actual promotion code
using the associated coupon to give your customers a preview ==> only if it's allowed for that customer?
I mean if the customer falls in our promo_code criteria?
Correct - that's why I asked how complicated your promotion codes were. If the restrictions are fairly limited you could do that checking on your end
Exactly what i was going to say ๐ stepping in for karbi, who needs to step away
( the coupon alone doesn't know about those rules)
So while there is no API to do what you ask regarding the rules you can get a preview of the price/subscription other ways, if that helps (it might not for your use case)
that's what we plan now, to calculate manually on the quotes preview and later apply to the subscription
can get a preview of the price/subscription other ways ???
applies to only subscription?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This endpoint can be used to preview the first invoice for a subscription that doesn't yet exist
Thank You