#vart-checkout-coupon

1 messages · Page 1 of 1 (latest)

sullen knotBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dusk zephyr
misty void
#

Sure: req_iZM8rWTmII7DiP

#

Its in dev so test mode

dusk zephyr
#

Taking a look here

#

Can you share the coupon id as well?

misty void
#

Sure sorry just saw the message

#

This is the coupon id: req_OHb9cykBNUou1S
@dusk zephyr

dusk zephyr
#

Can you create a new Checkout Session so I can try to replicate this on my end?

misty void
#

Sure, creating one now

#

req_M0Ki2JMbE0xnE7

dusk zephyr
#

Taking a look

misty void
#

The session expires in 3min though so not sure you will be able to access in time

dusk zephyr
misty void
#

Ok thanks

sullen knotBOT
zealous crystal
#

👋 I don't really understand what you are trying to do. Can you explain exactly the problem? Like you have a Session for $10 and a PromotionCode for $50? If so that'd be a full discount and $0 to pay right?

#

vart-checkout-coupon

misty void
#

Yes, I am fine with that. But it just says invalid promo code when I try to use that

#

It looks like the order proce needs to be more than the promo code amount

zealous crystal
misty void
#

Yes but for that I have to make a 100% discount code. But that means they can use it for orders of any value.

#

I want to restrict it to 20$

zealous crystal
#

no sorry you didn't read what I linked, or you skimmed

#

The example you shared is a 100% off discount because the PromotionCode is for a bigger discount than the total right? So that won't work unless you do what is at the top of that docs page that you missed (everyone does, so not just you)

#

To process no-cost orders using the Checkout API, make sure you’re on API version 2023-08-16 or later.

#

you are on a 3 years old API version before that, so any attempt to use a code that will lower the amount to $0 will fail

misty void
#

Got it. So it is only failing because of that? If I update to the latest API the amount going to 0$ will work out of the box?

zealous crystal
#

yes

misty void
#

Ok thank you.

#

Is there a way for me to force the final amount to go down to $0.50?

#

To avoid upgrading the API as I am worried there might be a breaking change

zealous crystal
#

no that is impossible

#

and there is not one breaking change, there are dozens of breaking changes