I noticed that under https://dashboard.stripe.com/developers API overview it says:
You may be using multiple API versions due to your client libraries or plugins.
And I see I'm using both API versions:
2023-10-16
2018-02-28
and not
2024-04-10 Latest
Here https://docs.stripe.com/building-plugins#set-api-version it says:
Your plugin should use the setApiVersion function, which will set the Stripe-Version HTTP header on all requests. Your users will use their own API keys to access Stripe, but this header will be included with every request. We recommend that you use the most recently published version of the API. The current API version and details on our versioning policy can be found in the API reference.
New Stripe users automatically default to the latest version of the API. This header ensures that your connector is pinned to a specific API version, which keeps the occasional backwards-incompatible change from breaking your connector’s functionality.
Users can upgrade their own API version through the Stripe Dashboard. If your connector relies on webhook events, their data format and structure depend on the user’s account API version. You should instruct your users to set the version in their Dashboard to match your plugin.
Caution
API versions can’t be downgraded. You should regularly release new versions of your connector to correctly handle any changes to JSON responses.