> For the complete documentation index, see [llms.txt](https://docs.pandablue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pandablue.com/deposits/refund-a-deposit/status-flow.md).

# Status flow

## Understanding the refund lifecycle

<figure><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/07OcgNyRmvs6pDJveMh5/Refund%20status%20flow.png" alt=""><figcaption></figcaption></figure>

#### Status diagram explanation

<table><thead><tr><th width="197.921875" align="center">Status</th><th>Description</th></tr></thead><tbody><tr><td align="center"><strong>DECLINED</strong></td><td><strong>DECLINED</strong> is not a status by itself. It means the refund failed to be created.</td></tr><tr><td align="center"><strong>PENDING</strong></td><td>As soon as the refund request is created, its status will be PENDING.</td></tr><tr><td align="center"><strong>INCORRECT_DETAILS</strong></td><td>In case we need more information to complete the request or any of the details were incorrect, we will change the status to <strong>INCORRECT_DETAILS</strong> and you will need to provide the correct details. Once the details have been provided, its status will be <strong>PENDING</strong> again.</td></tr><tr><td align="center"><strong>CANCELLED</strong></td><td>The status <strong>CANCELLED</strong> means the refund was manually cancelled by you. Only refunds in PENDING or INCORRECT_DETAILS can be cancelled.<br><strong>Final status.</strong></td></tr><tr><td align="center"><strong>DELIVERED</strong></td><td>If everything is fine we will send the refund for processing and the status will be marked as <strong>DELIVERED</strong>. It can't be cancelled at this point.</td></tr><tr><td align="center"><strong>REJECTED</strong></td><td>As soon as the processor/bank confirms the refund, it will be marked as COMPLETED or <strong>REJECTED</strong> (by the bank)<mark style="color:red;"><strong>*</strong></mark></td></tr><tr><td align="center"><strong>COMPLETED</strong></td><td>As soon as the processor/bank confirms the refund, it will be marked as <strong>COMPLETED</strong> or REJECTED (by the bank) <mark style="color:red;"><strong>*</strong></mark></td></tr></tbody></table>

&#x20; <mark style="color:red;">**\***</mark> There are some **corner cases** in which the receiver's bank tell us that the refund was completed but days after it gets rejected. In those cases the status changes from COMPLETED to REJECTED.

### Refunds Status Codes

<table><thead><tr><th width="193.08203125" align="center">Status</th><th>Description</th></tr></thead><tbody><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/y7fJyYtx6M0xgJw4HuKN/Untitled%20Diagram.svg" alt="" data-size="original"> </td><td>The refund is created and is pending to be processed. It can still be cancelled.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/6Ln7UqMABrCVimZQvpvI/INCORRECT_DETAILS.svg" alt="" data-size="original"> </td><td>The refund is pending for you to provide more information. It can still be cancelled.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/rr9ruzWPpytL42R0xWOA/DELIVERED.svg" alt="" data-size="original"> </td><td>The refund has been sent to the bank for processing. It can't be cancelled anymore.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/rqD9HoELsAGlblUGAASK/CANCELLED.svg" alt="" data-size="original"> </td><td>The refund has been manually cancelled. Final status.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/o7oTxpRQ09hSqm4BnGFw/REJECTED.svg" alt="" data-size="original"> </td><td>The refund has been rejected by the bank. Final status.</td></tr><tr><td align="center"><img src="https://content.gitbook.com/content/f92vedEnowdVWbjM4Cmd/blobs/gYI7zIZm2YMG8xb4fk4d/COMPLETED.svg" alt="" data-size="original"> </td><td>The refund has been completed. Final status.</td></tr></tbody></table>

> For technical details regarding refunds status retrieval, please visit the **API Reference** <a href="https://docs.d24.com/api-reference/deposits-api/manage-refunds/get-refund-status" class="button primary" data-icon="magnifying-glass">Get refund status</a>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pandablue.com/deposits/refund-a-deposit/status-flow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
