cURL
curl --request POST \ --url https://api.paytring.com/api/v2/payout/balance \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "pg": "decentro", "account_number": "<string>" }'
" {\n \"status\":\"true\",\n \"account\":[\n \"decentro\":[\n \"account_no\" : \"917027445661\"\n \"balance\" : \"99cr\"\n ]\n ]\n}"
This APi get you your account balance of each pg., or a specific one.
{ "pg": "string" // Optional: Specify the payment gateway to fetch balance for }
{ "status": true, "balances": [ { "pg": "string", "balance": 1000.00 } ] }
{ "status": false, "error": { "message": "Invalid request", "code": 400 } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
200
The response is of type any.
any