#vitaumps_api

1 messages ยท Page 1 of 1 (latest)

quasi sphinxBOT
#

๐Ÿ‘‹ 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/1509904174484295697

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hollow dune
#

hey there ๐Ÿ‘‹ taking a look at this example

quasi sphinxBOT
hollow dune
#

ok so yeah, the reason you're getting that error is because the subscription items you're trying to add don't have the same recurring.interval and recurring.interval_count

(i.e. one is monthly, one is every 3 months)

that would result in a mixed-interval subscription, which isn't supported with classic biling mode:

https://docs.stripe.com/billing/subscriptions/mixed-interval#:~:text=Mixed interval subscriptions must use flexible billing mode. You must upgrade your API version to 2025-06-30.basil or later to use flexible billing mode in the Dashboard and API.

Mixed interval subscriptions allow users to create a single subscription using prices of varying interval durations.

weary steeple
#

I see that in the error message, but when this started to be enforced? I see May 2025, wich is a long time ago. I will double check, but I don't think we have changed that request in some time. Can something on the stripe account itself, or the price/product change in a way that would start triggering this issue?

#

We've been on classic mode for a long time

winged crest
#

Hi there. Glo had to step away

#

Prior to flexible billing mode, you never were able to mix subscription items with different recurring intervals

#

What's causing the issue is that one item's price has recurring.interval_count set to 3 to bill every 3 months and the other price does not have recurring.interval_count set (so it bills monthly)

#

This isn't doable without flexible billing mode and was never doable before that was introduced

weary steeple
#

Ok, I will have to dig deeper into this on my end