#costa_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/1432380967124996168
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, I think that cancelling the old subscription and creating a new one is likely the easier option here. The alternative would be that you can update the existing subscription's items while also passing billing_cycle_anchor='now' to force the subscription to cycle immediately and create a new invoice. I think you would then also need to make an API call to finalize the invoice immediately so it is payable. So I think two API calls are required either way and it is a bit of a lateral move except the second method.
Another thing that could be helpful would be switching to our "collect details before creating" flow or our "finalize payments on server" flow. With those, you wouldn't need to create the actual subscription object until after the user has submitted their payment details. So this could reduce how often you need to update or cancel and create subscriptions.