#shubhamjha
1 messages · Page 1 of 1 (latest)
hi! can you elaborate?
i want to see the failed webhook delivery id
stripe.webhookEndpoints.listDeliveries is this is correct?
stripe.webhookEndpoints.listDeliveries(
endpointSecret,
{ limit: 100, status: 'failed' },
(err, deliveries) => {
if (err) {
console.error(err)
return
}
console.log('Failed deliveries:', deliveries.data)
},
)
my code
hmm I'm not familiar with that function existing
it's not documented at https://stripe.com/docs/api/webhook_endpoints. Where did you find it exactly?
depending on what you're trying to do, https://stripe.com/docs/api/events/list#list_events-delivery_success might be more useful to get events that have not been delivered.
you can't delete events
I'm not sure what you mean by this. Could you elaborate, maybe share a specific example?
like if a webhook failed to deliver they are redeliver in an hour but i dont want it because it will effect my databse
but if it failed to deliver it means you don't know that the event happened, so if we don't attempt to send it again you would just completely miss it?
I don't understand why you'd want that. In any case you can not stop retries of any specific event no. The only way to have us stop retrying an event is to respond with a HTTP 200 when we deliver it, or to delete the webhook endpoint object.