> 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/v1/deposits-api/streamline-api/refund-status-endpoint.md).

# Refund Status Endpoint

Retrieve the status of a previously created refund

### Refund Status

<mark style="color:green;">`POST`</mark> `https://api-stg.directa24.com/api_curl/query/refundstatus`

This endpoint allows you to retrieve the status of a refund.

**Headers**

| Name         | Type   | Description                         |
| ------------ | ------ | ----------------------------------- |
| Content-Type | string | `application/x-www-form-urlencoded` |

**Request Body**

| Name          | Type   | Description                                      |
| ------------- | ------ | ------------------------------------------------ |
| x\_login      | string | Your WEB STATUS API Key                          |
| x\_trans\_key | string | Your WEB STATUS API Passphrase                   |
| x\_refund     | string | The refund ID obtained when generated the refund |

{% tabs %}
{% tab title="200 Refund status successfully retrieved: Pending" %}

```bash
{
"result": "0",
"x_document": "201394736",
"x_invoice": "newIUnit88952712"
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
All the requests must be in x-www-form-urlencoded format and contain the following header:

`Content-Type: application/x-www-form-urlencoded`
{% endhint %}

### Status

Check what every `status` means by [clicking here.](https://docs.directa24.com/v1/deposits-api/api-codes#refund-status-codes)

### Response fields

| Field name  | Description                                                                                                                                |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| result      | Refund status. See [status codes.](https://docs.directa24.com/v1/deposits-api/streamline-api/refund-creation-endpoint#refund-status-codes) |
| x\_document | ID of the depositn                                                                                                                         |
| x\_invoice  | ID of the deposit on your end                                                                                                              |


---

# 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/v1/deposits-api/streamline-api/refund-status-endpoint.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.
