#carlweiscodes_webhooks

1 messages ยท Page 1 of 1 (latest)

final escarpBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338559064094801951

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

steady sundial
#

Hi ๐Ÿ‘‹

Webhook endpoints don't factor in what API version was specified when you made your API requests. They only use the API version specified on that webhook endpoint.

rustic plank
#

My webhook endpoint was configured for API version 2022-08-01, but they're being sent with API version 2020-03-02

steady sundial
#

I'm looking at evt_3QqzadL91mzKIzpG1sL3kvK8 and the JSON in the body for requests we sent to each webhook endpoint

#

For we_1Qq0PTL91mzKIzpG6Udfd1Es, I see

{
  "id": "evt_3QqzadL91mzKIzpG1sL3kvK8",
  "object": "event",
  "api_version": "2022-08-01",
rustic plank
steady sundial
#

I cannot see dashboard links. Since I don't have access to your dashboard

#

For we_1GLjWNL91mzKIzpGaBWPnctE, I see

{
  "id": "evt_3QqzadL91mzKIzpG1sL3kvK8",
  "object": "event",
  "api_version": "2020-03-02",
#

In both cases the API version returned matches what is specified for that webhok endpoint

rustic plank
#

That webhook endpoint is configured with version 2022-08-01 and the webhook came through with version 2020-03-02, so what I'm I missing here?

#

oh...nvm.

#

I see it now.

steady sundial
#

Webhook endpoint we_1GLjWNL91mzKIzpGaBWPnctE is configured for that API version

#

It is easy to get tripped up here. Especially if you are managing multiple webhook endpoints with different API versions

rustic plank
#

so it's being caught by a different webhook endpoint, which is configured with the older version, but not being caught by the new webhook configured with version 2022-08-01

we_1Qq0PAL91mzKIzpG14xOJQ1c

steady sundial
#

No, we sent webhook event requests to both endpoints

#

Or did you mean on your end?

#

Stripe delivers webhook events to every endpoint that listens for them. Even when they have different API versions. It's a lot of overhead for us but it's what our merchants expect so that's what we do.

rustic plank
#

so I'm creating a payment in an environment that is configured to use the new API version, and when the webhook comes in it shows an API version of 2020-03-02, but that webhook endpoint is configured to use API version 2022-08-01.

I guess this is what's confusing me:

we_1Qq0PAL91mzKIzpG14xOJQ1c -> API Version 2022-08-01
evt_1Qr0h5HNvvp0Twf9aiUnwv8Z -> API Version 2020-03-02

I'm getting to this event in workbench by clicking on the webhook event destination and viewing the event deliveries. I would expect all of the event deliveries to this specific webhook endpoint to use api version 2022-08-01

This is most likely just different evironments on our end processing the webhook.

#

So when performing the upgrade, since we're doing an incremental upgrade and can't do it through the UI, should we create webhook endpoints using the upgrade target API version for each environment, and then roll out the change that forces the application to use that API version, and then remove old webhook endpoints?

steady sundial
#

Unfortunately, I cannot speak to what is shown in Workbench. As for handling this incremental upgrade, we recently updated our public doc to include a guide for how to handle this.

rustic plank
#

Nice! Thank you for your help. I will take a look at the guide and go from there. Appreciate you. Have a good rest of your day.

steady sundial
#

Happy to help! It's why we're here ๐Ÿ™‚