POST
/
api
/
v2
/
payout
/
balance
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 retrieves the account balance for all payment gateways or a specific one.

Request Body

{
  "pg": "string" // Optional: Specify the payment gateway to fetch balance for
}

Responses

200 OK

{
  "status": true,
  "balances": [
    {
      "pg": "string",
      "balance": 1000.00
    }
  ]
}

400 Bad Request

{
  "status": false,
  "error": {
    "message": "Invalid request",
    "code": 400
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
pg
string
default:decentro

if not provided response will he data of all PG accounts added to paytring.

account_number
string

Response

200
application/json
200

The response is of type any.