#lory1234_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/1465631950055280854
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Let me take a look
Yeah, as you mentioned, updating a Subscription directly just allows to reset to the current time: https://docs.stripe.com/billing/subscriptions/billing-cycle#reset-the-billing-period-to-the-current-time
But you may be able to model what you need using Subscription Schedules, by altering the duration of the current billing phase by +/- two days: https://docs.stripe.com/billing/subscriptions/subscription-schedules
Actually we use both, subscriptions when its only one infinite phase and schedules when we have different phases but, for existing normal subscriptions which don't have a schedule attached, I think adding a schedule will be more complicated.
If I change the billing anchor to 'now', will not work if I want to postpone the charging 2 days more :/
Understood. Though attaching a Schedule for making a change like this shouldn't add too much complication. If it has a phase to set up the modified billing period, and then after that the subscription continues forever, you can use end_behavior: release to then detach from the schedule again: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-end_behavior
oh thanks. It was not complicated - I just did it :). Thanks for the tip