#pierre_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/1292788335936405575
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you please share what guide exactly you are following ?
It might be the issue with a timezone, e.g. the Subscription starts on 1st of the month 00:00 CEST, but in reality it's 30th of the previous month 23:00 UTC, so it will repeat on the 30th the next month. We generally don't recommend starting subscriptions that early in the month.
Ok thanks, that makes sense. Is there a way to fix it for existing subscriptions?
It seems that we can't update the "billing_cycle_anchor_config[day_of_month]"=1
I see that the error is from the Dashboard. What are you doing/seeing in the UI exactly?
I'm doing:
- Update subscription
- Check Reinitialize billing cycle
- Add 25 trial days
- Submit update subscription
Initial issue is indeed the timezone difference like you suggested. I'll be careful about that in the future.
However if you have a way to update the billing cycle anchor for my existing subscriptions, whether it's with the API or from the dashboard, I would really appreciate it please
You can only set the billing_cycle_anchor to "now" for existing Subscriptions.
Why do you add the trial days?
"Add a free trial to automatically set the anchor date to the end of the trial. Trials typically start when you create a subscription, but you can also apply them to existing subscriptions, allowing you to credit the customer for the days left in the previous cycle that they already paid."
This if from the documentation, as a trick to reset the billing anchor to a future date, in this case to the next 1st of the month. But it doesn't seem to work
Alternatively, should I pause the subscription, and way for the 1st of the month to reset the billing anchor to "now" ?
It seems like the Dashboard call resets the billing_cycle_anchor too, which produces the error. You might need to call the API endpoint instead to just reset the trial_end parameter: https://docs.stripe.com/api/subscriptions/update#update_subscription-trial_end
Ok I'm gonna try that. Thanks for the help! Have a great day