# Event catalog

> Every event webhooks, Zapier, Make, n8n and AI assistants receive, what it means, the personal data it carries and an example of each.

Every delivery is one **event**: something that happened, with the fields an automation needs. This page is generated from the definitions the apps use, so it always matches what you receive.

## Every delivery looks the same {#envelope}

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "<app>.<thing>.<what happened>",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "<app>",
  "subject": { "type": "<thing>", "id": "<its id>" },
  "data": {}
}
```

- `id` identifies the event: retries and resends carry the same one, so use it to skip repeats.
- `subject` is what the event is about. Events about the same subject (one conversation, one contact) are produced in order; deliveries can still arrive out of order, so order them by `timestamp`.
- `data` holds the event's own fields, below.

## Versions and changes {#versions}

We add fields to `data` without notice, so ignore the ones you don't know. Removing a field or changing what it means bumps the event's `version`, so code that checks it is never surprised.

## Personal data {#personal-data}

Events carry as little personal data as they can: ids, states and the fields an automation needs. A field marked **Personal data** below is there because the event is about that person (who wrote in, who answered). Events never carry passwords, secrets or payment card data.

We keep each event for the time shown with it (30 days for most, 7 for messages and scans), then delete it with its deliveries. When a person or a contact is deleted, so are their events. What you received is yours to protect: keep only what you need.

## At a glance {#index}

**Ñomongeta**

| Event | What happened |
| --- | --- |
| [`nomongeta.conversation.started`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-conversation-started) | Conversation started |
| [`nomongeta.conversation.closed`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-conversation-closed) | Conversation closed |
| [`nomongeta.message.received`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-message-received) | Message received |
| [`nomongeta.message.sent`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-message-sent) | Message sent |
| [`nomongeta.handoff.requested`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-handoff-requested) | Handed to a person |
| [`nomongeta.handoff.assigned`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-handoff-assigned) | Handoff assigned |
| [`nomongeta.flow.run.completed`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-flow-run-completed) | Flow run completed |
| [`nomongeta.flow.run.failed`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-flow-run-failed) | Flow run failed |
| [`nomongeta.contact.created`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-contact-created) | Contact created |
| [`nomongeta.contact.updated`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-contact-updated) | Contact changed |
| [`nomongeta.lead.captured`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#nomongeta-lead-captured) | Lead captured |

**Plan and payments**

| Event | What happened |
| --- | --- |
| [`account.subscription.created`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#account-subscription-created) | Plan subscribed |
| [`account.subscription.updated`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#account-subscription-updated) | Subscription changed |
| [`account.subscription.canceled`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#account-subscription-canceled) | Subscription ended |
| [`account.payment.succeeded`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#account-payment-succeeded) | Payment received |
| [`account.payment.failed`](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/integrations/events#account-payment-failed) | Payment failed |

## Ñomongeta {#events-nomongeta}

Sent to the workspace's webhooks in Ñomongeta.

### `nomongeta.conversation.started` {#nomongeta-conversation-started}

**Conversation started.** A new conversation started with one of the workspace's agents.

- About: `conversation`
- Personal data: none
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.conversationId` | id (uuid) | — |
| `data.agentId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.connectionId` | id (uuid) or null | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.conversation.started",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "agentId": "a9e1b2c3-d4e5-4f60-8a7b-9c0d1e2f3a4b",
    "channel": "whatsapp",
    "connectionId": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
  }
}
```

### `nomongeta.conversation.closed` {#nomongeta-conversation-closed}

**Conversation closed.** A conversation was closed by a flow or by a team member.

- About: `conversation`
- Personal data: none
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.conversationId` | id (uuid) | — |
| `data.contactId` | id (uuid) or null | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.closedBy` | text | One of `flow`, `member` |
| `data.memberUserId` | text or null | Up to 100 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.conversation.closed",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "contactId": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
    "channel": "whatsapp",
    "closedBy": "member",
    "memberUserId": "usr_2Qk9"
  }
}
```

### `nomongeta.message.received` {#nomongeta-message-received}

**Message received.** A contact sent a message (WhatsApp, e-mail or the web chat).

- About: `conversation`
- Personal data: `text`
- Kept for: 7 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.messageId` | id (uuid) | — |
| `data.conversationId` | id (uuid) | — |
| `data.contactId` | id (uuid) or null | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.text` | text | Personal data · Up to 4000 characters |
| `data.truncated` | true / false | — |
| `data.hasMedia` | true / false | — |
| `data.choiceId` | text or null | Up to 200 characters |
| `data.receivedAt` | date and time (ISO 8601, UTC) | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.message.received",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "messageId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "contactId": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
    "channel": "whatsapp",
    "text": "Hi! Do you open on Saturdays?",
    "truncated": false,
    "hasMedia": false,
    "choiceId": null,
    "receivedAt": "2026-10-04T12:00:00.000Z"
  }
}
```

### `nomongeta.message.sent` {#nomongeta-message-sent}

**Message sent.** The workspace answered a contact: the agent, a flow, the AI or a team member.

- About: `conversation`
- Personal data: `text`
- Kept for: 7 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.messageId` | id (uuid) | — |
| `data.conversationId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.source` | text | Who wrote it: `agent` (an AI agent), `flow`, `ai` (a flow's AI step), `human` (a team member) or `integration` (sent through the API). · One of `agent`, `flow`, `ai`, `human`, `integration` |
| `data.text` | text | Personal data · Up to 4000 characters |
| `data.truncated` | true / false | — |
| `data.template` | text or null | Up to 200 characters |
| `data.sentAt` | date and time (ISO 8601, UTC) | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.message.sent",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "messageId": "f2a3b4c5-d6e7-4f8a-9b0c-1d2e3f4a5b6c",
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "channel": "whatsapp",
    "source": "ai",
    "text": "Yes — 9am to 1pm on Saturdays.",
    "truncated": false,
    "template": null,
    "sentAt": "2026-10-04T12:00:02.000Z"
  }
}
```

### `nomongeta.handoff.requested` {#nomongeta-handoff-requested}

**Handed to a person.** A conversation was handed to a person (by a flow step, the AI or a member taking it over).

- About: `conversation`
- Personal data: `reason`
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.conversationId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.source` | text | One of `flow`, `ai`, `agent`, `member`, `owner`, `system` |
| `data.reason` | text or null | Personal data · Up to 500 characters |
| `data.team` | text or null | Up to 80 characters |
| `data.assigneeUserId` | text or null | Up to 100 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.handoff.requested",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "channel": "whatsapp",
    "source": "flow",
    "reason": "Wants to talk about a refund",
    "team": "Support",
    "assigneeUserId": null
  }
}
```

### `nomongeta.handoff.assigned` {#nomongeta-handoff-assigned}

**Handoff assigned.** A handed-off conversation got an owner (or went back to the team's queue: `assigneeUserId` null).

- About: `conversation`
- Personal data: none
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.conversationId` | id (uuid) | — |
| `data.assigneeUserId` | text or null | Up to 100 characters |
| `data.byUserId` | text or null | Up to 100 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.handoff.assigned",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "conversation",
    "id": "c0ffee00-1234-4abc-8def-0123456789ab"
  },
  "data": {
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "assigneeUserId": "usr_2Qk9",
    "byUserId": "usr_7Hn3"
  }
}
```

### `nomongeta.flow.run.completed` {#nomongeta-flow-run-completed}

**Flow run completed.** A flow run reached its end.

- About: `flow_run`
- Personal data: none
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.runId` | id (uuid) | — |
| `data.flowId` | id (uuid) | — |
| `data.flowVersion` | whole number | — |
| `data.conversationId` | id (uuid) | — |
| `data.steps` | whole number | — |
| `data.endReason` | text or null | Up to 40 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.flow.run.completed",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "flow_run",
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
  },
  "data": {
    "runId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "flowId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
    "flowVersion": 3,
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "steps": 7,
    "endReason": "end"
  }
}
```

### `nomongeta.flow.run.failed` {#nomongeta-flow-run-failed}

**Flow run failed.** A flow run stopped on an error.

- About: `flow_run`
- Personal data: none
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.runId` | id (uuid) | — |
| `data.flowId` | id (uuid) | — |
| `data.flowVersion` | whole number | — |
| `data.conversationId` | id (uuid) | — |
| `data.steps` | whole number | — |
| `data.error` | object | — |
| `data.error.code` | text | Up to 60 characters |
| `data.error.message` | text | Up to 500 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.flow.run.failed",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "flow_run",
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
  },
  "data": {
    "runId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "flowId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
    "flowVersion": 3,
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "steps": 4,
    "error": {
      "code": "http_error",
      "message": "The request returned 500"
    }
  }
}
```

### `nomongeta.contact.created` {#nomongeta-contact-created}

**Contact created.** Someone new wrote to the workspace: a contact was created.

- About: `contact`
- Personal data: `address`, `name`
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.contactId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.address` | text or null | Personal data · Phone (E.164) or e-mail; null for an anonymous web visitor. · Up to 320 characters |
| `data.name` | text or null | Personal data · Up to 120 characters |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.contact.created",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "contact",
    "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a"
  },
  "data": {
    "contactId": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
    "channel": "whatsapp",
    "address": "+5511999990000",
    "name": "Marina"
  }
}
```

### `nomongeta.contact.updated` {#nomongeta-contact-updated}

**Contact changed.** A contact's name, tags or saved fields changed.

- About: `contact`
- Personal data: `address`, `name`
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.contactId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.address` | text or null | Personal data · Phone (E.164) or e-mail; null for an anonymous web visitor. · Up to 320 characters |
| `data.name` | text or null | Personal data · Up to 120 characters |
| `data.tags` | list of text | — |
| `data.changed` | list of text | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.contact.updated",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "contact",
    "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a"
  },
  "data": {
    "contactId": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
    "channel": "whatsapp",
    "address": "+5511999990000",
    "name": "Marina Souza",
    "tags": [
      "lead",
      "dentistry"
    ],
    "changed": [
      "name",
      "tags"
    ]
  }
}
```

### `nomongeta.lead.captured` {#nomongeta-lead-captured}

**Lead captured.** A flow saved answers on a contact (contact-scoped variables): the values it captured in this step.

- About: `contact`
- Personal data: `address`, `name`, `fields`
- Kept for: 30 days
- Version: 1

| Field | Type | Notes |
| --- | --- | --- |
| `data.contactId` | id (uuid) | — |
| `data.channel` | text | `web`, `whatsapp` or `email`. · Up to 20 characters |
| `data.address` | text or null | Personal data · Phone (E.164) or e-mail; null for an anonymous web visitor. · Up to 320 characters |
| `data.name` | text or null | Personal data · Up to 120 characters |
| `data.conversationId` | id (uuid) | — |
| `data.runId` | id (uuid) | — |
| `data.flowId` | id (uuid) | — |
| `data.fields` | object | Personal data |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "nomongeta.lead.captured",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "nomongeta",
  "subject": {
    "type": "contact",
    "id": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a"
  },
  "data": {
    "contactId": "d1e2f3a4-b5c6-4d7e-8f9a-0b1c2d3e4f5a",
    "channel": "whatsapp",
    "address": "+5511999990000",
    "name": "Marina Souza",
    "conversationId": "c0ffee00-1234-4abc-8def-0123456789ab",
    "runId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "flowId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
    "fields": {
      "email": "marina@example.com",
      "company": "Sorriso Clinic"
    }
  }
}
```

## Plan and payments {#events-account}

Plans and payments. A personal app's webhooks get only the payments made in that app; a workspace's get its subscription and its payments.

### `account.subscription.created` {#account-subscription-created}

**Plan subscribed.** A plan was subscribed to.

- About: `subscription`
- Personal data: none
- Kept for: 30 days
- Version: 1
- Can be picked in: Ñomongeta

| Field | Type | Notes |
| --- | --- | --- |
| `data.subscriptionId` | text | Stripe's subscription id (`sub_…`). · Up to 100 characters |
| `data.planId` | id (uuid) | — |
| `data.status` | text | Stripe's status: `active`, `trialing`, `past_due`, `canceled`… · Up to 40 characters |
| `data.interval` | text | Up to 10 characters |
| `data.price` | object | — |
| `data.price.amountMinor` | whole number | — |
| `data.price.currency` | text | — |
| `data.currentPeriodEnd` | date and time (ISO 8601, UTC) or null | — |
| `data.cancelAtPeriodEnd` | true / false | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "account.subscription.created",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "account",
  "subject": {
    "type": "subscription",
    "id": "sub_1Q2w3E4r5T6y"
  },
  "data": {
    "subscriptionId": "sub_1Q2w3E4r5T6y",
    "planId": "0a1b2c3d-4e5f-4a6b-8c7d-8e9f0a1b2c3d",
    "status": "active",
    "interval": "month",
    "price": {
      "amountMinor": 19900,
      "currency": "BRL"
    },
    "currentPeriodEnd": "2026-11-04T12:00:00.000Z",
    "cancelAtPeriodEnd": false
  }
}
```

### `account.subscription.updated` {#account-subscription-updated}

**Subscription changed.** A subscription changed: plan, status, renewal date or cancel-at-period-end.

- About: `subscription`
- Personal data: none
- Kept for: 30 days
- Version: 1
- Can be picked in: Ñomongeta

| Field | Type | Notes |
| --- | --- | --- |
| `data.subscriptionId` | text | Stripe's subscription id (`sub_…`). · Up to 100 characters |
| `data.planId` | id (uuid) | — |
| `data.status` | text | Stripe's status: `active`, `trialing`, `past_due`, `canceled`… · Up to 40 characters |
| `data.interval` | text | Up to 10 characters |
| `data.price` | object | — |
| `data.price.amountMinor` | whole number | — |
| `data.price.currency` | text | — |
| `data.currentPeriodEnd` | date and time (ISO 8601, UTC) or null | — |
| `data.cancelAtPeriodEnd` | true / false | — |
| `data.changed` | list of text | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "account.subscription.updated",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "account",
  "subject": {
    "type": "subscription",
    "id": "sub_1Q2w3E4r5T6y"
  },
  "data": {
    "subscriptionId": "sub_1Q2w3E4r5T6y",
    "planId": "0a1b2c3d-4e5f-4a6b-8c7d-8e9f0a1b2c3d",
    "status": "active",
    "interval": "month",
    "price": {
      "amountMinor": 19900,
      "currency": "BRL"
    },
    "currentPeriodEnd": "2026-12-04T12:00:00.000Z",
    "cancelAtPeriodEnd": true,
    "changed": [
      "cancellation"
    ]
  }
}
```

### `account.subscription.canceled` {#account-subscription-canceled}

**Subscription ended.** A subscription ended (canceled now, or at the end of its period).

- About: `subscription`
- Personal data: none
- Kept for: 30 days
- Version: 1
- Can be picked in: Ñomongeta

| Field | Type | Notes |
| --- | --- | --- |
| `data.subscriptionId` | text | Stripe's subscription id (`sub_…`). · Up to 100 characters |
| `data.planId` | id (uuid) | — |
| `data.status` | text | Stripe's status: `active`, `trialing`, `past_due`, `canceled`… · Up to 40 characters |
| `data.interval` | text | Up to 10 characters |
| `data.price` | object | — |
| `data.price.amountMinor` | whole number | — |
| `data.price.currency` | text | — |
| `data.currentPeriodEnd` | date and time (ISO 8601, UTC) or null | — |
| `data.cancelAtPeriodEnd` | true / false | — |
| `data.endedAt` | date and time (ISO 8601, UTC) or null | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "account.subscription.canceled",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "account",
  "subject": {
    "type": "subscription",
    "id": "sub_1Q2w3E4r5T6y"
  },
  "data": {
    "subscriptionId": "sub_1Q2w3E4r5T6y",
    "planId": "0a1b2c3d-4e5f-4a6b-8c7d-8e9f0a1b2c3d",
    "status": "canceled",
    "interval": "month",
    "price": {
      "amountMinor": 19900,
      "currency": "BRL"
    },
    "currentPeriodEnd": "2026-12-04T12:00:00.000Z",
    "cancelAtPeriodEnd": false,
    "endedAt": "2026-12-04T12:00:00.000Z"
  }
}
```

### `account.payment.succeeded` {#account-payment-succeeded}

**Payment received.** A payment went through: a plan's invoice, an invitation plan, QR credits or an unlock.

- About: `payment`
- Personal data: none
- Kept for: 30 days
- Version: 1
- Can be picked in: Ñomongeta

| Field | Type | Notes |
| --- | --- | --- |
| `data.paymentId` | id (uuid) | — |
| `data.product` | text | One of `nomongeta` · Up to 40 characters |
| `data.source` | text | Up to 20 characters |
| `data.amount` | object | — |
| `data.amount.amountMinor` | whole number | — |
| `data.amount.currency` | text | — |
| `data.description` | text or null | Up to 200 characters |
| `data.paidAt` | date and time (ISO 8601, UTC) | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "account.payment.succeeded",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "account",
  "subject": {
    "type": "payment",
    "id": "1f2e3d4c-5b6a-4987-8a6b-5c4d3e2f1a0b"
  },
  "data": {
    "paymentId": "1f2e3d4c-5b6a-4987-8a6b-5c4d3e2f1a0b",
    "product": "nomongeta",
    "source": "stripe",
    "amount": {
      "amountMinor": 4990,
      "currency": "BRL"
    },
    "description": "Plan: premium",
    "paidAt": "2026-10-04T12:00:00.000Z"
  }
}
```

### `account.payment.failed` {#account-payment-failed}

**Payment failed.** A subscription's renewal couldn't be charged; the plan keeps working until the grace period ends.

- About: `subscription`
- Personal data: none
- Kept for: 30 days
- Version: 1
- Can be picked in: Ñomongeta

| Field | Type | Notes |
| --- | --- | --- |
| `data.subscriptionId` | text | Up to 100 characters |
| `data.invoiceId` | text | Up to 100 characters |
| `data.price` | object | — |
| `data.price.amountMinor` | whole number | — |
| `data.price.currency` | text | — |
| `data.graceEndsAt` | date and time (ISO 8601, UTC) or null | — |

```json
{
  "id": "5d0c6f2e-1b7a-4e3c-8f9d-2a1b3c4d5e6f",
  "type": "account.payment.failed",
  "timestamp": "2026-10-04T12:00:00.000Z",
  "version": 1,
  "app": "account",
  "subject": {
    "type": "subscription",
    "id": "sub_1Q2w3E4r5T6y"
  },
  "data": {
    "subscriptionId": "sub_1Q2w3E4r5T6y",
    "invoiceId": "in_1Q2w3E4r5T6y",
    "price": {
      "amountMinor": 19900,
      "currency": "BRL"
    },
    "graceEndsAt": "2026-10-11T12:00:00.000Z"
  }
}
```
