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

# CustomerCompensationType

> The schema definition for the CustomerCompensationType resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation type.

## Specific attributes

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

account\_max\_value

numeric

default:"30000"

public

required

The account max value of the customer compensation type.

**Rules**: Precision: 14, Scale: 2

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

account\_rolling\_days

integer

default:"30"

public

required

The account rolling days of the customer compensation type.

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

benefit\_config

jsonb

public

required

The benefit config of the customer compensation type.

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

benefit\_kind

varchar

public

required

The benefit kind of the customer compensation type.

**Rules**: Possible values: club\_coupon, coupon\_account, courtesy\_restore, credit\_note, recharge\_bonus, recharge\_restore, refund. Max length: 50 characters

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

currency

varchar

default:"CLP"

public

required

The currency of the customer compensation type.

**Rules**: Max length: 3 characters

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

fallback\_unit\_value

numeric

public

The fallback unit value of the customer compensation type.

**Rules**: Precision: 14, Scale: 2

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

forced\_tier

PgSmallInt

public

The forced tier of the customer compensation type.

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

internal

varchar

public

required

The internal of the customer compensation type.

**Rules**: Max length: 100 characters

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

is\_current

boolean

default:"true"

public

required

Indicates whether the customer compensation type is current.

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

max\_units

integer

default:"5"

public

required

The max units of the customer compensation type.

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

max\_units\_per\_period

integer

default:"10"

public

required

The max units per period of the customer compensation type.

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

max\_units\_per\_request

integer

default:"5"

public

required

The max units per request of the customer compensation type.

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

min\_units

integer

default:"1"

public

required

The min units of the customer compensation type.

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

name\_en

varchar

public

required

The name en of the customer compensation type.

**Rules**: Max length: 150 characters

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

name\_es

varchar

public

required

The name es of the customer compensation type.

**Rules**: Max length: 150 characters

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

required\_evidence

varchar

public

The required evidence of the customer compensation type.

**Rules**: Possible values: confirmed, contradicted, not\_supported, probable. Max length: 50 characters

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

tier1\_max\_value

numeric

default:"10000"

public

required

The tier1 max value of the customer compensation type.

**Rules**: Precision: 14, Scale: 2

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

tier2\_max\_value

numeric

default:"50000"

public

required

The tier2 max value of the customer compensation type.

**Rules**: Precision: 14, Scale: 2

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

valuation\_method

varchar

public

required

The valuation method of the customer compensation type.

**Rules**: Possible values: amount, coupon\_value, plan\_unit\_value. Max length: 50 characters

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

version

integer

default:"1"

public

required

The version of the customer compensation type.

## Foreign keys

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

business\_unit

uuid

public

Optional reference to the Business Unit associated with the customer compensation type. [Ref: Business Unit Schema](https://docs.bbrands.io/schemas/product/business-unit.md)

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

user\_saved

uuid

public

Optional reference to the Users associated with the customer compensation type.

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