Failed webhooks retry

Hi,
I want to check if any webhooks have failed every day at midnight and then trigger those webhooks.
I can see that we can do this manually in Dwolla dashboard, but I want to write a cron which will run daily at midnight and trigger all the failed webhooks only. How can I do this ? Please note that I want to retrieve only failed webhooks and trigger them one-by-one using api.

Hi @IshanM – if you’re planning on doing this via the API, the perhaps you could do the following -

Step 1: List all webhooks for a subscription filtered by startDate and endDate. ?
Step 2: Page through each webhook resource in the embedded list to extract the response body. If the statusCode is not equal to or greater than 2xx, then you can retry it.

Hope that helps!

@shreya
Hi, Can you please confirm when we list all webhooks what sorting order of webhooks we expect in response.

  1. Are they ordered Ascending or Descending?
  2. And which variable(s) is used to order them?
  3. Is there way to send sorting order as request param?

Hi @zghotlawala – we do not guarantee webhooks to be delivered in the order that they are generated. There isn’t a way send sorting order as a request param.