# List deliveries

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

What happened with each event on this webhook, most recent first: one row per event with its last attempt, how many it's had and when the next retry is. With succeeded=false you see those your server didn't receive, to resend them with POST /v1/events/{id}/resend.

## Before you call

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

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |
| `limit` | query |  | How many per page, from 1 to 100. 10 by default. |
| `starting_after` | query |  | The id of the last one on the previous page, for the next one. |
| `succeeded` | query |  | false: only those that failed on their last attempt. true: only those that arrived. |

## With the TypeScript SDK

```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);
}
```

## With the Python SDK

```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"])
```

## With the PHP SDK

```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";
}
```

## With the .NET SDK

```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);
```

## With the Go SDK

```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)
	}
}
```

## With the Java SDK

```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());
}
```

## Response 200

OK.

A `WebhookDeliveryList` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"list"` | yes | What kind of object it is («invoice», «customer»…). |
| `data` | array of object | yes | The objects on this page. |
| `data[].object` | `"webhook_delivery"` | yes | What kind of object it is («invoice», «customer»…). |
| `data[].id` | string | yes | The last attempt (whd_…). Use it in starting_after for the next page. |
| `data[].webhook_endpoint` | string | yes | The webhook (whe_…). |
| `data[].event` | string | yes | The event (evt_…). Resend it with POST /v1/events/{id}/resend. |
| `data[].event_type` | string or null | yes | The event type (invoice.stamped…). |
| `data[].succeeded` | boolean | yes | true if your server answered 2xx on the last attempt. |
| `data[].status` | integer or null | yes | The HTTP code your server answered; null if it couldn't connect. |
| `data[].error` | string or null | yes | What failed (timeout, DNS, or the start of its response); null if it arrived. |
| `data[].duration_ms` | integer | yes | How long your server took to answer the last attempt. (from -9007199254740991 to 9007199254740991) |
| `data[].attempts` | integer | yes | How many times it has been sent to this webhook, resends included. (from -9007199254740991 to 9007199254740991) |
| `data[].resent` | boolean | yes | true if the last attempt was a resend (POST /v1/events/{id}/resend). |
| `data[].test` | boolean | yes | true if it is a test event (POST /v1/webhook_endpoints/{id}/test); it isn't retried. |
| `data[].created_at` | string (date-time) | yes | When the last attempt was. |
| `data[].next_retry_at` | string (date-time) or null | yes | When the next automatic retry goes; null if it arrived or there are no more. |
| `has_more` | boolean | yes | true if there are more: request the next one with starting_after set to the id of the last one. |
| `url` | string | yes | This list's path. |

```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"
}
```

## Errors

- `key_restricted` (403): 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).
- `resource_missing` (404): 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): https://fiscalisto.com/en/docs/api/errores.md.
