> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Account Balance

> Endpoint where you can get your account balance

```bash Request Example theme={null}
curl --request GET 'https://api.mayar.id/hl/v2/balances' \
 --header 'Authorization: Bearer Paste-Your-API-Key-Here'
```

```json Response Example 200 theme={null}
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "balanceActive": 0,
        "balancePending": 0,
        "balance": 0
    }
}
```

Endpoint:

```Production Production theme={null}
https://api.mayar.id/hl/v2/balances
```

```Sandbox Sandbox theme={null}
https://api.mayar.io/hl/v2/balances
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Response

Successful Response

## Main Structure (Root)

**statusCode** `integer`

Status code returned by the API.

**messages** `string`

Status message that describes the status code.

**data** `object`

The account balance object.

### data Structure (Object)

**data.balanceActive** `integer`

Active balance that can be used/withdrawn immediately.

**data.balancePending** `integer`

Pending balance (cannot be withdrawn).

**data.balance** `integer`

Total overall balance (Active balance + Pending balance).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.