Get user balance

Method POST
Headers
Accept application/json
Content-Type application/json
Request parameters
api_id int API ID
api_key string API key

PHP EXAMPLE
include('FastPayApi.php');
$apiId = 583;
$apiKey = 'nSqjryEhvZMy8DlgCaYdVPoHyRJxgxWN';

$fastPayApi = new FastPayApi();
$fastPayApi->setApiId($apiId);
$fastPayApi->setApiKey($apiKey);
$response = $fastPayApi->getUserBalance();
$data = json_decode ($response, true);
if ($data['status'] === 'success') {
$balance_trx = $data['data']['balance_trx']; // Balance TRX
$balance_usdt = $data['data']['balance_usdt']; // Balance USDT
$balance_usdc = $data['data']['balance_usdc']; // Balance USDC
}
Success JSON Response:
{ "status": "success", "data": { "balance_trx": "7482.478212", "balance_usdt": "1475.124721", "balance_usdc": "9214.872164" } }

Error JSON Response:
{ "status": "error", "errors": { "error": "User Not found!" } }