#mikedwpdg - API Vesioning
1 messages · Page 1 of 1 (latest)
Just webhooks.
In the Dashboard the dropdown will only display
- Your account's default API version
- The current API version
e.g.
But you can specify the API version when creating a webhook endpoint via the API
Using the update call, would it be possible to set the API version?
No, that isn't an option available once a webhook has been created.
That is true whether it is via the API or the dashbaord?
Doesn't matter. Once the endpoint is created (however it is created) the API version is pinned
OK. Thanks.
Are you using a strongly typed Stripe client library?
The python library.
Okay but you just have code that is specific to the shape of Stripe objects from the '2016-07-06' API version?
That is the investigation. We have not identified all potential conflicts between the two version at this point. We were hoping if we could downgrade, it could give us a little more time to prevent unexpected errors.
Just create a new endpoint with the right version you want
and disable the old one (or write code to check the version first)
I tried that. 2016-07-06 was not an option in the dashboard. If it is available via an API call, I will bring it up to my team.
or write code to check the version first
I appreciate the coding hints. Our codebase it quite large and this was brainstormed.
Yeah really all you need to do is create the webhook endpoint via the API
would take a few minutes at most
awesome!
One last question, is it possible to delete an existing webhook and recreate it with a different API version, or is there some persistence behind the scenes that is not immediately visible in the dashboard?
webhooks are completely independent, so yes, you can delete the other webhook whenever you want, Dashboard or API