#kboy_schedule-release
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/1287912560846180404
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
The subscription changed on Sep 23th.
I thinks the subscription schedule is completed, so status should be "completed".
But it's still "active" in API response.
What is end_behavior on the SubscriptionSchedule?
Can you share an exact example object id? I assume the Schedule hasn't completed yet and it's still in its last phase
yeah that SubscriptionSchedule still has a phase until October 23
it's likely in its last phase and at the end of that phase it releases the underlying Subscription
I see. So, I have another question.
In this case, which parameter should I check? I mean i wanna figured wether the last phase started or not
check if current_phase maps to the last phase in phases
I see.
kboy_schedule-release
I got it!
Thank you so much.
Can I ask another question?
So, If I put current time to starting_after, I will get only future schedules list, am I right?
From my frontend, I wanna get only future schedule list.
starting_after is not a date so no it won't work.
oh
If you want to see SubscriptionSchedules that haven't yet started you want https://docs.stripe.com/api/subscription_schedules/list#list_subscription_schedules-scheduled instead
sure
I'm back again..!
I tried scheduled: true,
And I think this API call return a phase, but not.
https://dashboard.stripe.com/test/logs/req_TsrnDcOfAInqS1
sub_1Q2LYuAMoVLSjIeBskai48Es
I'm sorry this is just pictures
I think this has an upcoming phase.
Can you share exact code and the exact issue? I don't really get the question and the vocabulary you are using right now
I just tried on my end and when I pass scheduled: true I only get SubscriptionSchedules that haven't started
I'm calling like this.
const subscriptionSchedules = await stripe.subscriptionSchedules.list({
customer: data.customer,
scheduled: true,
});
The object is sub_1Q2LYuAMoVLSjIeBskai48Es
that's a Subscription, not a SubscriptionSchedule though. Are you maybe mixing things up? If not are you giving the wrong id?
I could be confused...
There is a upcoming phase in the picture I shared, so i think there is a future subscription schedule and get a schedule by this API. But not.
const subscriptionSchedules = await stripe.subscriptionSchedules.list({
customer: data.customer,
scheduled: true,
});
so, maybe I misunderstand for scheduled: true,
yeah I think you did
scheduled: true means there's a SubscriptionSchedule that has not started yet. As in it doesn't have any Subscription associated with it and the current_phase would be in the future.
Your example looks to be "any SubscriptionSchedule that is ongoing"
We don't have a filter for this
I see. I thought that means "the phase "not started yet, but the SubscriptionSchedule.
yeah there's no way to filter for that specifically
I totally understand
So I should check "current_phase" and check out whether the date is after now or not.
Have to run but@hot ermine is taking over
Ok, Thank you, @autumn plume . I appreciate it
Hi @mellow ocean I'm taking over, let me know if you have any follow-up questions.
Hi, @hot ermine
Now I wanna display a future subsciption for users on my website.
And, I'm struggling with getting the subscription schedule datas which has only not-started phases.
I thought if I pass the scheduled:true, it should resolve this issue, but it's not.
https://docs.stripe.com/api/subscription_schedules/list#list_subscription_schedules-scheduled
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you share with me the ID of request that you created to lis the subscription schedules?
sub_1Q2LYuAMoVLSjIeBskai48Es
My ideal response from API is,,,
sub_1Q2LYuAMoVLSjIeBskai48Es
โ return a subscription schedule
sub_1Pqn09AMoVLSjIeBXYMI88B1
โ return nothing. (Because the phase already started. it's not future subscription for users.)
Here's how you can find a request ID. https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is this you want?
Yes, let me take a look
This is no "schduled:true" version request.
https://dashboard.stripe.com/test/logs/req_Y2DiZiTL7NDK6o
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Now, I understand the means of "schduled:true". So I'm looking for another way to filter it for my purpose.
I want the subscription schedule datas which has only not-started phases.
And I don't want the data already started phases.
To clarify, so the request with scheduled:true (req_TsrnDcOfAInqS1) returned you an empty list ? I"m asking because GET responses are not logged
Yes, It's empty.
That's because the schdule is already started.
But I take care about "phase"
I want to filter phases actually.
Ok, then that's expected. As the API reference states, it only return "subscription schedules that have not started yet."