API Test Keys
Validate a Bank Account
POST
/v1/fund_accounts/validations
Click to copy
Use this endpoint to create a bank account validation transaction.
Is this page helpful?
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"account_number": "7878780080316316",6"fund_account": {7"id": "fa_00000000000001"8},9"amount": 100,10"currency": "INR",11"notes": {12"random_key_1": "Make it so.",13"random_key_2": "Tea. Earl Grey. Hot."14}15}'
Created
Completed
Failed
Insufficient Balance
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"fund_account": {5"id": "fa_00000000000001",6"entity": "fund_account",7"contact_id": "cont_00000000000001",8"account_type": "bank_account",9"bank_account": {10"name": "Gaurav Kumar",11"bank_name": "HDFC",12"ifsc": "HDFC0000053",13"account_number": "765432123456789"14},15"batch_id": null,16"active": true,17"created_at": 156706401918},19"status": "created",20"amount": 100,21"currency": "INR",22"notes": {23"random_key_1": "Make it so.",24"random_key_2": "Tea. Earl Grey. Hot."25},26"results": {27"account_status": null,28"registered_name": null29},30"created_at": 1547566278,31"utr": null32}
Request Parameters
account_number
*
string
The account from which money should be deducted for the account validation transaction.
- Pass your customer identifier if you want money to be deducted from RazorpayX Lite.
Watch Out!
- This is not your contact's bank account number. Log in to your and go to My Account & Settings → Banking → Customer Identifier.
- This value is different for Test Mode and Live Mode.
fund_account
*
object
The fund account id you want to validate.
Show child parameters (1)
amount
*
integer
The amount, in paise, to be transferred. For example, pass 100
for ₹1. The default value for this parameter is 100
.
The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.
currency
string
The currency for the transfer. The value has to be INR
. If no value is passed, it is assumed to be INR
.
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”
.
Response Parameters
id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
entity
string
Here it is fund_account
.
contact_id
string
The unique identifier linked to the contact. For example, cont_00000000000001
.
account_type
string
The fund account type being created. Here it will either be bank_account
, vpa
or card
.
Show child parameters (3)
active
boolean
Possible values of Fund Account status:
true
: activefalse
: inactive
batch_id
string
This value is returned if the fund account was created as part of a bulk upload.
For example, batch_00000000000001
.
status
string
The status of the account validation transaction. Possible values:
created
completed
failed
results
object
Result of the validation. If the account validation is complete
and the account is invalid, the value in the below parameters is invalid
.
Show child parameters (2)
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 a bank account validation transaction.
Is this page helpful?
Request Parameters
account_number
*
string
The account from which money should be deducted for the account validation transaction.
- Pass your customer identifier if you want money to be deducted from RazorpayX Lite.
Watch Out!
- This is not your contact's bank account number. Log in to your and go to My Account & Settings → Banking → Customer Identifier.
- This value is different for Test Mode and Live Mode.
fund_account
*
object
The fund account id you want to validate.
Show child parameters (1)
amount
*
integer
The amount, in paise, to be transferred. For example, pass 100
for ₹1. The default value for this parameter is 100
.
The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.
currency
string
The currency for the transfer. The value has to be INR
. If no value is passed, it is assumed to be INR
.
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”
.
Response Parameters
id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
entity
string
Here it is fund_account
.
contact_id
string
The unique identifier linked to the contact. For example, cont_00000000000001
.
account_type
string
The fund account type being created. Here it will either be bank_account
, vpa
or card
.
Show child parameters (3)
active
boolean
Possible values of Fund Account status:
true
: activefalse
: inactive
batch_id
string
This value is returned if the fund account was created as part of a bulk upload.
For example, batch_00000000000001
.
status
string
The status of the account validation transaction. Possible values:
created
completed
failed
results
object
Result of the validation. If the account validation is complete
and the account is invalid, the value in the below parameters is invalid
.
Show child parameters (2)
created_at
integer
Timestamp, in Unix, when the fund account was created. For example, 1543650891
.
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"account_number": "7878780080316316",6"fund_account": {7"id": "fa_00000000000001"8},9"amount": 100,10"currency": "INR",11"notes": {12"random_key_1": "Make it so.",13"random_key_2": "Tea. Earl Grey. Hot."14}15}'
Created
Completed
Failed
Insufficient Balance
1{2"id": "fav_00000000000001",3"entity": "fund_account.validation",4"fund_account": {5"id": "fa_00000000000001",6"entity": "fund_account",7"contact_id": "cont_00000000000001",8"account_type": "bank_account",9"bank_account": {10"name": "Gaurav Kumar",11"bank_name": "HDFC",12"ifsc": "HDFC0000053",13"account_number": "765432123456789"14},15"batch_id": null,16"active": true,17"created_at": 156706401918},19"status": "created",20"amount": 100,21"currency": "INR",22"notes": {23"random_key_1": "Make it so.",24"random_key_2": "Tea. Earl Grey. Hot."25},26"results": {27"account_status": null,28"registered_name": null29},30"created_at": 1547566278,31"utr": null32}