> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntage.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Event examples

> Example event payloads for created, updated, and deleted resource events.

Every event has a `type`, the `source` that produced the event, the affected `resource`, and a `data` object. The `data.object` shape depends on the event type. For update events, `data.changes` shows the fields that changed.

These examples are shortened to focus on the event structure.

## Created event

```json theme={null}
{
  "@id": "/events/018f3f8f-4538-7bbb-b432-9e97e34a564a",
  "@type": "Event",
  "id": "018f3f8f-4538-7bbb-b432-9e97e34a564a",
  "taxpayer": {
    "@id": "/taxpayers/PEIC211118IS0",
    "@type": "Taxpayer",
    "id": "PEIC211118IS0",
    "name": "Pedro Infante Cruz"
  },
  "type": "invoice.created",
  "source": "/extractions/91106968-1abd-4d64-85c1-4e73d96fb997",
  "resource": "/invoices/7c45e9c6-8f7f-4d0e-b6e5-65fef6c8c2f9",
  "data": {
    "object": {
      "id": "7c45e9c6-8f7f-4d0e-b6e5-65fef6c8c2f9",
      "uuid": "6f3c5312-2849-4525-86f6-c48a54c64c60",
      "type": "I",
      "status": "valid",
      "total": "1250.00"
    },
    "changes": {}
  },
  "createdAt": "2026-06-16T14:30:00.000Z",
  "updatedAt": "2026-06-16T14:30:00.000Z"
}
```

## Updated event

```json theme={null}
{
  "@id": "/events/018f3f90-189a-7f31-b124-4ea7a938d682",
  "@type": "Event",
  "id": "018f3f90-189a-7f31-b124-4ea7a938d682",
  "taxpayer": {
    "@id": "/taxpayers/PEIC211118IS0",
    "@type": "Taxpayer",
    "id": "PEIC211118IS0",
    "name": "Pedro Infante Cruz"
  },
  "type": "credential.updated",
  "source": "/credentials/6a6a1f8d-41c2-4ab9-a2ce-836417ed27de",
  "resource": "/credentials/6a6a1f8d-41c2-4ab9-a2ce-836417ed27de",
  "data": {
    "object": {
      "id": "6a6a1f8d-41c2-4ab9-a2ce-836417ed27de",
      "rfc": "PEIC211118IS0",
      "type": "ciec",
      "status": "valid"
    },
    "changes": {
      "status": {
        "old": "pending",
        "new": "valid"
      }
    }
  },
  "createdAt": "2026-06-16T14:31:00.000Z",
  "updatedAt": "2026-06-16T14:31:00.000Z"
}
```

## Deleted event

```json theme={null}
{
  "@id": "/events/018f3f91-6ed2-70ba-97e8-b8dd0e61d415",
  "@type": "Event",
  "id": "018f3f91-6ed2-70ba-97e8-b8dd0e61d415",
  "taxpayer": {
    "@id": "/taxpayers/PEIC211118IS0",
    "@type": "Taxpayer",
    "id": "PEIC211118IS0",
    "name": "Pedro Infante Cruz"
  },
  "type": "link.deleted",
  "source": "/entities/91106968-1abd-4d64-85c1-4e73d96fb997",
  "resource": "/entities/91106968-1abd-4d64-85c1-4e73d96fb997",
  "data": {
    "object": {
      "id": "91106968-1abd-4d64-85c1-4e73d96fb997",
      "type": "person"
    },
    "changes": {}
  },
  "createdAt": "2026-06-16T14:32:00.000Z",
  "updatedAt": "2026-06-16T14:32:00.000Z"
}
```
