#kaavya_subscription-billingcycle
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/1293237128142131282
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
The easiest way to do this is to use trial_end: https://docs.stripe.com/api/subscriptions/update#update_subscription-trial_end
You would set that to midnight on the next billing cycle
Note: our API handles all timestamps in UTC
and that would be better than using billing anchor?
You can't shift the billing cycle anchor to an arbitrary time in the future using billing_cycle_anchor. It only takes now or unchanged: https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_cycle_anchor
This would also lead to proration, which I assume you don't want here
https://docs.stripe.com/billing/subscriptions/billing-cycle#changing discusses how to handle moving the billing anchor for existing subs
Ah I see. Would setting trial end continue for future subscriptions too?
If it's a recurring subscription
Not sure what you mean by that?
Setting trial_end would put the subscription on trial until the specified time
kaavya_subscription-billingcycle
We want to move recurring subscriptions from let's say 2pm on the 1st to midnight on the 1st, and then midnight on the 1st for each month going forward
@tall scroll Honestly my advice is to not do that. It shouldn't really matter when a Subscription is charged on a certain time of the day. And having all your Subscriptions renew at the exact same time is dangerous because it means we could overwhelm you with Events on your WebhookEndpoint(s).
It's best to keep the Subscription anchored to whatever time of the day it was anchored at on creation
But otherwise, what you are trying to do is mostly impossible. The only way is to use the trial hack which is something I'd discourage personally
That all makes sense to me! Thanks for the advice!