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

# Opening a case

> The Open case form: catalogue problem, channel, priority, customer with an account or contact data only, subjects and description; the entry points that pre-fill it and the duplicate warning.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | Opens as a dialog from `/{locale}/customer-care/cases` (**New case**) and from the entry points below |
| Menu | Customer care › Customer care › **Cases** › **New case** |
| Role | Customer Compensation Agent; Customer care Admin and Operator; Administrator |
| Permission | `customer-compensation-case:create` |
| Feature flag | `customer-compensation` |
| Last verified | 2026-11-24 against `develop` (`060621220`) |

## What it is for

"Open a case with a catalogue problem and its subjects." Each customer complaint is a case: it has a problem (for
example "Sparkling water without CO2"), one or more **subjects** of that problem (for example the recharges that
failed), a channel, a priority and a `CS-` number the customer can quote.

## How to get there

| From | Button | What comes pre-filled |
| - | - | - |
| **Customer care › Cases** | **New case** | Nothing |
| Customer record › **Compensations** tab | **Open case** | The customer |
| Recharge detail (MaihueGO › Recharges) | **Open case** | The recharge as a subject and its machine |
| Machine record | **Open case** | The machine |
| **Possible cases** | **Open case** on the signal | Channel **Proactive**, the customer, the subject, the machine and the suggested problem |

The **Open case** buttons only appear when the module is available to you and you may create cases.

## What you see

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

| # | Field | What it does |
| - | - | - |
| 1 | **Problem** \* | List of the catalogue's active problems ("Choose the problem") |
| 2 | **Channel** | **Phone** (default), **WhatsApp**, **E-mail**, **Social media**, **App**, **Proactive** or **Field** |
| 3 | **Priority** | **The problem's** (default) or a catalogue priority |
| 4 | **The customer was present** | Only with the **Field** channel: marks that the customer was at the visit |
| 5 | **Business unit** | Only for problems without a unit of their own (payments and Club Maihue): **The charged subscription's** (default) or a unit |
| 6 | **The customer has no account (contact data only)** | Swaps the customer search for the contact data |
| 7 | **Customer** \* | Search "Search by RUT or name" |
| 8 | **Contact name** \*, **Contact phone**, **Contact e-mail** | Without an account only: "Enter a name and a phone or an e-mail." |
| 9 | **Subjects** | The pre-filled subjects, each with **Remove subject** |
| 10 | **Description** | Free text of the complaint |
| 11 | **Open case** | Enabled once there is a problem and a customer (or a name plus a phone or an e-mail) |

## Step by step

**1. Choose the problem**

In **Problem**, choose the one that describes the complaint. The case's priority and cause come from the problem.

**2. Set the channel**

Choose where the complaint came from. For a **Field** visit with the customer present, tick **The customer was
present**: the case then counts as a case with customer contact.

**3. Find the customer**

Type the RUT or the name in **Customer** and choose the account. When the customer has no account, or you cannot
find it now, tick **The customer has no account (contact data only)** and enter their name and a phone or an
e-mail.

**4. Check the subjects**

When you opened the case from a recharge or a signal, the subject is already listed. Remove any that do not
belong. You can add more subjects later, from the case detail.

**5. Describe and open**

Write what the customer said in **Description** and press **Open case**. You see "Case {code} opened" · "You can
now verify its subjects." and the case detail opens.

## Business rules

| ID | Rule |
| - | - |
| R-01 | A case needs an active problem and a customer, or a contact name with a phone or an e-mail |
| R-02 | The default priority is the problem's; the cause is the problem's default cause (machine, software, payment, logistics, customer care or partner) |
| R-03 | The payment problems ("Double charge", "Wrong charge") and the Club Maihue ones have no business unit of their own: the case takes the unit of the customer's charged subscription, unless you choose one |
| R-04 | Only one open case may exist per problem and subject. Opening another with the same problem and the same subject is refused |
| R-05 | When the subject is already on another open case with a **different** problem, the case opens with a warning naming that case, so you can review it and merge them when it applies |
| R-06 | A case without an account may have no subjects yet; it takes no compensation request until you link an account |
| R-07 | Channels with customer contact: Phone, WhatsApp, E-mail, Social media and App, and Field with the customer present. Proactive and Field without the customer present are cases without contact |
| R-08 | Company customer: the case's account is the affected person; the system derives the **paying organization** (the one paying the subject's subscription, or an organization the person is a member of). An internal company is never the organization |
| R-09 | The `CS-` number and the SLA due dates are set on opening; the first-response clock starts then |

## States and messages

| Situation | What you see | What to do |
| - | - | - |
| Case opened | "Case {code} opened" · "You can now verify its subjects." | Carry on in the detail |
| Opened with a warning | "{code} opened with a warning" · "The subject is already in {codes}: check whether to merge them." | The detail opens with **Merge** ready for the other case; review and merge, or close the dialog |
| Search without results | "No customers match the search" | Try the RUT or open the case without an account |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "An open case already has that problem and subject: {detail}." | Same problem and subject on an open case | `409 compensation:case_duplicate` | Work the existing case |
| "Check the data you entered." | A required field is missing, or the chosen problem or priority is no longer current | `422` | Complete the form; reload and choose another option |
| "You may not do this." | Missing `customer-compensation-case:create` | `403` | Ask for the role |

## Why it works this way

One case per problem and subject prevents compensating the same recharge twice from two cases. When the same subject
shows up with another problem it may be a different complaint, so the system does not block it: it warns and leaves
the merge decision to the agent. Cases without an account exist because many calls arrive without a RUT; the account
is linked later, with an audit trail.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/lib/features/customer-compensation/presentation/components/OpenCaseModal.tsx` and `OpenCaseButton.tsx` |
| API | `POST /api/v3/compensation/case` (answers with `caseCode` and `warnings`) |
| SQL function | `customer_compensation_case_open` |
| Due dates | `business-time.ts` computes `response_due_at` and `due_at` on the priority's clock |
| Texts | `messages/{es,en}.json` › `modules.customerCare.openCase`, `.account`, `.channel`, `.cause` |

## FAQ and support cases

> [accordion] The customer called without a RUT and we found them later
>
> Open the case without an account. When you find the account, use **Link account** on the
> [case detail](https://docs.bbrands.io/enterprise/customer-care/case-detail.md). The link is audited and cannot be changed.

> [accordion] Where do I choose a company worker's organization?
>
> You do not choose it: the system derives it from the subject or from the person's organizations and shows it as
> **Paying organization** on the case detail.

> [accordion] I opened the case from a signal and the channel is Proactive
>
> That is expected: the system detected the signal. When the customer contacted you, change the channel to where it
> came from before opening, because the channel decides whether you must record the offered options.

## Related and history

* [Cases inbox](https://docs.bbrands.io/enterprise/customer-care/cases.md)
* [Case detail](https://docs.bbrands.io/enterprise/customer-care/case-detail.md)
* [Possible cases](https://docs.bbrands.io/enterprise/customer-care/signals.md)

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


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