#mathijs_code

1 messages ยท Page 1 of 1 (latest)

slate bayBOT
#

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

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

atomic slate
#

๐Ÿ‘‹ happy to help

gilded horizon
#

that is with the from_subscription. And then I need to update the schedule?

#

Is there a way to retrieve the existing schedule if the modify schedule fails after the creation of the schedule with from_subscription?

gilded horizon
#

I created the schedule succesfully:
schedule = stripe.SubscriptionSchedule.create(
from_subscription=subscription.id,
)

But my code failed on the modify part:
modified_schedule = stripe.SubscriptionSchedule.modify()

I need to retrieve the schedule for the customer, since I can't run this again:
schedule = stripe.SubscriptionSchedule.create(
from_subscription=subscription.id,
)

atomic slate
#

if you the schedule update failed the schedule would still be the same

#

so you have access to it via the schedule variable you created

gilded horizon
#

I understand, but my code failed. So I dont have that variable anymore. And I can't create a schedule again.

slate bayBOT
atomic slate
inland pendant
#

hi! I'm taking over this thread. let me know if you have other questions!