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

# Revoking a compensation

> How a manager or an administrator reverts an applied compensation, or closes an approved refund or credit note that was not created yet; what is reverted and what is not.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | Dialog on `/{locale}/customer-care/cases/{id}` (**Compensations** section) and on the customer record's **Compensations** tab |
| Menu | Case › **Compensations** › **Revoke** |
| Role | Customer Compensation Manager; Administrator |
| Permission | `customer-compensation:revoke` |
| Feature flag | `customer-compensation` |
| Last verified | 2026-11-24 against `develop` (`060621220`) |

## What it is for

It corrects a compensation that should not have been given: an agent's mistake, a duplicate or a case that turned out
not to be real. "Only what the customer has not used is reverted; nothing used is charged back."

## How to get there

* Case detail → **Compensations** → **Revoke** on the compensation's row.
* Customer record › **Compensations** tab → compensations list → **Revoke**.

The button only appears with `customer-compensation:revoke` and only on compensations that can be revoked.

## 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 | **Revoke** (red button) | On the row of an **Applied** compensation, or of an **Approved** refund or credit note whose remedy was not created |
| 2 | "Revoke the compensation?" dialog | Explains what happens: "Only what the customer has not used is reverted; nothing used is charged back." or, for a remedy not created, "The refund or credit note has not been created yet: it closes without creating it." |
| 3 | **Reason** | Required |
| 4 | **Revoke** | Confirms |

## Step by step

**1. Find the compensation**

On the case, scroll to **Compensations** and find the **Applied** row you want to revert.

**2. Revoke with a reason**

Press **Revoke**, type the **Reason** and confirm.

**3. Check the result**

You see "Compensation revoked" · "The unused part was reverted." (or "It closed without creating the refund or
credit note."). The row becomes **Revoked** and the timeline shows "Compensation revoked".

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only an **Applied** compensation, or an **Approved** refund or credit note whose remedy was never created, can be revoked |
| R-02 | Revoking needs `customer-compensation:revoke` (Manager or Administrator) and a reason. Module roles never revoke |
| R-03 | Only the unused part is reverted: for example credited recharges the customer has not used, or an unredeemed coupon. Nothing used is charged back |
| R-04 | A refund or credit note whose remedy is being created or already exists cannot be revoked |
| R-05 | Setting a fraud flag on an account revokes every applied compensation of it |
| R-06 | A revocation is final: a **Revoked** compensation admits no other action |
| R-07 | In the reports, the revoked value is subtracted from the applied value of the month it was revoked; in the accounting export it shows as a "Revoked" movement with a negative value |

## States and messages

| Situation | What you see |
| - | - |
| Revoked | "Compensation revoked" · "The unused part was reverted." |
| Remedy closed without creating it | "Compensation revoked" · "It closed without creating the refund or credit note." |
| Without the permission | The **Revoke** button does not appear |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The refund or credit note is being created or already exists, so it cannot be revoked." | The remedy is under way | `409 compensation:not_revocable` | Handle the refund or note from Payments |
| "This action does not apply in the current status ({detail})." | The compensation is no longer applied | `409 compensation:invalid_transition` | Reload the case |
| "You may not do this." | Missing `customer-compensation:revoke` | `403` | Ask for the Manager role |

## Why it works this way

Charging back something the customer already used would take away a benefit they received in good faith, so the
system only reverts what is still pending. Revoking is a senior decision because it undoes what someone else approved.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/lib/features/customer-compensation/presentation/components/CompensationList.tsx` (with `ReasonModal`) |
| API | `POST /api/v3/compensation/{id}/revoke` (`reason`) |
| SQL function | `customer_compensation_transition` (revoke); the benefit's applier reverts the unused part |
| Webhook | `customer-compensation.revoked` |
| Texts | `messages/{es,en}.json` › `modules.customerCare.compensationActions.revoke` |

## FAQ and support cases

> [accordion] The customer already used one of the two credited recharges
>
> Revoking reverts only the unused one. The used one is not charged.

> [accordion] I want to revoke a compensation pending approval
>
> It is not revoked: use **Cancel request**. Revoking is for what was already applied.

## Related and history

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

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


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