#-vineet_unexpected

1 messages ¡ Page 1 of 1 (latest)

rich copperBOT
#

👋 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/1419697514767974422

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

thorny owl
#

Hello, that error message seems to say you passed the parameter as "billingmode" rather than "billing_mode" (note the underscore). Have you tried this code but with billing_mode instead?

rotund belfry
#

yes i have tried both

#

oh shit wait

#

here it is

#

@thorny owl

thorny owl
#

Can you send me the request ID from that attempt? It should be a req_123 in the response headers

rotund belfry
#

i m trying this in test clock

#

will that work for you ?

thorny owl
#

Yep, can totally look at logs for that

rotund belfry
#

here is the request id

thorny owl
#

Ah it looks like the API version is 2022-11-15 for that API request, you need to use an API version that is 2025-06-30.basil or later

rotund belfry
#

i dont pass anything in the api version

#

so by default why it uses 2022-11-15

thorny owl
#

Because your account has a default version

rotund belfry
#

Ooo

thorny owl
rotund belfry
#

okay got it

#

i have another question

#

we can generate a configuration for our billing page, which can be passed as parameter

#

while creating the billing configuration, i set the ability to cancel the subscription to false and i got back an id

#

to give context, my stripe account is used for seperate projects, if i pass generate this configuration id will it affect the billing page of the other project ( i m not passing the configuration in the parameter while creating billing portal session )

#

@thorny owl

thorny owl
rotund belfry
#

my question is

#

will it affect my other project billingportal ?

#

note that i m not passing any configuration id there while creation the session url for billing portal

#

i m concerned that if i create the configuration that might also get affected

thorny owl
#

The settings that you change in your dashboard is your default billing portal configuration. You can change that via the API if you want, or you can create other configurations and just work with those in the API. The API objects have an is_default property that tells you whether the configuration is your default or not

rotund belfry
#

i dont see any way to disable the subcrption block

thorny owl
rotund belfry
#

this is only for subscription cancel button

#

i dont want to show the subscription block at all

thorny owl
#

You can cancel the subscription update as well, can you test to see if disabling both hides the subscription list? If not, I don't think there is a way to completely hide it at the moment but I can file feedback about that

rotund belfry
#

no way to completely hide it

#

yeah file feedback for that thank you !