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

# Fetch Balance

> Fetch the balance of your RazorpayX account via API.

Available in
🇲🇾 Malaysia

> [!NOTE]
>
> RazorpayX payouts in Malaysia are available on request. RazorpayX is not enabled on Razorpay Curlec accounts by default. To enquire about RazorpayX for your business, [contact our Support team](https://curlec.com/docs/payments/dashboard/support.md).

Use this endpoint to retrieve the balance of your RazorpayX account. Amounts are in sen.

```bash Curl theme={null}
curl -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
-X GET https://api.razorpay.com/v1/banking_balances
```

```json Success theme={null}
{
  "entity": "collection",
  "count": 1,
  "items": [
    {
      "entity": "banking_balance",
      "currency": "MYR",
      "account_number": "8181810000000000",
      "account_type": "razorpayx_lite",
      "amount": 2500000,
      "available_amount": 2500000,
      "refreshed_at": 1795089601
    }
  ]
}
```

## Query Parameters

**count** `integer`

Number of balances to be fetched. Use it with `skip` for pagination.

* Default value: `10`
* Maximum value: `100`

**skip** `integer`

Number of balances to be skipped. Use it with `count` for pagination.

## Response Parameters

**entity** `string`

The entity being returned. Here it is `collection`. Each item in `items` has the entity `banking_balance`.

**count** `integer`

The number of items returned. For example, `1`.

**items** `array`

The list of accounts and their balances.

**currency** `string`

The currency of the balance. Here it is `MYR`.

**account\_number** `string`

Your RazorpayX account number. It has 16 digits and starts with `818181`. For example, `8181810000000000`.

**account\_type** `string`

The account type of your RazorpayX account. Here it is `razorpayx_lite`.

**amount** `long`

The total balance, in sen. For example, `2500000` for RM 25,000.00.

**available\_amount** `long`

The available balance, in sen. For example, `2500000` for RM 25,000.00.

**refreshed\_at** `long`

Unix timestamp of when the balance was last updated. For example, `1795089601`.

## Errors

> [accordion] Invalid request
>
> **Code:** `400`
>
> A query parameter is not valid. For example, `count` is greater than `100`. The `error.field` parameter in the response names the parameter.
>
> **Solution:** Correct the parameter and send the request again.

> [accordion] Authentication failed
>
> **Code:** `401`
>
> The key ID or key secret is missing or incorrect, or the request came from an IP address that is not on your allowlist.
>
> **Solution:** Use the correct key ID and key secret and call the API from an allowlisted server IP. Refer to [API keys](https://curlec.com/docs/x/dashboard/api-keys.md) and [Allowlist IPs](https://curlec.com/docs/x/dashboard/allowlist-ip.md).
