#mochihealth-coupon-restriction

1 messages · Page 1 of 1 (latest)

crimson daggerBOT
slender steppe
#

mochihealth-coupon-restriction

#

you gave one pi_123. Where else was it used?

stray wharf
#

pi_3Mjrg9BPM36OC3gX0OCmkcze

slender steppe
#

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?

stray wharf
#

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

slender steppe
#

you never configured this to be used only once

stray wharf
#

I configure the promotion

slender steppe
#

sure but you set the Coupon id not the PromotionCode

stray wharf
#

oh

slender steppe
#

so the PromotionCode is irrelevant in this case (otherwise what if that Coupon had 1000 PromotionCodes with different configs)?

stray wharf
#

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

slender steppe
#

correct, sadly a known limitation right now 😦

stray wharf
#

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

slender steppe
#

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

stray wharf
#

gotcha

#

sad lol

#

thanks anyways