#mochihealth-coupon-restriction
1 messages · Page 1 of 1 (latest)
pi_3Mjrg9BPM36OC3gX0OCmkcze
Okay, trying to grasp what you're asking. Can I ask you to be a bit more explicit and details. Like what are you doing, which exact coupon, which customer, what's your code, what do you see?
I'm looking into it but you also have like multiple subscriptions, separate invoices and you just gave 2 PaymentIntent ids (where Coupon doesn't matter)
it's the CoslAIzj coupon that's the issue?
im trying to test out the fact that a coupon can only be redeemed once per customer
yea
and I was able to successfully redeem it twice with the same customer
you never configured this to be used only once
I configure the promotion
https://dashboard.stripe.com/test/logs/req_zSPlF1ohJcASjT
that's the Coupon's creation request in your account
sure but you set the Coupon id not the PromotionCode
oh
so the PromotionCode is irrelevant in this case (otherwise what if that Coupon had 1000 PromotionCodes with different configs)?
oh gotcha that makes a lot of sense
but Im trying to preview an invoice and theres only the coupon parameter not a promotion code one
correct, sadly a known limitation right now 😦
ok interesting
like the use case that im trying is to test a promotion code before i create the actual subscription
what can I do in that case to know whether its valid or not
Unfortunately there's nothing you can do right now to test I'm sorry. You'll have to look at the PromotionCode directly and its Coupon and make the calculation(s) yourself