> ## 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.

# CodeCouponEventTriggerGrant

> The schema definition for the CodeCouponEventTriggerGrant resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the code coupon event trigger grant.

## Specific attributes

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

event\_type

varchar

public

required

The event type of the code coupon event trigger grant.

**Rules**: Max length: 200 characters

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

grant\_number

integer

public

The grant number of the code coupon event trigger grant.

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

reason

varchar

public

The reason of the code coupon event trigger grant.

**Rules**: Max length: 500 characters

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

status

varchar

public

required

The status of the code coupon event trigger grant.

**Rules**: Possible values: failed, granted, limit\_reached, reserved, sold\_out. Max length: 20 characters

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

subject\_id

uuid

public

The subject ID of the code coupon event trigger grant.

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

subject\_type

varchar

public

The subject type of the code coupon event trigger grant.

**Rules**: Max length: 50 characters

## Foreign keys

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

account

uuid

public

required

Reference to the Account this code coupon event trigger grant belongs to. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

code\_coupon

uuid

public

required

Reference to the Code Coupon this code coupon event trigger grant belongs to. [Ref: Code Coupon Schema](https://docs.bbrands.io/schemas/code/code-coupon.md)

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

code\_coupon\_account

uuid

public

Optional reference to the Code Coupon Account associated with the code coupon event trigger grant. [Ref: Code Coupon Account Schema](https://docs.bbrands.io/schemas/code/code-coupon-account.md)

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

code\_coupon\_event\_trigger

uuid

public

required

Reference to the Code Coupon Event Trigger this code coupon event trigger grant belongs to. [Ref: Code Coupon Event Trigger Schema](https://docs.bbrands.io/schemas/code/code-coupon-event-trigger.md)

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

code\_coupon\_event\_trigger\_reward

uuid

public

required

Reference to the Code Coupon Event Trigger Reward this code coupon event trigger grant belongs to. [Ref: Code Coupon Event Trigger Reward Schema](https://docs.bbrands.io/schemas/code/code-coupon-event-trigger-reward.md)

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

queue\_event

uuid

public

Optional reference to the Queue Event associated with the code coupon event trigger grant. [Ref: Queue Event Schema](https://docs.bbrands.io/schemas/queue/queue-event.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.