/api/account/balanceBalance
Retrieve your balance and the amount currently available for withdrawal. Both calls are read-only and report your API wallet, which holds the funds collected through this API. Other wallets in your panel are neither shown nor included.
| Field | Type | Description |
|---|---|---|
currency_code | string | Currency of all amounts: the system main currency. |
available_amount | string | Settled funds in your API wallet that are available for use now. Unsettled and held amounts are excluded. |
pending_settlement_amount | string | Funds from payments that have not yet settled. Always 0.00 in sandbox. |
environment | string | sandbox or live. |
./payniko.sh GET '/api/account/balance'import {api} from './payniko.mjs';
const balance = await api('GET', '/api/account/balance');
console.log(balance);<?php
require __DIR__ . '/payniko.php';
$balance = payniko_api('GET', '/api/account/balance');
print_r($balance);from payniko import api
balance = api("GET", "/api/account/balance")
print(balance)Response · Example
{
"currency_code": "USD",
"available_amount": "1250.00",
"pending_settlement_amount": "300.00",
"environment": "live"
}Payments in other currencies are converted to the main currency. Fees and settlement dates are not included in this response.