#kaavya_subscription-billingcycle

1 messages ¡ Page 1 of 1 (latest)

smoky zenithBOT
#

👋 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.

dreamy oyster
#

Hello

#

You would set that to midnight on the next billing cycle

#

Note: our API handles all timestamps in UTC

tall scroll
#

and that would be better than using billing anchor?

dreamy oyster
#

This would also lead to proration, which I assume you don't want here

tall scroll
#

Ah I see. Would setting trial end continue for future subscriptions too?

#

If it's a recurring subscription

dreamy oyster
#

Not sure what you mean by that?

#

Setting trial_end would put the subscription on trial until the specified time

smoky zenithBOT
split steeple
#

kaavya_subscription-billingcycle

tall scroll
#

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

split steeple
#

@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

tall scroll
#

That all makes sense to me! Thanks for the advice!