#simonc6182_code

1 messages ¡ Page 1 of 1 (latest)

verbal cobaltBOT
#

👋 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/1230502600617754674

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

graceful pollen
#

Hello

#

Can you clarify what you mean by "timestamp value is not correct"?

ashen ravine
#

Yes

#

Actually, I set with this value: 1729172855, nevertheless on Stripe, the cancel at is specify to the 17th may

graceful pollen
#

Can you share the request ID where you set this as the cancel_at date?

ashen ravine
#

Where can I find this information?

ashen ravine
#

Ok

#

req_sC0PbtUhPW1Pox

#

And in the code, I set with 1729172855

graceful pollen
#

In that request you passed ``` cancel_at_period_end: "true",

#

So you did not pass cancel_at

ashen ravine
#

I have to specifty cancel_at_period_end: "false"?

graceful pollen
#

No you just omit that parameter

#

And just pass cancel_at

ashen ravine
#

What am I suppose to do?

graceful pollen
#

If you wan to update a Subscription to cancel at a specific timestamp in the future you pass the cancel_at parameter with a UNIX timestamp

ashen ravine
#

Yes, this is what I did

graceful pollen
#

I'm not sure I understand the confusion here... the request you shared you passed a different parameter as you can see in the POST body when you look at that request

#

So no you didn't, and either your code is cached or you forgot to save during your test.

#

I'd recommend clearing you cache and trying again

ashen ravine
#

Ok, I will do that

#

Now it works, thank you for the help