You can use the below endpoint to create a fund account for a customer.
curl -u <YOUR_KEY>:<YOUR_SECRET> \-X POST https://api.razorpay.com/v1/fund_accounts \-H "Content-Type: application/json" \-d '{"customer_id":"cust_Aa000000000001","account_type":"bank_account","bank_account":{"name":"Gaurav Kumar","account_number":"11214311215411","ifsc":"HDFC0000053"}}'
customer_id
mandatory
Data type string
. This is the unique ID linked to a customer. For example, cust_Aa000000000001
.
account_type
mandatory
Data type string
. The type of account to be linked to the customer ID. In this case it will be bank_account
.
bank_account
Customer bank account details.
name
mandatory
Data type string
. Name of account holder as per bank records. For example, Gaurav Kumar
.
ifsc
mandatory
Data type string
. Customer's bank IFSC. For example, HDFC0000053
.
account_number
mandatory
Data type string
. Beneficiary account number. For example, 11214311215411
.
id
Data type string
. The unique ID linked to the fund account. For example, fa_Aa000000000001
.
entity
Data type string
. The name of the Razorpay entity. In this case it will be fund_account
.
customer_id
Data type string
. This is the unique ID linked to a customer. For example, cust_Aa000000000001
.
account_type
Data type string
. The type of account to be linked to the customer ID. In this case it will be bank_account
.
bank_account
Customer bank account details.
name
Data type string
. Name of account holder as per bank records. For example, Gaurav Kumar
.
account_number
Data type string
. Beneficiary account number. For example, 11214311215411
.
ifsc
Data type string
. Customer's bank IFSC. For example, HDFC0000053
.
bank_name
Data type string
. Customer's bank name. For example HDFC
.
active
Data type string
. Status of the fund account. Possible values:
- true
- false
created_at
Data type integer
. The time at which the account was created at Razorpay. The output for this parameter is date and time in the Unix format, for example, 1543650891
.