API Test Keys
Validate a VPA
POST/v1/fund_accounts/validationsClick to copy
Use this endpoint to create contact, fund account and validate VPA (UPI) in a single API call.
Is this page helpful?
Curl
1curl -u <YOUR_KEY>:<YOUR_SECRET> \2-X POST https://api.razorpay.com/v1/fund_accounts/validations \3-H "Content-Type: application/json" \4-d '{5"source_account_number": "7878780080316316",6"reference_id": "112233",7"notes": {8"random_key_1": "Make it so.",9"random_key_2": "Tea. Earl Grey. Hot."10},11"fund_account": {12"account_type":"vpa",13"vpa":{14"address":"gaurav.kumar@exampleupi"15}16"contact": {17"name":"Gaurav Kumar",18"email":"gaurav.kumar@example.com",19"contact":"9123456789",20"type":"employee",21"reference_id":"Acme Contact ID 12345",22"notes":{23"notes_key_1":"Tea, Earl Grey, Hot",24"notes_key_2":"Tea, Earl Grey... decaf."25}26}27}28}29}'
Created
Completed
Failed
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"status": "created",5"utr" : "123456789012",6"validation_results": {7"account_status": null,8"registered_name": null,9"details": null,10"name_match_score": null11},12"status_details": {13"description": "Validation request is created",14"source": "internal",15"reason": "validation_request_created"16},17"reference_id": "112233",18"notes": {19"random_key_1": "Make it so.",20"random_key_2": "Tea. Earl Grey. Hot."21},22"fund_account": {23"id": "fa_00000000000001",24"entity": "fund_account",25"account_type":"vpa",26"vpa":{27"address":"gaurav.kumar@exampleupi"28}29"active": true,30"created_at": 1567064019,31"contact": {32"id": "cont_00000000000001",33"entity": "contact",34"name":"Gaurav Kumar",35"email":"gaurav.kumar@example.com",36"contact":"9123456789",37"type":"employee",38"reference_id":"Acme Contact ID 12345",39"active": true,40"created_at": 1567064019,41"notes":{42"notes_key_1":"Tea, Earl Grey, Hot",43"notes_key_2":"Tea, Earl Grey... decaf."44}45}46}47}
Request Parameters
source_account_number *
stringThe account from which money should be deducted for the account validation transaction.
fund_account *
objectFund account details to which the payout was made.
Show child parameters (2)
notesobject Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
reference_id string A user-generated reference given to the payout. Maximum length is 40 characters. For example, 112233. You can use this field to store your own transaction ID, if any.
Response Parameters
idstring The unique identifier linked to the fund account. For example, fav_000000000001.
entitystring Here it will be fund_account.validation.
statusstringThe status of the account validation transaction. Possible values:
createdcompletedfailed
utrstring A 12-digit unique identifier for the successful IMPS fund account validation transaction. For example, 123456789012.
validation_resultsobjectResult of the validation.
Show child parameters (4)
status_detailsobjectThis parameter returns the current status of the customer's bank account.
Show child parameters (3)
fund_accountobjectFund account details to which the payout was made.
Show child parameters (3)
contactobjectContact details to which the payout was made.
Show child parameters (10)
Validate a VPA
POST/v1/fund_accounts/validationsClick to copy
Use this endpoint to create contact, fund account and validate VPA (UPI) in a single API call.
Is this page helpful?
Request Parameters
source_account_number *
stringThe account from which money should be deducted for the account validation transaction.
fund_account *
objectFund account details to which the payout was made.
Show child parameters (2)
notesobject Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
reference_id string A user-generated reference given to the payout. Maximum length is 40 characters. For example, 112233. You can use this field to store your own transaction ID, if any.
Response Parameters
idstring The unique identifier linked to the fund account. For example, fav_000000000001.
entitystring Here it will be fund_account.validation.
statusstringThe status of the account validation transaction. Possible values:
createdcompletedfailed
utrstring A 12-digit unique identifier for the successful IMPS fund account validation transaction. For example, 123456789012.
validation_resultsobjectResult of the validation.
Show child parameters (4)
status_detailsobjectThis parameter returns the current status of the customer's bank account.
Show child parameters (3)
fund_accountobjectFund account details to which the payout was made.
Show child parameters (3)
contactobjectContact details to which the payout was made.
Show child parameters (10)
Curl
1curl -u <YOUR_KEY>:<YOUR_SECRET> \2-X POST https://api.razorpay.com/v1/fund_accounts/validations \3-H "Content-Type: application/json" \4-d '{5"source_account_number": "7878780080316316",6"reference_id": "112233",7"notes": {8"random_key_1": "Make it so.",9"random_key_2": "Tea. Earl Grey. Hot."10},11"fund_account": {12"account_type":"vpa",13"vpa":{14"address":"gaurav.kumar@exampleupi"15}16"contact": {17"name":"Gaurav Kumar",18"email":"gaurav.kumar@example.com",19"contact":"9123456789",20"type":"employee",21"reference_id":"Acme Contact ID 12345",22"notes":{23"notes_key_1":"Tea, Earl Grey, Hot",24"notes_key_2":"Tea, Earl Grey... decaf."25}26}27}28}29}'
Created
Completed
Failed
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"status": "created",5"utr" : "123456789012",6"validation_results": {7"account_status": null,8"registered_name": null,9"details": null,10"name_match_score": null11},12"status_details": {13"description": "Validation request is created",14"source": "internal",15"reason": "validation_request_created"16},17"reference_id": "112233",18"notes": {19"random_key_1": "Make it so.",20"random_key_2": "Tea. Earl Grey. Hot."21},22"fund_account": {23"id": "fa_00000000000001",24"entity": "fund_account",25"account_type":"vpa",26"vpa":{27"address":"gaurav.kumar@exampleupi"28}29"active": true,30"created_at": 1567064019,31"contact": {32"id": "cont_00000000000001",33"entity": "contact",34"name":"Gaurav Kumar",35"email":"gaurav.kumar@example.com",36"contact":"9123456789",37"type":"employee",38"reference_id":"Acme Contact ID 12345",39"active": true,40"created_at": 1567064019,41"notes":{42"notes_key_1":"Tea, Earl Grey, Hot",43"notes_key_2":"Tea, Earl Grey... decaf."44}45}46}47}