#wendy
1 messages · Page 1 of 1 (latest)
Are you using Checkout?
Also subscriptions or one-time?
But yeah you should be able to
really, so i don't need to defined a fixed price on the coupon, i can have one coupon that let me set the price upon adding it to the invoice?
this will be any invoice or first invoice of a new subscription in our back end
or do we need to create new coupon with new price each time, i.e. we will end up seeing a LOT of coupons in stripe
which we don't want
Coupons don't need an association to a price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the create api of coupon needs $ or %, so we cannot reuse the same coupon, it means we can create each time but again a lot of coupon in stripe due to this as the amount can be anything
You can reuse a coupon unlimited times unless you specify this param https://stripe.com/docs/api/coupons/create#create_coupon-max_redemptions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh so the amount you're discounting will be different each time?
Why not discount a percent?
yes
it's just some loyalty $ that the customer earn over time
using it on next invoice
so could be $5 for one and $2.05 for another customer but like to reuse the same coupon in stripe
Well if the amount is highly variable like that you can't really avoid creating a bunch of different coupon codes
You could look into using negative invoice items instead: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It's another way to discount an invoice