> ## 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](/en/platform/console/plugin-settings).

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

***

<Steps>
  <Step title="Open Pix">
    From the Midaz Module sidebar, expand **Pix**.
  </Step>

  <Step title="Click Refunds">
    Select **Refunds** in the submenu.
  </Step>

  <Step title="Select the account">
    Search for the account by its alias in the account filter. The page shows the refunds of that account.
  </Step>
</Steps>

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

<Steps>
  <Step title="Open the dialog">
    In the row menu of a refund in **Processing**, select **Release stuck refund**. The same action is in the **Details** panel.
  </Step>

  <Step title="Check the refund">
    The dialog shows the refund ID and the amount.
  </Step>

  <Step title="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.
  </Step>
</Steps>

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.
</Warning>

<Steps>
  <Step title="Read the warning">
    The dialog **Revert the hold without a BTG record** opens after BTG reports no record of the refund.
  </Step>

  <Step title="Confirm the refund ID">
    Type the last four characters of the refund ID.
  </Step>

  <Step title="Revert">
    Click **Revert the hold**.
  </Step>
</Steps>

## Related pages

***

<Card title="Unblocking stuck operations" icon="code" horizontal href="/en/interfaces/pix-btg/indirect-pix-refund-operations">
  The API operations behind this page, and the rules for an operation that BTG has no record of.
</Card>


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