Webhooks

Listar las entregas de un endpoint

GET
/v1/webhook-endpoints/{id}/deliveries

Cada evento enviado a este endpoint, del más reciente al más antiguo, con cada intento.

Autorización

AutorizaciónBearer <tu clave API>

Tu clave API: fb_sandbox_… emite en Sandbox, fb_test_… en test, el servicio de pruebas de la autoridad tributaria, y fb_live_… en live, su producción.

En: header

Parámetros de ruta

id*string
Formatouuid

Parámetros de consulta

limit?integer

Cuántos por página, de 1 a 100.

Rango1 <= value <= 100
Por defecto20
cursor?string

El next_cursor o el prev_cursor de una respuesta anterior. Sin cursor, la primera página.

Longitudlength <= 200
status?string

Valores posibles

  • "pending"
  • "succeeded"
  • "failed"
event_type?string

Solo las de este tipo de evento: invoice.authorized.

Longitudlength <= 100
document_id?string

Solo las de eventos sobre este comprobante.

Formatouuid

Cuerpo de la respuesta

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/deliveries"
{  "object": "list",  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "object": "webhook_delivery",      "endpoint_id": "e9ce0d4f-d433-423d-9497-4c000544106c",      "event": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "type": "string",        "data": {          "property1": null,          "property2": null        },        "created_at": "2019-08-24T14:15:22Z"      },      "status": "pending",      "attempts": [        {          "at": "2019-08-24T14:15:22Z",          "status_code": 0,          "error": "string",          "duration_ms": 0        }      ],      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}