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

# Compensation catalogue

> The Customer care catalogue editor: problems, compensation types, the problem–type table, automatic rules, priorities, causes, settings with the business hours and the holiday calendar; every change saves a new version.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/customer-care/catalogue` |
| Menu | Customer care › Operations › **Catalogue** |
| Role | Administrator (edits); every module role reads |
| Permission | `customer-compensation-priority:find-all` to open the screen; each resource's `find-all` to read it and its `update` to edit it |
| Feature flag | `customer-compensation` |
| Last verified | 2026-11-24 against `develop` (`060621220`) |

## What it is for

"Problems, types, rules, priorities, causes, settings and holidays. Every change saves a new version." It is where you
decide what can be claimed, what can be given, when it is approved automatically, how long each priority takes and
which days do not count, without changing code.

## How to get there

* Side menu → **Operations** › **Catalogue**.

## What you see

> [!NOTE]
>
> The screenshots of this screen are added with the manual's first capture (desktop, light theme).

| # | Tab | What it holds |
| - | - | - |
| 1 | **Problems** | Each problem with its business unit, subject type, verifier, required evidence, default priority and cause |
| 2 | **Compensation types** | Each benefit with its kind (Recharge restore, Bonus recharge, Courtesy restore, Account coupon, Club coupon, Refund, Credit note), valuation method, fallback value, minimum and maximum units, tier 1 and 2 caps, forced tier and per-account caps |
| 3 | **Problem–type** | Which benefit is allowed for each problem and with which verdicts |
| 4 | **Automatic rules** | Each type's rule set, with its version ("Set v{version}") |
| 5 | **Priorities** | First-response and resolution minutes, and the clock (**Business hours** or **24/7 (calendar)**) |
| 6 | **Causes** | Machine, Software, Payment, Logistics, Customer care, Partner |
| 7 | **Settings** | Operational values, global or per business unit, including the **Business hours** |
| 8 | **Holidays** | The calendar of days the business-hours clock skips |

On each tab: **Filter by code or name**, the table with **Version** and **Status**, and per row **Edit {entry}** and
**History of {entry}**. Without edit permission you see the notice "Read only" · "Only an administrator edits the
catalogue. You can review the entries and their history."

## Step by step

**1. Edit an entry**

On the tab, press **Edit {entry}**. Change the fields, type the **Reason for the change** (optional: "It is kept in
the audit of the change.") and press **Save version**: "Save version {version}; the previous one stays in the
history." You see "Version saved".

**2. Create an entry**

**New {resource}** → fill in the **Internal code**, the Spanish and English names and the resource's fields →
**Create**.

**3. Review the history**

**History of {entry}** shows every version, latest first, with who saved it and what changed.

**4. Adjust a type's automatic rules**

In **Automatic rules**, edit the type's set: **Add a rule**, its parameters and whether it is a **Hard rule
(blocks the request when it fails)**; **Remove {rule}** to take it out. "Saving replaces the current set with a
new version number."

**5. Change the business hours**

In **Settings**, edit **Business hours**: **Working days**, **Start**, **End** and **Time zone**. "High priority
runs 24/7. Calendar holidays do not count."

**6. Add a holiday**

In **Holidays**, choose the **Year** and press **Add holiday**: **Date**, **Name**, **Country** and **Scope**
("Without a business unit it applies to every one of the country."). To remove it, **Delete {name}**; **Show
deleted** shows the removed ones.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only the Administrator role edits the catalogue: the `update` permissions of its resources are never in the module roles nor in the Agent, Supervisor or Manager roles |
| R-02 | Every save is a new version; the previous one stays in the history and nothing is deleted |
| R-03 | A request freezes the type's and the rule set's version: editing the catalogue never changes a pending request |
| R-04 | An empty rule set means the type is never approved automatically |
| R-05 | Available rules: **Minimum evidence**, **Maximum value**, **Maximum units**, **Subject not compensated**, **Account cooldown**, **Account in good standing**, **Daily automatic budget** |
| R-06 | Changing the business hours or adding or deleting a holiday affects later computations only: "Due dates already stored are not recomputed." |
| R-07 | A holiday without a business unit applies to every unit of the country; with a unit, only to that one |
| R-08 | Settings can be global or per business unit; the unit's value wins over the global one |
| R-09 | Initial values: high priority 60/240 minutes 24/7, medium 240/1,440 and low 1,440/4,320 in business hours; Monday to Friday 09:00 to 18:00, America/Santiago; tier caps CLP 10,000 and 50,000; refund and credit note with forced tier 3; 10 files of 20 MB per case; automatic close after 7 days; escalation after 24 business hours; expiry after 7 days; daily budget MaihueGO CLP 20,000 and Club CLP 10,000 |

## States and messages

| Situation | What you see |
| - | - |
| Version saved | "Version saved" · "{entry} was updated." |
| No changes | "You did not change any field." |
| Holiday added / deleted | "Holiday added" / "Holiday deleted" |
| No entries | "There are no entries." |
| No holidays in the year | "There are no holidays this year." |
| Read error | "We could not load the catalogue." with **Retry** |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The benefit configuration is not valid for its kind." | The configuration JSON does not match the type's schema | `422 compensation:invalid_config` | Fix the JSON |
| "A reference (priority, cause, problem or type) does not exist or is not current." | It points to an inactive or missing entry | `422 compensation:catalogue_reference_invalid` | Choose a current one |
| "The JSON is not valid." / "It must be a JSON object." | Format error | — | Check the text |
| "The end time must be after the start time." | Hours mistyped | — | Fix the hours |
| "The rule is repeated." | The same rule twice in the set | — | Remove the repeat |
| "You do not have permission for this action." | Missing the resource's `update` | `403` | Only an administrator edits |

## Why it works this way

Versioning every entry tells you with which rules each compensation was approved and who changed what. Only an
administrator editing keeps whoever requests or approves from changing the rules that apply to them. Already computed
dates do not move so commitments made to customers do not change.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/components/screens/customer-care/catalogue-screen.tsx`, `lib/features/customer-compensation/presentation/components/catalogue/**` |
| API | `GET /api/v3/compensation/catalogue/{resource}` (with `history=true` and `internal=…` for the history) and `PUT /api/v3/compensation/catalogue/{resource}/{internal}` (saves the next version; for holidays it adds or deletes). Resources: `problem`, `type`, `problem-type`, `auto-rule`, `priority`, `cause`, `setting`, `holiday` |
| Data | Versioned tables `customer_compensation_problem`, `_type`, `_problem_type`, `_auto_rule`, `_priority`, `_cause`, `_setting`, `_holiday` |
| Texts | `messages/{es,en}.json` › `modules.customerCare.catalogue` |

## FAQ and support cases

> [accordion] I added a holiday and a case opened earlier kept its due date
>
> That is expected: due dates are computed when the case opens and are not recomputed.

> [accordion] I want a type never to be approved automatically
>
> Leave its rule set empty: "The set is empty: this type will never be approved automatically."

> [accordion] I am a supervisor and cannot edit
>
> Only an administrator edits the catalogue. You can read the entries and their history.

## Related and history

* [Requesting a compensation](https://docs.bbrands.io/enterprise/customer-care/request-compensation.md)
* [Cases inbox](https://docs.bbrands.io/enterprise/customer-care/cases.md)

| Date | Change |
| - | - |
| 2026-11-24 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.