> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Pix Refunds in Lerian Console

> List the Pix refunds of an account and release a refund stuck in processing, through the Pix Indirect (BTG) plugin in Lerian Console.

The **Refunds** page of the **Pix** section lists the Pix refunds of an account. Use it to release a refund that stays in **Processing** while it waits for BTG.

The **Pix** section appears in the Midaz Module when the **Pix Indirect (BTG)** plugin is on. See [Plugin settings](https://docs.lerian.studio/en/platform/console/plugin-settings.md).

To see refunds, a user needs the `refunds:get` permission. To release a stuck refund, the user also needs `refunds:post`.

## Accessing the Refunds page

***

**1. Open Pix**

From the Midaz Module sidebar, expand **Pix**.

**2. Click Refunds**

Select **Refunds** in the submenu.

**3. Select the account**

Search for the account by its alias in the account filter. The page shows the refunds of that account.

## Refunds list

***

| Column | Description |
| - | - |
| Date | When the refund was created. |
| End-to-end ID | The end-to-end ID of the original Pix. |
| Amount | Amount of the refund. |
| Type | **Cash In** or **Cash Out**. |
| Status | Status of the refund. |
| Actions | **Details**, and **Release stuck refund** for a refund in **Processing**. |

Use the status chips above the list to filter by status.

**Details** opens the refund. It shows the refund ID, the original and return end-to-end IDs, and the ledger transaction ID. It also shows the amount, the status, the type, and the last update.

## Release a stuck refund

***

A reversal call to BTG can end before BTG confirms it. The refund then stays in **Processing**. **Release stuck refund** asks BTG what became of the refund and settles the refund on that answer.

**1. Open the dialog**

In the row menu of a refund in **Processing**, select **Release stuck refund**. The same action is in the **Details** panel.

**2. Check the refund**

The dialog shows the refund ID and the amount.

**3. Ask BTG**

Click **Ask BTG and settle**. The dialog then shows what the Pix service reported, the status at BTG, and the refund status now.

What the release does depends on the answer of BTG and on the type of the refund:

| BTG answer | Cash Out refund | Cash In refund |
| - | - | - |
| Still processing | Nothing changes. | Nothing changes. |
| Confirmed | The refund completes. The amount stays debited. | The refund completes. The amount goes to the account. |
| Error | The refund is rejected. The amount returns to the account. | The refund is rejected. Nothing is credited. |
| No record of the refund | Nothing moves. The dialog offers to revert the hold. See below. | The dialog shows an error. Nothing moves. |

### Revert the hold without a BTG record

This option applies only to a **Cash Out** refund that BTG has no record of.

> [!WARNING]
>
> Reverting marks the refund as failed, with no confirmation from BTG. If BTG did send the refund, the account holder keeps money that already left the institution.

**1. Read the warning**

The dialog **Revert the hold without a BTG record** opens after BTG reports no record of the refund.

**2. Confirm the refund ID**

Type the last four characters of the refund ID.

**3. Revert**

Click **Revert the hold**.

## Related pages

***

> **[Unblocking stuck operations](https://docs.lerian.studio/en/interfaces/pix-btg/indirect-pix-refund-operations.md)**
>
> The API operations behind this page, and the rules for an operation that BTG has no record of.


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