#victoria-webhook-version
1 messages · Page 1 of 1 (latest)
victoria-webhook-version
@sterile imp yes it's possible. You likely want to make sure you use the right version when creating the endpoint which only works in the API: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
a question: i always need to send a weebhook version in my api?
if i dont send this parameter, it automatically send in the newest version?
because earlier i was not sending api_version in my api, and i was getting an 400 error
and then i setted the api_version parameter, with the 2020-08-27 version, it was working fine untill it wasnt ahahha
now i have the 2020-08-27 version on api but 2022-08-01 in my dashboard. can i change the dashboard version ?
no that's not how it works at all
The API version used for Events is entirely separate from the API version used for the API requests you make
You could make a request today with 2020-08-27 and have a WebhookEndpoint configured to receive Events with the API version 2015-02-18 from 7+ years ago and it'd still work fine
You also can't change the default API version in the Dashboard to an older one
so really what you need to do is create the WebhookEndpoint via the API and set the right API version for it: https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
oh nice! i didnt know it was possible!
so what i have to do is delete the actual webhook in my dashboard and create another one in the api
setting the version that i want
is that correct?
That's correct!
just to make sure: i cant edit the actual webhook that i created via dashboard right? the one that already exists and im using it
All your webhooks should be viewable/editable from the dashboard, yes
yes, but can i edit the version? i didnt find this button
No, that's why you have to create it via the API
ok!
is there a possible way to migrate the events from a webhook to another?
because i dont want to lose the events on the webhook that i will delete
You mean the ones that are failing?
yes
No, you would have to query for events that were not successfully delivered in order to reconcile them at that point: https://stripe.com/docs/api/events/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You would pass delivery_success: false to get Events that weren't successfully delivered to your webhook endpoint