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

# Requesting a compensation

> How to ask for a benefit from a case: the subject, the offered options and the customer's choice, the preview with the real value, automatic rules, tier and hash, the justification, the customer notice, and cancelling or retrying a request.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | Dialog on `/{locale}/customer-care/cases/{id}` |
| Menu | Case › **Request compensation** (at the top or on a subject's row) |
| Role | Customer Compensation Agent; Customer care Admin and Operator; Administrator |
| Permission | `customer-compensation:create` to request and retry; `customer-compensation:cancel` to cancel |
| Feature flag | `customer-compensation` |
| Last verified | 2026-11-24 against `develop` (`060621220`) |

## What it is for

"Choose the subject and the benefits; preview the value, the rules and the tier before confirming." Before giving
anything, the agent sees what the request is really worth, whether it is approved automatically and, if not, which
tier must approve it.

## How to get there

* Case detail → **Request compensation** (top right).
* Case detail → **Subjects** → **Request compensation** on the subject's row (it comes selected).

The button appears only when the case has a linked account, has not ended and has at least one subject.

## What you see

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

| # | Element | What it does |
| - | - | - |
| 1 | **Subject** \* | The subject to compensate, with its **Verdict** |
| 2 | Contact indicator | **Customer contacted** or **No customer contact**, from the case's channel |
| 3 | **Offered options** (with contact) | One or more options (**Option A**, **Option B**…), each with its benefits; **Add option** up to 5 |
| 3b | **Benefits** (without contact) | The benefits requested, without options |
| 4 | **Benefit**, **Units**, **Amount (CLP)** | The compensation type, how many units (1 to 5) and, for amount-valued benefits, the amount; **Add benefit** and **Remove benefit** |
| 5 | **Option the customer chose** \* | With contact only: the option the customer accepted, which is the one requested |
| 6 | **Justification** | "Required when the evidence is insufficient or contradicts the complaint." |
| 7 | **Notify the customer** | Ticked by default: the customer gets the notice when it is applied |
| 8 | **Preview** | **Automatic approval** or **Needs approval**, the hash, each benefit's value with its basis, the caps, the blockers and each automatic rule's result with the required tier |
| 9 | **Preview** and **Confirm request** | **Confirm request** only appears after a preview |

## Step by step

**1. Choose the subject**

In **Subject**, choose the one you are compensating. Its **Verdict** shows below. Each compensation covers one
subject.

**2. Record what you offered (case with contact)**

"Record the options you offered and the one the customer chose; the chosen option is requested." Build **Option
A** with its benefits (for example Restore recharge ×1 and Bonus recharge ×1) and, if you offered an alternative,
**Add option**. In **Option the customer chose**, pick the one they accepted.

**3. Or choose the benefits (case without contact)**

On a **Proactive** case, or a **Field** case without the customer present, there are no options: choose the
**Benefits** directly.

**4. Justify when needed**

When the verdict is **Not supported**, **Not verified** or **Contradicted**, write the **Justification**.

**5. Decide the notice**

Leave **Notify the customer** ticked so they get the notice with the case number, or untick it when no notice
should go.

**6. Preview**

Press **Preview**. Check the value ("Paid in the period {amount} ÷ {divisor} recharges = {unit} per recharge"), the
caps, the rules and whether it says **Automatic approval** or **Needs approval** with its tier. Any change in the
form clears the preview: preview again.

**7. Confirm**

Press **Confirm request**. You see "Compensation requested" and, for example, "It was approved automatically and is
applied." or "It waits in the approvals inbox of its tier."

### Cancel or retry

* **Cancel request** (in **Compensations**, only for **Pending approval** ones): "The pending request is cancelled
  and never applied."
* **Retry** (only for **Failed** ones): "It is retried unchanged, without a new approval." For another benefit or
  another amount, make a new request.

## Business rules

| ID | Rule |
| - | - |
| R-01 | A request needs a case with an account, not closed, dismissed or merged, and at least one subject |
| R-02 | With contact (Phone, WhatsApp, E-mail, Social media, App, or Field with the customer present) the offered options and the choice must be recorded; without contact they are not |
| R-03 | The benefits the list offers depend on the case's problem and the subject's verdict. With **Contradicted** evidence only the gesture benefits are allowed (Bonus recharge, Account coupon, Club Maihue coupon), at tier 2 or above and with a justification |
| R-04 | Real value: recharges are worth what the customer paid in the period divided by the recharges the plan includes; a courtesy uses the type's fallback value; account coupons, refunds and credit notes use the typed amount; the Club coupon uses the voucher's value. Everything in CLP, VAT included |
| R-05 | Tier by value: tier 1 up to CLP 10,000, tier 2 up to CLP 50,000 and tier 3 above. Refund and credit note always tier 3. Insufficient evidence raises one tier (at most 3) and a fraud flag needs tier 2 or above |
| R-06 | Automatic approval: every rule of the type must pass. Initial MaihueGO values: evidence at least Probable, value up to CLP 3,000, up to 2 units, no other compensation in 30 days, customer in good standing, subject not compensated and daily budget left (CLP 20,000 per day during the pilot). Maihue home and payment types have no rules: they are never approved automatically |
| R-07 | Caps per beneficiary account: 5 units per request, 10 per period and type, and CLP 30,000 over 30 days per business unit. Pending, approved and applied compensations count, and the caps bind the approver too |
| R-08 | Beneficiary: recharges go to the customer's seat; the Club coupon to the case's person; money (account coupon, refund, credit note) to the payer, which is the organization for a company customer |
| R-09 | The request freezes the hash of what was previewed. When something changed before confirming (new evidence, a fraud flag), the confirmation is refused and the form previews again |
| R-10 | An undecided request escalates to the next tier after 24 business hours (24/7 for high priority) and expires after 7 calendar days |
| R-11 | A **Failed** compensation is retried without a new approval only when nothing changed; anything else is a new request |

## States and messages

| Compensation status | What it means |
| - | - |
| **Pending approval** | Waits in the approvals inbox of its tier |
| **Approved** | Approved; an external benefit (coupon, refund, credit note) may stay here while the provider completes it |
| **Applied** | The benefit is on the customer's account |
| **Failed** | It could not be applied; it can be **Retried** |
| **Rejected** | An approver rejected it with a note |
| **Cancelled** | Cancelled before a decision |
| **Expired** | 7 days went by without a decision |
| **Revoked** | The unused part was reverted ([Revoke](https://docs.bbrands.io/enterprise/customer-care/revoke.md)) |

| Message | When |
| - | - |
| "Not approved automatically: {blockers}" | The preview needs approval; the reasons are, for example, "insufficient evidence", "suspected fraud" or "a rule failed" |
| "{cap} cap: {used} of {limit}" | Use of each of the customer's caps |
| "The data changed since the preview: review the new one before confirming." | The confirmation found an old hash |
| "The case has no subjects: add one before requesting." | Case without subjects |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "Link an account before requesting compensations." | Case without an account | `409 compensation:case_without_account` | Link the account |
| "Record the offered options and the customer's choice." | Case with contact without options | `422 compensation:choice_required` | Fill in the options |
| "The chosen option is not among the offered ones." | Choice outside the offer | `422 compensation:choice_not_offered` | Check the choice |
| "Without customer contact no offered options are recorded." | Options on a case without contact | `422 compensation:no_customer_contact` | Remove the options |
| "The evidence is not enough: write a justification." | Insufficient verdict without a justification | `422 compensation:justification_required` | Write the justification |
| "A customer compensation cap is exceeded." | A per-account cap | `422 compensation:cap_exceeded` | Lower the units or the amount |
| "That benefit does not apply to this problem." / "That benefit does not apply with the subject's verdict." | Type not allowed | `422 compensation:type_not_allowed_for_problem` / `…_for_verdict` | Choose another benefit |
| "This benefit cannot be applied yet." | The type has no applier | `422 compensation:applier_missing` | Escalate to technology |
| "This failure cannot be retried; request another benefit." | The provider refused the remedy | `409 compensation:not_retryable` | Make a new request |

## Why it works this way

The preview and its hash guarantee the approver decides on exactly what the agent saw. Offered options are recorded
because the customer never accepts anything in the app: what they accepted by phone or chat stays on the case and
the approver sees it. Tiers and caps spread the risk: small, well-supported requests are approved automatically and
at once, large or doubtful ones go through a person with enough tier.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/lib/features/customer-compensation/presentation/components/RequestCompensationModal.tsx`, `OfferedOptionsView.tsx`, `RuleResults.tsx`, `CompensationList.tsx` |
| API | `POST /api/v3/compensation/preview`, `POST /api/v3/compensation` (with `requestHash`), `POST /api/v3/compensation/{id}/cancel`, `POST /api/v3/compensation/{id}/retry` |
| SQL function | `customer_compensation_request` (re-values and re-checks the hard rules and caps) |
| Application | Internal benefits apply in the same transaction; external ones in `cron/compensation/apply-sweep` |
| Notices | `account.compensation.approval-requested` to the tier holders; `account.compensation.failed` to the requester and the approver |
| Texts | `messages/{es,en}.json` › `modules.customerCare.request`, `.preview`, `.options`, `.rules`, `.blockers`, `.caps`, `.compensationStatus`, `.errors.codes` |

## FAQ and support cases

> [accordion] Why is a recharge worth CLP 167?
>
> It is what the customer paid in the period divided by the recharges the plan includes: for example CLP 9,990 ÷ 60
> \= CLP 167. The preview shows the computation.

> [accordion] I previewed and the Confirm request button disappeared
>
> You changed something in the form. Press **Preview** again.

> [accordion] The request went to Pending approval although it is small
>
> Check the preview's blockers: a rule failed (for example another compensation in the last 30 days, or the daily
> budget is used up). It waits in the inbox of its tier.

> [accordion] The customer does not want notices
>
> Untick **Notify the customer** before confirming.

## Related and history

* [Approvals](https://docs.bbrands.io/enterprise/customer-care/approvals.md)
* [Revoking a compensation](https://docs.bbrands.io/enterprise/customer-care/revoke.md)
* [Catalogue: types and automatic rules](https://docs.bbrands.io/enterprise/customer-care/catalogue.md)

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


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