Customer Fund Account APIs
Create and fetch a Fund account for a Customer.
Using Razorpay APIs, you can create a fund account for a customer. Know more about
.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
string This is the unique ID linked to a customer. For example, cust_Aa000000000001.
account_type
mandatory
string The type of account to be linked to the customer ID. In this case it will be bank_account.
bank_account
object Customer bank account details.
name
mandatory
string Name of account holder as per bank records. For example, Gaurav Kumar.
ifsc
mandatory
string Customer's bank IFSC. For example, HDFC0000053.
account_number
mandatory
string Beneficiary account number. For example, 11214311215411.
id
string The unique ID linked to the fund account. For example, fa_Aa000000000001.
entity
string The name of the Razorpay entity. In this case it will be fund_account.
customer_id
string This is the unique ID linked to a customer. For example, cust_Aa000000000001.
account_type
string The type of account to be linked to the customer ID. In this case it will be bank_account.
bank_account
object Customer bank account details.
name
string Name of account holder as per bank records. For example, Gaurav Kumar.
account_number
string Beneficiary account number. For example, 11214311215411.
ifsc
string Customer's bank IFSC. For example, HDFC0000053.
bank_name
string Customer's bank name. For example HDFC.
active
string Status of the fund account. Possible values:
true: Fund account is active.false: Fund account is inactive.
created_at
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.
You can use the below endpoint to fetch all fund accounts linked to your account.
curl -u <YOUR_KEY>:<YOUR_SECRET> \-X GET https://api.razorpay.com/v1/fund_accounts?customer_id=cust_Aa000000000001
customer_id
mandatory
string This is the unique ID linked to a customer. For example, cust_Aa000000000001.
Was this page helpful?