API Test Keys
Validate a Bank Account
POST
/v1/fund_accounts/validations
Click to copy
Use this endpoint to create contact, fund account and validate the bank account 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"validation_type": "optimized",7"reference_id": "112233",8"notes": {9"random_key_1": "Make it so.",10"random_key_2": "Tea. Earl Grey. Hot."11}12"fund_account": {13"account_type":"bank_account",14"bank_account":{15"name":"Gaurav Kumar",16"ifsc":"HDFC0000053",17"account_number":"765432123456789"18},19"contact": {20"name":"Gaurav Kumar",21"email":"gaurav.kumar@example.com",22"contact":"9123456789",23"type":"employee",24"reference_id":"Acme Contact ID 12345",25"notes":{26"notes_key_1":"Tea, Earl Grey, Hot",27"notes_key_2":"Tea, Earl Grey... decaf."28}29}30}31}'
Created
Completed
Failed
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"status": "created",5"validation_results": {6"account_status": null,7"registered_name": null,8"details": null,9"name_match_score": null10},11"status_details": {12"description": "Validation request is created",13"source": "internal",14"reason": "validation_request_created"15},16"reference_id": "112233",17"notes": {18"random_key_1": "Make it so.",19"random_key_2": "Tea. Earl Grey. Hot."20},21"fund_account": {22"id": "fa_00000000000001",23"entity": "fund_account",24"account_type": "bank_account",25"bank_account": {26"name": "Gaurav Kumar",27"bank_name": "HDFC",28"ifsc": "HDFC0000053",29"account_number": "765432123456789"30},31"active": true,32"created_at": 1567064019,33"contact": {34"id": "cont_00000000000001",35"entity": "contact",36"name":"Gaurav Kumar",37"email":"gaurav.kumar@example.com",38"contact":"9123456789",39"type":"employee",40"reference_id":"Acme Contact ID 12345",41"active": true,42"created_at": 1567064019,43"notes":{44"notes_key_1":"Tea, Earl Grey, Hot",45"notes_key_2":"Tea, Earl Grey... decaf."46}47}48}49}
Request Parameters
source_account_number
*
string
The account from which money should be deducted for the account validation transaction.
validation_type
string
The chosen type of validation. Possible values:
pennydrop
: Razorpay will make a transaction for validation.pennyiless
: Razorpay will validate the account without a transaction.optimized
(default): Razorpay will decide whether the validation requires a transaction or not.
fund_account
*
object
Fund account details to which the payout was made.
Show child parameters (1)
contact
*
object
Contact details to which the payout was made.
Show child parameters (4)
notes
object
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
id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
entity
string
Here it will be fund_account.validation
.
status
string
The status of the account validation transaction. Possible values:
created
completed
failed
validation_results
object
Result of the validation.
Show child parameters (4)
status_details
object
This parameter returns the current status of the customer's bank account.
Show child parameters (3)
fund_account
object
Fund account details to which the payout was made.
Show child parameters (3)
contact
object
Contact details to which the payout was made.
Show child parameters (6)
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.
notes
object
User-entered notes for internal reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Beam me up Scotty”
.
active
boolean
Possible values of Fund Account status:
true
: activefalse
: inactive
created_at
integer
Timestamp, in Unix, when the fund account was created. For example, 1543650891
.
Validate a Bank Account
POST
/v1/fund_accounts/validations
Click to copy
Use this endpoint to create contact, fund account and validate the bank account in a single API call.
Is this page helpful?
Request Parameters
source_account_number
*
string
The account from which money should be deducted for the account validation transaction.
validation_type
string
The chosen type of validation. Possible values:
pennydrop
: Razorpay will make a transaction for validation.pennyiless
: Razorpay will validate the account without a transaction.optimized
(default): Razorpay will decide whether the validation requires a transaction or not.
fund_account
*
object
Fund account details to which the payout was made.
Show child parameters (1)
contact
*
object
Contact details to which the payout was made.
Show child parameters (4)
notes
object
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
id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
entity
string
Here it will be fund_account.validation
.
status
string
The status of the account validation transaction. Possible values:
created
completed
failed
validation_results
object
Result of the validation.
Show child parameters (4)
status_details
object
This parameter returns the current status of the customer's bank account.
Show child parameters (3)
fund_account
object
Fund account details to which the payout was made.
Show child parameters (3)
contact
object
Contact details to which the payout was made.
Show child parameters (6)
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.
notes
object
User-entered notes for internal reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Beam me up Scotty”
.
active
boolean
Possible values of Fund Account status:
true
: activefalse
: inactive
created_at
integer
Timestamp, in Unix, when the fund account was created. For example, 1543650891
.
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"validation_type": "optimized",7"reference_id": "112233",8"notes": {9"random_key_1": "Make it so.",10"random_key_2": "Tea. Earl Grey. Hot."11}12"fund_account": {13"account_type":"bank_account",14"bank_account":{15"name":"Gaurav Kumar",16"ifsc":"HDFC0000053",17"account_number":"765432123456789"18},19"contact": {20"name":"Gaurav Kumar",21"email":"gaurav.kumar@example.com",22"contact":"9123456789",23"type":"employee",24"reference_id":"Acme Contact ID 12345",25"notes":{26"notes_key_1":"Tea, Earl Grey, Hot",27"notes_key_2":"Tea, Earl Grey... decaf."28}29}30}31}'
Created
Completed
Failed
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"status": "created",5"validation_results": {6"account_status": null,7"registered_name": null,8"details": null,9"name_match_score": null10},11"status_details": {12"description": "Validation request is created",13"source": "internal",14"reason": "validation_request_created"15},16"reference_id": "112233",17"notes": {18"random_key_1": "Make it so.",19"random_key_2": "Tea. Earl Grey. Hot."20},21"fund_account": {22"id": "fa_00000000000001",23"entity": "fund_account",24"account_type": "bank_account",25"bank_account": {26"name": "Gaurav Kumar",27"bank_name": "HDFC",28"ifsc": "HDFC0000053",29"account_number": "765432123456789"30},31"active": true,32"created_at": 1567064019,33"contact": {34"id": "cont_00000000000001",35"entity": "contact",36"name":"Gaurav Kumar",37"email":"gaurav.kumar@example.com",38"contact":"9123456789",39"type":"employee",40"reference_id":"Acme Contact ID 12345",41"active": true,42"created_at": 1567064019,43"notes":{44"notes_key_1":"Tea, Earl Grey, Hot",45"notes_key_2":"Tea, Earl Grey... decaf."46}47}48}49}