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

# CodeCouponAccountRedemption

> The schema definition for the CodeCouponAccountRedemption resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the code coupon account redemption.

## Specific attributes

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

consumed\_amount

numeric

public

The consumed amount of the code coupon account redemption.

**Rules**: Precision: 12, Scale: 2

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

discount\_amount

numeric

public

The discount amount of the code coupon account redemption.

**Rules**: Precision: 12, Scale: 2

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

failed\_attempts

integer

default:"0"

public

required

The failed attempts of the code coupon account redemption.

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

locked\_at

timestamp

public

Timestamp when the code coupon account redemption was locked.

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

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

qr\_token

varchar

public

The qr token of the code coupon account redemption.

**Rules**: Max length: 64 characters

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

redemption\_channel

varchar

public

required

The redemption channel of the code coupon account redemption.

**Rules**: Possible values: ecommerce\_code, qr\_enterprise, venue\_qr. Max length: 20 characters

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

redemption\_code

varchar

public

required

The redemption code of the code coupon account redemption.

**Rules**: Max length: 16 characters

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

reverted\_at

timestamp

public

Timestamp when the code coupon account redemption was reverted.

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

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

revert\_reason

varchar

public

The revert reason of the code coupon account redemption.

**Rules**: Max length: 500 characters

## Foreign keys

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

code\_coupon\_account

uuid

public

required

Reference to the Code Coupon Account this code coupon account redemption belongs to. [Ref: Code Coupon Account Schema](https://docs.bbrands.io/schemas/code/code-coupon-account.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.