#ambi_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300932806217830514
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Do you have an example Subscription ID or the ID of the Customer who experienced this behavior?
Yes, sending now
Here is customer cus_R4jCuDZjGi7RAU who experienced this, you can see he has free trial, with discounted next subscription invoice waiting payment, which was voided, and the subscription was canceled. and then the next invoice is the subscription with the full price, because he could not use the code
this is the screenshot he sent
here is the coupon in question: szjb7Xyt
Apologies btw i used wrong error here:
It was:
This code is invalid
And not
An active promotion code with code: already exists.
Okay, I see their first Subscription was created with a 7 day trial period: https://dashboard.stripe.com/logs/req_gIzQPdrquXIINi
Yep, indeed
The Checkout Session was created with allow_promotion_codes: true and it looks like the customer used the "ANT" promo code when checking out. The first non-zero invoice (when the trial ended on 10/29) had this 25% off coupon applied, so the first invoice was for $15 (instead of $20)
Indeed, agreed
This is expected behavior in this case. Since the promo code was already applied to an Invoice for this customer, the promo code can't be used for another Invoice, even though the earlier Invoice was voided
:/
is there any way to get around it? if we turn off first time order only we are open to codes being reused (abused ๐ )
is there some way to remove it from an invoice when it is marked as voided?
trying to think of some way but no ideas coming to mind
You can delete a discount from a Subscription but I don't think this will resolve the issue of having an invoice already finalized with the one-time discount: https://docs.stripe.com/billing/subscriptions/coupons#update-a-subscription