#Jairo
1 messages · Page 1 of 1 (latest)
Yup! You would just have a Coupon with Promo Codes. Each user gets their own Promo Code and can use it only once by setting max_redemptions to 1
Hi @quick gazelle , thanks for your reply
but we have to create one promocode for each user manually?
Nope! Those can be created programmatically: https://stripe.com/docs/api/promotion_codes/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We would like to use this behavior for a big marketing campaing, with undefined number of customers
And now our integration only supports coupons. When a user puts a coupon ID in our checkout, we call to GET /coupons/XXX to validate if is an existent an active coupon, and then we apply it on the subscription creation flow using the 'coupon' parameter
It means that actually our flow is not supporting promo codes without making changes in our integration, right?
Correct. You would need to adjust your integration to allow promo codes. The only alternative I can think of would require you to track usage of coupons across all your customers, which would mean even more changes to your integration
Ok, I understand
But is it an expected behavior from Stripe when I configure the coupon duration to "One time" but the customer can use it repeatedly when upgrading the subscription plan? Shouldn't it prevent the same customer from using that coupon multiple times? The documentation says that with this configuration it will be limited to once per customer or subscription
Or are we misreading the documentation?