# WebhookDelivery

The status, attempts and timestamps for a single webhook delivery.

[Definition in OpenAPI](https://api.cadmospay.com/static/api/gateway-machine-api.json#/components/schemas/WebhookDelivery)

## JSON schema

```json
{
  "type": "object",
  "properties": {
    "deliveryId": {
      "type": "integer"
    },
    "eventId": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "attempts": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastUpdatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "sentAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextAttemptAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "outcome": {
      "type": [
        "string",
        "null"
      ]
    },
    "replayedBy": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "deliveryId",
    "eventId",
    "type",
    "status",
    "attempts",
    "createdAt",
    "lastUpdatedAt",
    "sentAt",
    "nextAttemptAt",
    "outcome",
    "replayedBy"
  ],
  "description": "The status, attempts and timestamps for a single webhook delivery.",
  "examples": [
    {
      "deliveryId": 42,
      "eventId": "test-11111111-2222-4333-8444-555555555555",
      "type": "gateway.test",
      "status": "sent",
      "attempts": 1,
      "createdAt": "2026-10-01T12:00:00Z",
      "lastUpdatedAt": "2026-10-01T12:01:00Z",
      "sentAt": "2026-10-01T12:01:00Z",
      "nextAttemptAt": null,
      "outcome": null,
      "replayedBy": null
    }
  ]
}
```
