⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.239
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ubuntu
/
vendor
/
razorpay
/
razorpay
/
documents
/
View File Name :
fund.md
## Funds ### Create a fund account ```php $api->fundAccount->create(array('customer_id'=>$customerId,'account_type'=>'bank_account','bank_account'=>array('name'=>'Gaurav Kumar', 'account_number'=>'11214311215411', 'ifsc'=>'HDFC0000053'))) ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | customerId* | string | The id of the customer to be fetched | | account_type* | string | The bank_account to be linked to the customer ID | | bank_account* | array | A key-value pair | **Response:** ```json { "id":"fa_Aa00000000001", "entity":"fund_account", "customer_id":"cust_Aa000000000001", "account_type":"bank_account", "bank_account":{ "name":"Gaurav Kumar", "account_number":"11214311215411", "ifsc":"HDFC0000053", "bank_name":"HDFC Bank" }, "active":true, "created_at":1543650891 } ``` ------------------------------------------------------------------------------------------------------- ### Fetch all fund accounts ```php $api->fundAccount->all(array('customer_id'=>$customerIds)); ``` **Parameters:** | Name | Type | Description | |---------------|-------------|---------------------------------------------| | customerId* | string | The id of the customer to be fetched | **Response:** ```json { "id":"fa_Aa00000000001", "entity":"fund_account", "customer_id":"cust_Aa000000000001", "account_type":"bank_account", "bank_account":{ "name":"Gaurav Kumar", "account_number":"11214311215411", "ifsc":"HDFC0000053", "bank_name":"HDFC Bank" }, "active":true, "created_at":1543650891 } ``` ------------------------------------------------------------------------------------------------------- **PN: * indicates mandatory fields** <br> <br> **For reference click [here](https://razorpay.com/docs/payments/customers/customer-fund-account-api/)**