#levin-ua_docs

1 messages ¡ Page 1 of 1 (latest)

lime vortexBOT
#

👋 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.

lyric swan
#

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?

north tusk
#

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

lyric swan
#

can you share an example id with me please? It should start with sub_

north tusk
#

just a second

lyric swan
#

sure

north tusk
#

sub_1QU4sR2GOJZ85wYs9Rbdnwv5

lyric swan
#

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

north tusk
#

not sure if cancel_at is applicable for us. since we have only start date for this report

lyric swan
#

It seems applicable as you're cancelling the subscriptions and passing that cancel_at

north tusk
#

looks like, I got your point

lyric swan
#

You set that from your end

#

So whatever you decide to use, look at that when you GET the subscription

north tusk
#

we could use the records where cancel_at IS NOT NULL

lyric swan
#

That is up to how you want to use the API

north tusk
#

got it, thank you!