# Listar entregas

`GET https://api.fiscalisto.com/v1/webhook_endpoints/{id}/deliveries`

Qué pasó con cada evento en este webhook, el más reciente primero: una fila por evento con su último intento, cuántos lleva y cuándo va el siguiente reintento. Con succeeded=false ve los que su servidor no recibió, para reenviarlos con POST /v1/events/{id}/resend.

## Antes de llamar

- **Una llave de toda la cuenta**: sin límite de emisores ni de un entorno de prueba.

## Parámetros

| Nombre | Dónde | Obligatorio | Descripción |
| --- | --- | --- | --- |
| `id` | ruta | sí | El id del objeto. |
| `limit` | consulta |  | Cuántos por página, de 1 a 100. Por omisión 10. |
| `starting_after` | consulta |  | El id del último de la página anterior, para la siguiente. |
| `succeeded` | consulta |  | false: solo los que fallaron en su último intento. true: solo los que llegaron. |

## Con el SDK de TypeScript

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

for await (const item of fiscalisto.webhookEndpoints.listDeliveries("id")) {
  console.log(item.id);
}
```

## Con el SDK de Python

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

for item in fiscalisto.webhook_endpoints.list_deliveries("id"):
    print(item["id"])
```

## Con el SDK de PHP

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

foreach ($fiscalisto->webhookEndpoints->listDeliveries('id') as $item) {
    echo $item['id'], "\n";
}
```

## Con el SDK de .NET

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

await foreach (var item in fiscalisto.WebhookEndpoints.ListDeliveriesAutoPagingAsync("id"))
    Console.WriteLine(item.Id);
```

## Con el SDK de Go

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	for item, err := range client.WebhookEndpoints.ListDeliveriesAutoPaging(ctx, "id", nil) {
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println(item.ID)
	}
}
```

## Con el SDK de Java

```java
import com.fiscalisto.FiscalistoClient;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

for (var item : fiscalisto.webhookEndpoints().listDeliveriesAutoPaging("id")) {
    System.out.println(item.getId());
}
```

## Respuesta 200

Correcto.

Un objeto `WebhookDeliveryList`:

| Campo | Tipo | Siempre viene | Descripción |
| --- | --- | --- | --- |
| `object` | `"list"` | sí | Qué tipo de objeto es («invoice», «customer»…). |
| `data` | arreglo de objeto | sí | Los objetos de esta página. |
| `data[].object` | `"webhook_delivery"` | sí | Qué tipo de objeto es («invoice», «customer»…). |
| `data[].id` | string | sí | El último intento (whd_…). Úselo en starting_after para la página siguiente. |
| `data[].webhook_endpoint` | string | sí | El webhook (whe_…). |
| `data[].event` | string | sí | El evento (evt_…). Reenvíelo con POST /v1/events/{id}/resend. |
| `data[].event_type` | string o null | sí | El tipo del evento (invoice.stamped…). |
| `data[].succeeded` | boolean | sí | true si su servidor contestó 2xx en el último intento. |
| `data[].status` | integer o null | sí | El código HTTP que contestó su servidor; null si no se pudo conectar. |
| `data[].error` | string o null | sí | Qué falló (tiempo de espera, DNS, o el inicio de su respuesta); null si llegó. |
| `data[].duration_ms` | integer | sí | Cuánto tardó su servidor en contestar el último intento. (de -9007199254740991 a 9007199254740991) |
| `data[].attempts` | integer | sí | Cuántas veces se ha mandado a este webhook, reenvíos incluidos. (de -9007199254740991 a 9007199254740991) |
| `data[].resent` | boolean | sí | true si el último intento fue un reenvío (POST /v1/events/{id}/resend). |
| `data[].test` | boolean | sí | true si es un evento de prueba (POST /v1/webhook_endpoints/{id}/test); no se reintenta. |
| `data[].created_at` | string (date-time) | sí | Cuándo fue el último intento. |
| `data[].next_retry_at` | string (date-time) o null | sí | Cuándo va el siguiente reintento automático; null si llegó o ya no hay más. |
| `has_more` | boolean | sí | true si hay más: pida la siguiente con starting_after igual al id del último. |
| `url` | string | sí | La ruta de esta lista. |

```json
{
  "object": "list",
  "data": [
    {
      "object": "webhook_delivery",
      "id": "whd_48213",
      "webhook_endpoint": "whe_0q1Vmmw52sbDpmtsKD1E",
      "event": "evt_0PKhIdhYuAGwzmMQYfkc",
      "event_type": "invoice.stamped",
      "succeeded": false,
      "status": 503,
      "error": "Respondió 503.",
      "duration_ms": 1840,
      "attempts": 3,
      "resent": false,
      "test": false,
      "created_at": "2026-11-14T10:40:12-06:00",
      "next_retry_at": "2026-11-14T12:40:12-06:00"
    }
  ],
  "has_more": false,
  "url": "/v1/webhook_endpoints/{id}/deliveries"
}
```

## Errores

- `key_restricted` (403): La llave está limitada a algunos emisores y la solicitud toca otro (o crea uno nuevo, o usa algo de toda la cuenta como webhooks).
- `resource_missing` (404): No existe un objeto con ese id (o es de otro emisor o del otro modo).

Y los de cualquier llamada (llave, campos, límites): https://fiscalisto.com/docs/api/errores.md.
