#levin-ua_docs
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/1334939320393400383
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, what does 'The problem here is that for our test instance that approach doesn't work' mean? What do you expect it to return and what are you getting?
sorry for being unclear. on a test server after subscription cancelation the cancel_at_period_end field is still equal to false, which is weird
can you share an example id with me please? It should start with sub_
just a second
sure
sub_1QU4sR2GOJZ85wYs9Rbdnwv5
Yeah, that is beacuse you're passing an explicit time on your update request: https://dashboard.stripe.com/logs/req_43mVE9MUjb21qt
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
cancel_at_period_end is true when you specify that you're cancelling the subscription at the of the period.
You would instead want to look at cancel_at
not sure if cancel_at is applicable for us. since we have only start date for this report
It seems applicable as you're cancelling the subscriptions and passing that cancel_at
does it mean that cancel_at_period_end will be set to true only if subscriptions ends 31 of January and is being canceled 31 of January, right?
looks like, I got your point
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You set that from your end
So whatever you decide to use, look at that when you GET the subscription
we could use the records where cancel_at IS NOT NULL
That is up to how you want to use the API
got it, thank you!