cURL
curl --request POST \ --url https://api.paytring.com/api/v2/payout/beneficiary/create \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "name": "user", "phone": "<string>", "email": "<string>", "address": "delhi", "account_number": "<string>", "ifsc": "<string>", "vpa": "<string>" }'
"{\n \"status\": true,\n \"message\": \"Beneficiary Account Added successfully.\",\n \"beneficiary_id\": \"59113xxxxxxxxx6\"\n}"
{ "name": "string", // Beneficiary name "email": "string", // Beneficiary email "phone": "string", // Beneficiary phone number "vpa": "string", // Virtual Payment Address (VPA) "account": { "account_no": "string", // Account number "ifsc": "string" // IFSC code } }
{ "status": true, "beneficiary_id": "string" }
{ "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 object.
object