> ## 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` field. The `data.object` shape depends on the event type. For update events, `data.changes` shows the fields that changed; created events don't include `data.changes`. Deleted events keep the `resource` link but don't include the resource object, so their `data` is an empty array.

These examples are shortened to focus on the event structure.

## Timestamps

The event's `createdAt` and `updatedAt` use the `YYYY-MM-DD HH:MM:SS` format in UTC, with no timezone designator, for example `2026-06-16 14:30:00`. The format of timestamps inside `data.object` depends on the resource.

When a date field changes, `data.changes` reports its `old` and `new` values in ISO 8601 format in UTC, with microseconds:

```json theme={null}
"changes": {
  "updatedAt": {
    "old": "2026-06-16T14:30:00.000000Z",
    "new": "2026-06-16T14:31:00.000000Z"
  }
}
```

## 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": "VIGENTE",
      "total": 1250.0,
      "createdAt": "2026-06-16 14:30:00",
      "updatedAt": "2026-06-16 14:30:00"
    }
  },
  "createdAt": "2026-06-16 14:30:00",
  "updatedAt": "2026-06-16 14:30:00"
}
```

## 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",
      "createdAt": "2026-06-10 09:05:12",
      "updatedAt": "2026-06-16 14:31:00"
    },
    "changes": {
      "status": {
        "old": "pending",
        "new": "valid"
      }
    }
  },
  "createdAt": "2026-06-16 14:31:00",
  "updatedAt": "2026-06-16 14:31:00"
}
```

## 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": [],
  "createdAt": "2026-06-16 14:32:00",
  "updatedAt": "2026-06-16 14:32:00"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.