---
updatedAt: 2026-09-17T16:31:23.000Z
agentTools:
  projectIndex: https://docs.dlocal.com/llms.txt
---

# Refund codes

# Refund Status Codes

| Status      | Status code | Description               |
| :---------- | :---------- | :------------------------ |
| `PENDING`   | 100         | The refund is pending.    |
| `SUCCESS`   | 200         | The refund was paid.      |
| `REJECTED`  | 300         | The refund was rejected.  |
| `CANCELLED` | 400         | The refund was cancelled. |

# Errors

All the errors are returned with the appropriate HTTP status code, 4XX or 5XX.
The format of all errors is:

| Property  | Type    | Description                       |
| :-------- | :------ | :-------------------------------- |
| `code`    | Integer | Error code.                       |
| `message` | String  | Human readable message.           |
| `param`   | String  | In case one parameter is wrong. ​ |

# Example error

```json
{
    "code": 5012,
    "message": "Insufficient funds."
}
```