#shubhamjha

1 messages · Page 1 of 1 (latest)

green eagleBOT
fleet dome
#

hi! can you elaborate?

rigid heart
#

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

fleet dome
#

hmm I'm not familiar with that function existing

rigid heart
#

oh

#

i want to see the failed webhook delivery id

fleet dome
rigid heart
#

how can i delete the event ?

#

if it is failed or pending for redeliver?

fleet dome
#

you can't delete events

fleet dome
rigid heart
#

like if a webhook failed to deliver they are redeliver in an hour but i dont want it because it will effect my databse

fleet dome
#

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.