> For the complete documentation index, see [llms.txt](https://docs.pretium.africa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pretium.africa/utilities/refund.md).

# 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 %}
