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

# NotificationOccurrence

> The schema definition for the NotificationOccurrence resource.

## Primary key

[Navigate to header](#param-commercial-activity)

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the notification occurrence.

## Specific attributes

[Navigate to header](#param-commercial-activity)

completed\_at

timestamp

public

Timestamp when the notification occurrence was completed.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

correlation

varchar

public

The correlation of the notification occurrence.

**Rules**: Max length: 255 characters

[Navigate to header](#param-commercial-activity)

error

jsonb

public

The error of the notification occurrence.

[Navigate to header](#param-commercial-activity)

evaluated\_at

timestamp

public

Timestamp when the notification occurrence was evaluated.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

event\_key

varchar

public

required

The event key of the notification occurrence.

**Rules**: Max length: 120 characters

[Navigate to header](#param-commercial-activity)

idempotency\_key

varchar

public

required

The idempotency key of the notification occurrence.

**Rules**: Max length: 255 characters

[Navigate to header](#param-commercial-activity)

locale

varchar

public

The locale of the notification occurrence.

**Rules**: Max length: 10 characters

[Navigate to header](#param-commercial-activity)

origin

varchar

public

required

The origin of the notification occurrence.

**Rules**: Possible values: api\_key, cron, system, user. Max length: 20 characters

[Navigate to header](#param-commercial-activity)

payload

jsonb

public

The payload of the notification occurrence.

[Navigate to header](#param-commercial-activity)

payload\_schema\_version

varchar

public

The payload schema version of the notification occurrence.

**Rules**: Max length: 64 characters

[Navigate to header](#param-commercial-activity)

reason

varchar

public

The reason of the notification occurrence.

**Rules**: Possible values: cancelled, channel-inactive, delayed, duplicate, event-inactive, expired, frequency-capped, invalid-content, invalid-payload, kill-switch, no-published-template, no-recipient, opted-out, quiet-hours, quiet-hours-expired, suppressed-complaint, suppressed-hard-bounce, suppressed-invalid-number, suppressed-manual, unreachable. Max length: 40 characters

[Navigate to header](#param-commercial-activity)

status

varchar

default:"received"

public

required

The status of the notification occurrence.

**Rules**: Possible values: completed, evaluated, failed, no-op, partially-failed, received, rejected. Max length: 20 characters

[Navigate to header](#param-commercial-activity)

subject\_id

varchar

public

The subject ID of the notification occurrence.

**Rules**: Max length: 255 characters

[Navigate to header](#param-commercial-activity)

subject\_type

varchar

public

The subject type of the notification occurrence.

**Rules**: Max length: 80 characters

## Foreign keys

[Navigate to header](#param-commercial-activity)

account

uuid

public

Optional reference to the Account associated with the notification occurrence. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

[Navigate to header](#param-commercial-activity)

actor\_user

uuid

public

Optional reference to the Users associated with the notification occurrence.

[Navigate to header](#param-commercial-activity)

api\_key

uuid

public

Optional reference to the API Key associated with the notification occurrence. [Ref: Api Key Schema](https://docs.bbrands.io/schemas/permission/api-key.md)

[Navigate to header](#param-commercial-activity)

notification\_event

uuid

public

required

Reference to the Notification Event this notification occurrence belongs to. [Ref: Notification Event Schema](https://docs.bbrands.io/schemas/notification/notification-event.md)

[Navigate to header](#param-commercial-activity)

notification\_gateway

uuid

public

Optional reference to the Notification Gateway associated with the notification occurrence. [Ref: Notification Gateway Schema](https://docs.bbrands.io/schemas/notification/notification-gateway.md)

[Navigate to header](#param-commercial-activity)

notification\_request

uuid

public

Optional reference to the Notification Request associated with the notification occurrence. [Ref: Notification Request Schema](https://docs.bbrands.io/schemas/notification/notification-request.md)

## Tracking attributes

[Navigate to header](#param-commercial-activity)

created\_at

timestamp

public

required

Timestamp when the record was created.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

deleted\_at

timestamp

public

Timestamp when the record was soft-deleted, when applicable.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

is\_actived

boolean

default:"true"

public

required

Indicates whether the record is currently active.

[Navigate to header](#param-commercial-activity)

is\_deleted

boolean

default:"false"

public

required

Indicates whether the record has been soft-deleted.

[Navigate to header](#param-commercial-activity)

updated\_at

timestamp

public

Timestamp when the record was last updated.

**Rules**: Precision: 6, with timezone


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