#lslavuj
1 messages · Page 1 of 1 (latest)
👋 Hi there, Happy to help!
Could you please share the eventId?
Sure, the eventId is: evt_3M7dCpEDp185F5gg0rxOeF9l
Once the event Object is generated, it's generated according to the related webhook version:
That event was sent to two webhook endpoints:
we_1M7IOdEDp185F5ggtJgc7iN0this one you created it for stripe api_version=2022-11-15
The event sent to this endpoint with the api_version=2022-11-15 formatwe_1M7IOdEDp185F5ggJlZorigrthis one you didn't specify any api version, so the default version will be used which is in your case 2017-02-14
The event sent to this endpoint with the pi_version=2017-02-14 format
Note that: The listen command can receive events based on your account's default API version or the latest version.
https://stripe.com/docs/cli/listen#:~:text=The listen command can receive events based on your account's default API version or the latest version
but when i try to retrieve that event for example with cURL i specify the latest version:
curl https://api.stripe.com/v1/events/evt_3M7dCpEDp185F5gg0rxOeF9l
-u sk_test_xxxxxxxxxxxxxxxxxxxxxxxx:
-H "Stripe-Version: 2022-11-15"
sholdn't i get the event formatted with the latest version as i specified it?
Actually the event is formatted to that API, the event fields are id, object, created, data, live mode... what's inside data that's not something related to the event it self, its related to the Charge.
Also, the api_version properties isn't dynamic, it represent the api_version used to generate this event
It was generated for this webhook we_1M7IOdEDp185F5ggJlZorigr your default API version
In otherwords, you need to use a webhook that is configured for api version 2022-11-15 or just use stripe cli which points to the latest version already. and you test the event ingestion using the events you receive not using the GET API