#cynefin_30

1 messages · Page 1 of 1 (latest)

brazen hareBOT
#

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.

muted otter
#

hi! do you have more context on the exact API calls you're making and exact error messages?

warm totem
#

This is the exact error

#

and also while creating a new checkout session the response seems fine it gives back me a checkout link but when I am opening the checkout link it says this

muted otter
#

makes sense. As it says, there are limits to how many updates to a subscription you can make . It's in the region of hundreds an hour(I can't share the exact figures), so if you're hitting that, you need to change your overall design as that would be excessive.

muted otter
warm totem
#

This is the response

muted otter
#

I'd assume it's because your cancel_url (https://xxx) is nonsense/not a valid URL but I can look deeper

warm totem
muted otter
#

ok no the actual problem is "Coupon Vv6pGpCz is expired and cannot be applied."

muted otter
#

basically you passed a coupon and between the time you created the CheckoutSession in the API and the time you visited the link, the coupon was expired

warm totem
#

is it not showing that the coupon expires on Feb 10

muted otter
#

hmm

warm totem
#

As you can see in the Checkout session response
i Created the checkout session at 1706788709 which is Thursday, February 1, 2024 5:28:29 PM GMT+05:30

and expires at 1706875108 which is Friday, February 2, 2024 5:28:28 PM GMT+05:30

It should work right ?

muted otter
#

did you maybe create a different Coupon object with the same ID at some point in the past?

#

the Dashboard doesn't handle that very well so you can't see the old one if there was one

warm totem
#

I only have 2 coupons at present

#

and I created them recently

muted otter
#

hmm, not sure , I don't know why it says it's expired, looking some more

warm totem
#

Okay

#

I tried creating a new coupon and then created a new checkout session the same error screen is being shown

oblique river
#

Hey stepping in here

#

That clock is frozen at 25 June 2024 which is after the coupon expiry date

warm totem
#

ohh okay got it

oblique river
#

You either need to use a different cus_xxx not tied to a clock, or extend the expiry time of the coupon

warm totem
#

Thanks worked fine now !!

oblique river
#

No problem, glad I could help!

brazen hareBOT