#ambi_unexpected

1 messages ยท Page 1 of 1 (latest)

wind spruceBOT
#

๐Ÿ‘‹ 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.

silent swift
#

Hi there

#

Do you have an example Subscription ID or the ID of the Customer who experienced this behavior?

split anvil
#

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.

silent swift
split anvil
#

Yep, indeed

silent swift
#

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)

split anvil
#

Indeed, agreed

silent swift
#

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

split anvil
#

:/

#

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

silent swift
split anvil
#

i can check it out.. thanks roadrunner

#

i got a different idea i think, but its complicated