Use the
replayFailedWebhookEvents mutation to replay failed webhook events.mutation { replayFailedWebhookEvents(webhookId:your-webhook-id) }
Notes:
- Your webhook endpoint must return a
200status code for the event to register as being successfully received. See this example (line 24).
- Taddy API keeps track of all webhook events that failed to successfully be received by your webhook endpoint and stores them for 14 days.
- When you call replayFailedWebhookEvents, failed events are queued to replay to your endpoint immediately but may take a few moments for the first event to arrive (depending on the volume of failed events and how busy the queue is).
- When you are replaying an event, if it returns a
200status code, we remove the record from our database and it won't be included in future replays.
- When you are replaying an event, if it fails again, the failed record remains and will be included in future replay attempts.
- The return value for this mutation is the number of failed events stored for this webhook when you call it, which is the number queued for replay. Replay runs asynchronously after the mutation returns, so watch your endpoint (or call again later and see the count fall) for the outcome.
0means no failed events are stored and nothing needs to be replayed.
Back to:
Webhooks