> For the complete documentation index, see [llms.txt](https://developer.convergegate.com/legacy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.convergegate.com/legacy/wallet-api/errors/error-object.md).

# Error object

## Errors attributes

| Field         | Type   | Description                                                                                                                                    |
| ------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| type          | enum   | The type of error returned. One of “api\_error”, “authentication\_error”, “permission\_error”, “voucher\_error”, or “invalid\_request\_error”. |
| charge\_id    | string | For voucher errors, the ID of the failed charge.                                                                                               |
| decline\_code | string | For voucher errors resuting from voucher issuer decline, a short string indicating the reason.                                                 |
| message       | string | A human-readable message providing more details about the error.                                                                               |
| param         | string | If the error is parameter-specific, the parameter related to the error.                                                                        |

{% tabs %}
{% tab title="CURL" %}
Error structure example

```
{
	"error": {
		"message": "No such voucher found",
		"param": "pin",
		"type": "invalid_request_error"
	}
}
```

{% endtab %}
{% endtabs %}
