#brianp-events-list
1 messages ยท Page 1 of 1 (latest)
Sorry I meant it was delivered to the webhook endpoint with version 2022-11-15
Hi, can you clarify what what the expected behavior is here? You mentioned 3 different days here
I see the above, we sent at the same time.
I made a request to GET /v1/events and the expected behavior is that it should have responded with events with api_version 2022-11-15.
Last question, where are you seeing that 'evt_1Mroy5LGmb2h8RE1rVerptxd is sent with the api_version 2020-08-27.'? Can you add more clarify here?
But it returned an event evt_1Mroy5LGmb2h8RE1rVerptxd with api_version 2020-08-27 instead
Yes that is correct. It is responding with the correct event, but the api_version is incorrect so it cannot be parsed by the java client.
When you call the List Events API, it is impossible for it to "re-render" the content of the Event with an API version different than the one it was created with originally
This is happening for all requests to GET /v1/events. It is returning events with api_version:2020-08-27.
it's something that people get confused about a lot unfortunately but it is expected behaviour
brianp-events-list
Ok but these events should be created for a webhook that is on the 2022-11-15.
I have a disabled webhook that is on 2020-08-27
So if you have Event evt_123 generated last week with 2020-08-27 and today you want to use the API version 2022-11-15, it will never be able to return based on that version
yeah but your account's API version is likely 2020-08-27
what happens if you retrieve that Event specifically via https://stripe.com/docs/api/events/retrieve which version do you see?
How do I upgrade my account's API version? Do I need to do something in addition to updating the java library?
yeah you can upgrade it in the Developers tab in Live mode on your account. But make sure your entire integration is ready for this change
Is the setting available in test mode?
no because it's global on the entire account so we only let you change it in Live mode