#jsdesign-sw_api
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/1387708252170748026
📝 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.
- jsdesign-sw_api, 22 hours ago, 11 messages
I am currently unable to cancel this user's subscription upon expiration in the Stripe backend
👋 happy to help
he did understand what you meant
I feel that this subscription is in its current state because I did a non cancellation operation once
no you're dealing with a subscription schedule here
so it's not just about the subscription's current state but the state of the subscription schedule
I'm still looking into it
please give me some more time
Yes, I achieved the action of 'not canceling the current subscription' by modifying the subscription schedule
I think you should update the subscription with the API and remove the cancelAt
I just said that canceling the subscription through the API doesn't work, and then I tried the Stripe backend, but the result was the same error
the subscription is already set to be canceled
at period end
from this request https://dashboard.stripe.com/logs/req_nuzQELHysxGUBN
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Why can't I find your log in the background search
Is this method effective? I'll give it a try
you need to click on view more
I'm not sure what you mean by that
this is already done
if you want to stop the subscription from being canceled you need to send cancelAt: '' to the subscription update endpoint
Because I can see that this user's subscription is still active and I can't see the log you posted above
did you visit this link https://dashboard.stripe.com/logs/req_nuzQELHysxGUBN ?
I can see it there, but I couldn't find it when I searched for the subscription related logs directly in the background
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Not at the moment, I'll try the solution that the gentleman above told me first
@magic matrix Hello, this type of sending cannot cancel my current subscription
According to error message:
The subscription is managed by the subscription schedule
sub_sched_1RdqV3FhJBXi2cUJRmCKgFMH, and updating any cancelation behavior directly is not allowed. Please update the schedule instead.
You need to cancel the schedule
I feel like you still don't understand the problem I'm facing. I modified my subscription schedule to "cancel subscription upon expiration" or "not cancel subscription". I had no problem using this method in testing mode, but in production mode, there may be issues with modifying the subscription schedule to achieve the effect of canceling subscription upon expiration
I used this before, you can check the logs https://dashboard.stripe.com/logs/req_bGIKBy2rzhXBz4
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you share the Subscription Id in test mode that you hadn't issue with and the corresponding request Id to req_xWIykLCWk6rPMh
I think my colleague already answered you on this request above
No, he asked me to do it this way https://dashboard.stripe.com/logs/req_nuzQELHysxGUBN
You can see the logs I have tried in test mode
https://dashboard.stripe.com/test/logs/req_xWIykLCWk6rPMh
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If your intention is for me not to manage subscriptions through subscription schedules, then you need to first ask me how to unsubscribe from existing subscription schedules
Can you help me see how this user should set up expiration cancellation? Because the user will be charged in 7.3, but he doesn't want to renew, and he may apply for a refund because of this issue
Can you help me see how this user should set up expiration cancellation? Because the user will be charged in 7.3, but he doesn't want to renew, and he may apply for a refund because of this issue
You need to update the Subscripton schedule using the API endpoint I shared above:
https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-end_behavior
You need to make sure that there'll be only one phase remaining (the current one only)
Set end behavior to cancel.
I know I need to modify my subscription schedule, but the problem now is that it will generate an error message https://dashboard.stripe.com/logs/req_bGIKBy2rzhXBz4
I won't get any errors in test mode
You are using Stripe Dashboard here
It seems that you want to update the first phase too
In your case, you just need to set the end behavior to cancel to your Subscription
I won't get any errors in test mode
There must be a different between your test mode integration and live mode...
Sorry, this was cancelled through an API https://dashboard.stripe.com/logs/req_onLo906XrFKlDg
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah same, it seems like you are updating the price too
They reported the same error
Let's focus on one Subscription at the same time if possible
Could you please share a Subscription (or schedule) Id, what is the current state and what you want to achieve ?
Could you please help me understand the case, by answering this ?
I want to set the subscription to expire and cancel https://dashboard.stripe.com/subscriptions/sub_1R9Z81FhJBXi2cUJtz6HaGKD
In your backend request, can you update the schedule with only this request body:
{
end_behavior: "cancel"
}
ok, I'll try
I don't need to pass on the Phase, right?
Yeah as you don't want to update it
@topaz wedge is this a different issue to the one I helped you with yesterday?
Yes, because I created all the phases, but there is no such issue in testing mode
I tried updating the schedule with only this request body in test mode
{
end_behavior: "cancel"
}It's possible
I will test this code in the production environment next week