#guy_api

1 messages ยท Page 1 of 1 (latest)

slow shuttleBOT
#

๐Ÿ‘‹ 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/1351639940886298624

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

quasi flare
#

You could also use metadata to store this information

grand laurel
#

The issue I am having is that I am getting the subscription status from the API, and currently when a subscription is due to end, it is canceled by the API. So if a customer cancels a subscription or it ends, the status returned is the same

quasi flare
#

Yeah you can't use status parameter for your usecase as such. You'd want to rely on other parameters such as cancellation_details to figure out what triggered the cancelation

grand laurel
#

Can I set the cancellation details using the end_behavior?

quasi flare
#

Not really, you set end_behavior on the Schedule object (not the underlying Subscription, that's different)

grand laurel
#

Or I suppose set cancellation_details when a customer cancels and if its null then its because the subscription ended?

quasi flare
#

yup, that's what I suggested above

grand laurel
#

Ok, thank you for your help

quasi flare
#

NP! ๐Ÿ™‚ Happy to help