curl --request POST \
--url https://api.paytring.com/api/v2/payout/accounts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"pg": "<string>"
}'
"{\n \"status\": true,\n \"accounts\": {\n \"cashfree\": {\n \"status\": false,\n \"error\": {\n \"message\": \"Internal Server Error, Invalid response received from payment gateway.\",\n \"code\": \"INTERNAL_SERVER_ERROR\"\n }\n },\n \"decentro\": {\n \"status\": true,\n \"data\": [\n {\n \"account_number\": \"936551184xxxxxxxxxxxx77\",\n \"ifsc_code\": \"Dxxxxxxx11\",\n \"account_type\": \"VIRTUAL\",\n \"currency\": \"INR\",\n \"available_balance\": 0,\n \"account_balance\": 0,\n \"minimum_balance\": 0,\n \"hold_fund\": null,\n \"overdraft\": null,\n \"transaction_limit\": 1000000\n }\n ]\n }\n }\n}"
curl --request POST \
--url https://api.paytring.com/api/v2/payout/accounts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"pg": "<string>"
}'
"{\n \"status\": true,\n \"accounts\": {\n \"cashfree\": {\n \"status\": false,\n \"error\": {\n \"message\": \"Internal Server Error, Invalid response received from payment gateway.\",\n \"code\": \"INTERNAL_SERVER_ERROR\"\n }\n },\n \"decentro\": {\n \"status\": true,\n \"data\": [\n {\n \"account_number\": \"936551184xxxxxxxxxxxx77\",\n \"ifsc_code\": \"Dxxxxxxx11\",\n \"account_type\": \"VIRTUAL\",\n \"currency\": \"INR\",\n \"available_balance\": 0,\n \"account_balance\": 0,\n \"minimum_balance\": 0,\n \"hold_fund\": null,\n \"overdraft\": null,\n \"transaction_limit\": 1000000\n }\n ]\n }\n }\n}"
{
"pg": "string" // Optional: Specify the payment gateway to fetch accounts for
}
{
"status": true,
"accounts": [
{
"pg": "string",
"account_id": "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
.
200
The response is of type object
.