#manuel_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/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.
- manuel_api, 1 day ago, 21 messages
Hi! What programming language, and what SDK version?
hey! im using Python 3.10.0 and API version is 2022-11-15 by default
but i have this others too
but idk
So looks like you are using 2022-11-15, while the Preview API is only available from basil
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
Yeah you can try https://docs.stripe.com/sdks/set-version#versioning-basics
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'
No I mean you need the latest 2025-03-31.basil version
to use the Invoice Preview API
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?