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

# CustomerCompensationCase

> The schema definition for the CustomerCompensationCase resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the customer compensation case.

## Specific attributes

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

case\_code

text

public

The case code of the customer compensation case.

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

case\_number

integer

public

required

The case number of the customer compensation case.

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

cause

varchar

public

required

The cause of the customer compensation case.

**Rules**: Max length: 50 characters

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

channel

varchar

public

required

The channel of the customer compensation case.

**Rules**: Possible values: app, email, field, phone, proactive, social, whatsapp. Max length: 20 characters

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

closed\_at

timestamp

public

Timestamp when the customer compensation case was closed.

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

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

contact\_anonymized\_at

timestamp

public

Timestamp when the customer compensation case was contact anonymized.

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

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

contact\_email

varchar

public

The contact email of the customer compensation case.

**Rules**: Max length: 255 characters

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

contact\_name

varchar

public

The contact name of the customer compensation case.

**Rules**: Max length: 250 characters

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

contact\_phone

varchar

public

The contact phone of the customer compensation case.

**Rules**: Max length: 50 characters

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

customer\_present

boolean

public

Indicates whether customer present applies to the customer compensation case.

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

description

text

public

The description of the customer compensation case.

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

dismiss\_reason

text

public

The dismiss reason of the customer compensation case.

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

due\_at

timestamp

public

Timestamp when the customer compensation case was due.

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

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

ended\_at

timestamp

public

Timestamp when the customer compensation case was ended.

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

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

external\_reference

varchar

public

The external reference of the customer compensation case.

**Rules**: Max length: 250 characters

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

external\_source

varchar

public

The external source of the customer compensation case.

**Rules**: Possible values: odoo. Max length: 20 characters

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

first\_response\_at

timestamp

public

Timestamp when the customer compensation case was first response.

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

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

merged\_at

timestamp

public

Timestamp when the customer compensation case was merged.

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

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

priority

varchar

public

required

The priority of the customer compensation case.

**Rules**: Max length: 50 characters

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

problem\_version

integer

public

required

The problem version of the customer compensation case.

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

resolution

text

public

The resolution of the customer compensation case.

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

resolved\_at

timestamp

public

Timestamp when the customer compensation case was resolved.

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

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

response\_breached\_at

timestamp

public

Timestamp when the customer compensation case was response breached.

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

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

response\_due\_at

timestamp

public

Timestamp when the customer compensation case was response due.

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

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

sla\_breached\_at

timestamp

public

Timestamp when the customer compensation case was sla breached.

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

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

status

varchar

default:"new"

public

required

The status of the customer compensation case.

**Rules**: Possible values: assigned, closed, dismissed, investigating, merged, new, resolved, waiting\_customer. Max length: 30 characters

## Foreign keys

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

account

uuid

public

Optional reference to the Account associated with the customer compensation case. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

alert

uuid

public

Optional reference to the Alert associated with the customer compensation case. [Ref: Alert Schema](https://docs.bbrands.io/schemas/alert/alert.md)

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

assigned\_to

uuid

public

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

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

business\_unit

uuid

public

required

Reference to the Business Unit this customer compensation case belongs to. [Ref: Business Unit Schema](https://docs.bbrands.io/schemas/product/business-unit.md)

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

incident

uuid

public

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

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

maihue\_street\_machine

uuid

public

Optional reference to the Maihue Street Machine associated with the customer compensation case. [Ref: Maihue Street Machine Schema](https://docs.bbrands.io/schemas/maihue-street/maihue-street-machine.md)

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

merged\_into

uuid

public

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

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

opened\_by

uuid

public

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

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

organization

uuid

public

Optional reference to the Account associated with the customer compensation case. [Ref: Account Schema](https://docs.bbrands.io/schemas/account/account.md)

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

problem

uuid

public

required

Reference to the Customer Compensation Problem this customer compensation case belongs to. [Ref: Customer Compensation Problem Schema](https://docs.bbrands.io/schemas/compensation/customer-compensation-problem.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.