#waqas ahmad - coupons
1 messages · Page 1 of 1 (latest)
Hi there. Can you share the id of the coupon and the id of the subscriptions where it was used (each time)?
Coupon Id:test 1 & subscription id: price_1KCetbB0xtofIlR8YrdaxWxQ
👋 stepping in for codename_duchess as they need to step away
taking a look!
I'm seeing the coupon show it has been redeemed 6/10 times: https://dashboard.stripe.com/test/coupons/test 1
To clarify, max_redemptions is not per-customer
Can you indicate which Subscription used it 5 times?
max_redemptions is total number of coupons used but sometime if user subscribe again with same coupon count doesn’t increase. Is there any condition when this count increase??
It is total amount of times it is redeemed
In this case, for one-time use coupons, that means it is actually used on an invoice
okay. On update subscription stripe didn’t return the amount it detect from customer either coupons apply or not. How we know that how much amount detect??
You mean how do you know how many remaining redemptions of the coupon there are?
No no...I want to know how much amount stripe charge when user update subscription?
You use the upcoming invoice endpoint: https://stripe.com/docs/api/invoices/upcoming
But this return upcoming invoice maybe user update subscription 2-3 times then how we know which subscription is latest??
Actually we want to show amount to user when they update subscription.
I don't follow. You call that API any time you want to know the amount of the upcoming invoice
So in your case it sounds like you would call it each time the customer updates the Sub
So you can correctly display the upcoming amount
OKAY...
Is there any way can we restrict user to use coupon only one time using stripe?
You would use a promotion code for that: https://stripe.com/docs/api/promotion_codes/create
I try it but In promotion code max_redemptions also means number of time its used. I didn’t find any parameter to specify that it only use one time for every customer.
You would set it to one time for max redemption and give a different promo code to each customer