#mayuri_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/1367844167312605265
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yes you can use Subscription schedule for this in order to create a Subscription in the future
but in subscription scedular is their why to cancle it when i want?
Yes think of it as a wrapper of a Subscription, with more flexibility
can you please explain more?
but in subscription scedular is their why to cancle it when i want?
Yes you can cancel the Subscription Schedule same as the Subscription
because the Subscription scheduler is linked to a Subscription
And you can create a Scheduler from an existing Subscription
But in cancle schedule there is no parameter for cancle it.
like if i want cancel subscription there is one way to cancle which is update the subscription api. where i can cancle the subcription anytime which i want.
is there any way to cancel schedular like this?
You mean cancel at period end ?
yes
Yes you can create a schedule with just one phase
like cancle_at any time
Yeah you set the latest phase (end_date)
and set the end_behavior to cancel:
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-end_behavior
Okay
Okay, one more query here, if i create a subscription schdule like phase: { start_Date: 2nd may and end_date 2 aug} . now after 15 days i have cancle it like end_Date should be 30th may, so how i can do it?
i mean i have update my end_date of that subscription schedular phase
how i can do it?
after the updatation if i want to create new subscription schedualr , so the process will same as you mentioned above?
hey there, just stepping in for @real flax who needs to step away, i can help with the new question. give me a moment to catch up.
ok
You can cancel the schedule directly, which also cancels the subscription immediately
Similar to other Stripe APIs, you can retrieve and update subscription schedules. You can also cancel and release them. Cancelling a subscription schedule cancels the subscription as well. If you only want to remove a schedule from a subscription, use the release call.
From: https://docs.stripe.com/billing/subscriptions/subscription-schedules#subscription-schedule-sub-updates
API: https://docs.stripe.com/api/subscription_schedules/cancel
If you want to set a future cancel_at date, you can make schedule updates to control that, or you can release the schedule and update the subscription directly to set cancel_at, which is likely simpler for most use cases.
like i can use subscription cancle api for same?
or need to use cancel subscription schedul api?
If you want to cancel immediately, you can use the schedule cancel API
It will also cancel the attached subscription
Okay, and i want cancel it in future then i have to use update schedular api correct?
Yes, this is what was referred to earlier. You can update the schedule so that the last phase ends when you want the subscription to be cancelled, and set the schedule end_behavior=cancel
https://docs.stripe.com/billing/subscriptions/subscription-schedules#completing-schedule