# Refund

This endpoint allows you to refund assets from a failed transaction (which has not been confirmed on our side).

```
POST {{uri}}/v1/refund
```

**Body Request**

| Name              | Type   | Description                                                        |
| ----------------- | ------ | ------------------------------------------------------------------ |
| chain             | String | CELO                                                               |
| transaction\_hash | String | 0x2cc419f14f6f1fefdb58e0359480fa321866a10668513488e71677c345339f27 |

{% tabs %}
{% tab title="Sample Request" %}

```
{
  "chain": "CELO",
  "transaction_hash": "0xe483455c21e6eb70796f805519504295f75be608d2cc35a982013ac1bcd2c997",
}
```

{% endtab %}

{% tab title="200 - Success" %}

```
{
  "status": "success",
  "message": "Txn refunded.",
  "data": {
    "hash": "0xabc123def456...",
    "amount": 150,
    "token": "USDT",
    "address": "0x9f8e7d6c5b4a..."
  }
}


```

{% endtab %}

{% tab title="400 - Bad Request" %}

```
{
   "code": 400,
   "message": "This transaction hash has already been processed."
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pretium.africa/utilities/refund.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
