#guy_api

1 messages ¡ Page 1 of 1 (latest)

hexed muralBOT
#

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

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

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.

  • guy_api, 17 hours ago, 14 messages
chrome hedge
#

Hi, what issues are you running into specifically?

urban tapir
#

I am trying to determine the difference between the subscription status of 'canceled'. I need to know if the user canceled the subscription or if the subscription "ended" by the cancel_at date. I was trying to use the cancellation_details to determine the reason

chrome hedge
urban tapir
#

No it does not. I've referenced the docs, but it does not show how to get the values of it

chrome hedge
urban tapir
#

req_tHYmrUhpAEfW3W

chrome hedge
#

That is a request to cancel the subscription but in the responde you can see:

cancellation_details: {
comment: null,
feedback: null,
reason: "cancellation_requested",
},

#

I thought you were trying to Retrieve the subscription

#

Can you make a request to achieve that?

urban tapir
#

Yes one sec

chrome hedge
#

I made a request on my end and it just works

urban tapir
#

req_tHYmrUhpAEfW3W

#

I can retrieve the subscription no problem, but I am not sure how to access the cancellation_details and specifically the cancellation reason

chrome hedge
#

You can see it from the response

#

I logged mione like: console.log(subscription.cancellation_details);

#

I'm using Node but the gist would be the same

urban tapir
#

Im using PHP and like I said previoulsy, I can get other details from the subscription object no problem like

$cancelAtDate = $subscription->cancel_at;
$cancelledAt = $subscription->canceled_at;

But I cannot access the cancellation details

#

Ok I was able to get it. Thank you very much for your help