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

# ReferralEcommerceCode

> The schema definition for the ReferralEcommerceCode resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the referral ecommerce code.

## Specific attributes

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

assigned\_at

timestamp

public

Timestamp when the referral ecommerce code was assigned.

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

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

code

varchar

public

required

The code of the referral ecommerce code.

**Rules**: Max length: 100 characters

## Foreign keys

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

assigned\_grant

uuid

public

Optional reference to the Referral Reward Grant Referrer associated with the referral ecommerce code. [Ref: Referral Reward Grant Referrer Schema](https://docs.bbrands.io/schemas/referral/referral-reward-grant-referrer.md)

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

assigned\_grant\_referred

uuid

public

Optional reference to the Referral Reward Grant Referred associated with the referral ecommerce code. [Ref: Referral Reward Grant Referred Schema](https://docs.bbrands.io/schemas/referral/referral-reward-grant-referred.md)

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

referral\_reward

uuid

public

required

Reference to the Referral Reward this referral ecommerce code belongs to. [Ref: Referral Reward Schema](https://docs.bbrands.io/schemas/referral/referral-reward.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.