#manuel_api

1 messages ¡ Page 1 of 1 (latest)

subtle tokenBOT
#

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

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

wraith prairie
#

Hi! What programming language, and what SDK version?

untold pecan
#

hey! im using Python 3.10.0 and API version is 2022-11-15 by default

#

but i have this others too

#

but idk

subtle tokenBOT
uneven flume
#

So looks like you are using 2022-11-15, while the Preview API is only available from basil

untold pecan
#

so how can I set the API version, or can't I? :c

#

I just need to create previews rarely so it's not necessary to upgrade all the API just use a different version for that specific request

uneven flume
untold pecan
#

yeah i was trying with this stripe.Invoice.create_preview(customer=customer.stripe_id, stripe_version="2024-06-20") but i get this error every time:
AttributeError: type object 'Invoice' has no attribute 'create_preview'

uneven flume
#

No I mean you need the latest 2025-03-31.basil version

#

to use the Invoice Preview API

untold pecan
#

sorry I don't understand, I think I'm lost. So i can't use the preview even if I set the API version in the stripe method?