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

# CustomerCompensation

> The schema definition for the CustomerCompensation resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation.

## Specific attributes

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

applied\_at

timestamp

public

Timestamp when the customer compensation was applied.

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

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

applied\_ref\_id

uuid

public

The applied ref ID of the customer compensation.

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

applied\_ref\_type

varchar

public

The applied ref type of the customer compensation.

**Rules**: Max length: 100 characters

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

apply\_attempts

integer

default:"0"

public

required

The apply attempts of the customer compensation.

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

apply\_last\_error

text

public

The apply last error of the customer compensation.

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

apply\_next\_at

timestamp

public

Timestamp when the customer compensation was apply next.

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

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

apply\_retryable

boolean

public

Indicates whether apply retryable applies to the customer compensation.

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

currency

varchar

public

required

The currency of the customer compensation.

**Rules**: Max length: 3 characters

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

customer\_choice

jsonb

public

The customer choice of the customer compensation.

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

customer\_contact

varchar

public

required

The customer contact of the customer compensation.

**Rules**: Possible values: contacted, no\_contact. Max length: 20 characters

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

escalated\_at

timestamp

public

Timestamp when the customer compensation was escalated.

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

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

escalation\_due\_at

timestamp

public

Timestamp when the customer compensation was escalation due.

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

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

evidence\_verdict

varchar

public

The evidence verdict of the customer compensation.

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

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

expires\_at

timestamp

public

Timestamp when the customer compensation was expires.

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

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

justification

text

public

The justification of the customer compensation.

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

notify\_customer

boolean

default:"true"

public

required

Indicates whether notify customer applies to the customer compensation.

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

offered\_options

jsonb

public

The offered options of the customer compensation.

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

payload

jsonb

public

required

The payload of the customer compensation.

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

request\_hash

varchar

public

required

The request hash of the customer compensation.

**Rules**: Max length: 64 characters

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

required\_tier

PgSmallInt

public

required

The required tier of the customer compensation.

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

revoked\_at

timestamp

public

Timestamp when the customer compensation was revoked.

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

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

revoke\_reason

text

public

The revoke reason of the customer compensation.

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

rule\_results

jsonb

public

required

The rule results of the customer compensation.

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

rule\_set\_version

integer

default:"0"

public

required

The rule set version of the customer compensation.

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

stale\_at

timestamp

public

Timestamp when the customer compensation was stale.

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

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

status

varchar

default:"pending\_approval"

public

required

The status of the customer compensation.

**Rules**: Possible values: applied, approved, cancelled, expired, failed, pending\_approval, rejected, revoked. Max length: 30 characters

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

type\_version

integer

public

required

The type version of the customer compensation.

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

units

integer

public

required

The units of the customer compensation.

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

unit\_value

numeric

public

required

The unit value of the customer compensation.

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

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

value

numeric

public

The value of the customer compensation.

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

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

value\_basis

jsonb

public

required

The value basis of the customer compensation.

## Foreign keys

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

account

uuid

public

required

Reference to the Account this customer compensation belongs to. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

case

uuid

public

required

Reference to the Customer Compensation Case this customer compensation belongs to. [Ref: Customer Compensation Case Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-case.md)

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

case\_subject

uuid

public

required

Reference to the Customer Compensation Case Subject this customer compensation belongs to. [Ref: Customer Compensation Case Subject Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-case-subject.md)

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

incident

uuid

public

Optional reference to the Customer Compensation Incident associated with the customer compensation. [Ref: Customer Compensation Incident Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-incident.md)

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

revoked\_by

uuid

public

Optional reference to the Users associated with the customer compensation.

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

type

uuid

public

required

Reference to the Customer Compensation Type this customer compensation belongs to. [Ref: Customer Compensation Type Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-type.md)

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

user\_requested

uuid

public

Optional reference to the Users associated with the customer compensation.

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