#Wlad Paiva
1 messages · Page 1 of 1 (latest)
Hi there!
The CLI will use the default API version used by the Stripe account you're logged in as
this is visible in your Dashboard, in the Developers view: https://dashboard.stripe.com/developers
Ok, is there a way to change it?
Could you share some more context about what you're trying to do? The reason I ask is because you can trigger GET POST and DELETE requests using the CLI and specify an API version to use for those calls: https://stripe.com/docs/cli/get#get-stripe-version
Changing/upgrading your Stripe account's API version is totally separate and should not be done without some planning
Docs on upgrading your account's API version are here: https://stripe.com/docs/upgrades
Well, I was updating the api version from "2020-08-27" to the latest one. But seems like this isn't so trivial so I better leave it as is and give priority to something else
Ah, I see. Yes, I recommend reading through any breaking changes first to ensure your integration isn't negatively impacted when you update the API version
So far the only change I needed to do is load charges since it's not sent by the webhook object anymore. But testing this local is not something I can do because the CLI loads the incorrect version
ah! the stripe listen command has a --latest flag: https://stripe.com/docs/cli/listen#listen-latest