#orelzman_api
1 messages Β· Page 1 of 1 (latest)
π 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/1310950724267409420
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Can kind of infer that from the pending_webhooks field: https://docs.stripe.com/api/events/object#event_object-pending_webhooks
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Otherwise not really an official way via the API as we don't expose the delivery attempts directly
Hey, thanks for the response
How could I infer it from the pending_webhooks?
I am trying to create a tool that will notify the owner of the stripe account when a webhook has failed.
Well if pending_webhook is >= 1 then you can assume there's delivery failures. However 0 won't necessarily mean success as it can also mean we didn't actually try to send it β perhaps they don't have a webhook configured to listen for those events
Like I said, not a perfect way to do it
I see.
But I can be sure that if a specific event has pending_webhook >= 1, these webhooks are failures?
Number of webhooks that havenβt been successfully delivered (for example, to return a 20x response) to the URLs you specify.
Is the description
Try it out!
Paste the evt_xxx ID please β easier for me to look at that directly
"evt_3QPNepRxhYQDfRYG1WNqE6ci"
Hmm, looks like you're sending it to the CLI?
We technically deem CLI forwarded events successful internally so I guess pending_webhooks reflects that
Try it with a non-CLI webhook, maybe via ngrok
I use stripe nodejs sdk
oh
i see
okay, just a moment
Will it stay pending forever?
No, they will eventually 'fail': https://docs.stripe.com/webhooks#retries
Now it works.
Okay, I understand.
Thank you π
Is there a way to get more details on that pending webhook?
Or only a number
Nope, as I said we don't expose the devliery attempts in the API