Skip to content

FISCALISTO / API / REFERENCE

Recover failed events · Webhooks

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/webhook_endpoints/{id}/recover

After your server was down: sends again, now, every event since since that this webhook listens to and didn't receive (those whose tries all failed and those that happened while it was turned off), oldest first. Up to 1,000 per call; if more are left, next_since says where to call again from. Each one is a separate try, signed with its usual webhook-id, so your server can drop the ones it already had. The webhook must be turned on.

Before you call

  • A key for the whole account: not limited to some issuers or to a test environment.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Path parameters

id*string

The object's id.

Headers

Idempotency-Key?string

Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).

Length1 <= length <= 255

Request body

application/json
  1. body
since*string

Since when (ISO 8601, within the last 30 days): for example, when your server started failing (the webhook's failing_since).

Response body

OK.

application/json
  1. response

The events a webhook didn't receive, sent again: since when they were looked for, how many went out and, if more than 1,000 were left, where to continue from.

object*string

What kind of object it is («invoice», «customer»…).

endpoint*string

The webhook (whe_…) they were sent to.

since*string

Since when they were looked for: the since you sent, or when the webhook was created if that's later.

events*integer

How many events went out again. 0: none were missing.

Range-9007199254740991 <= value <= 9007199254740991
next_since*|

If more than 1,000 were left: call again with this since. null: all of them went out.

Errors

  • That webhook endpoint is disabled, so an event can't be resent to it. Enable it with disabled: false and resend.

  • This key is limited to some issuers and the request touches another one (or creates one, or uses something of the whole account, like webhooks).

  • There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X POST 'https://api.fiscalisto.com/v1/webhook_endpoints/whe_0q1Vmmw52sbDpmtsKD1E/recover' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "since": "2026-11-20T09:00:00-06:00"}'
{  "object": "webhook_recovery",  "endpoint": "whe_8Kq2ZtR4mNw1Lp0sXc7V",  "since": "2026-11-20T09:00:00-06:00",  "events": 42,  "next_since": null}

Was this page helpful?