Overview of the Bank Accounts APIs
These five Bank Account APIs handle bank account/customer interaction in the Juspay system.
Create Bank Account:
Enters a new customer bank account in the Juspay system with the given bank information.
Optional:
command = create
or command = validate

Returns: Bank Account Object
POST https://api.juspay.in/customers/:customer_id/bank-accounts
Validate Bank Account:
Validates given bank account of customer. Returns a 
Required:
customer_id, bank_account_id

Returns: Bank Account Object
POST https://api.juspay.in/customers/:customer_id/bank-accounts/:bank_account_id/validate
List Bank Accounts:
Returns a detailed list all bank accounts of a given customer as an array of Bank Account Objects (list).
Required:
customer_id

Returns:
object, list[{...},{...},...], total, offset, count
GET https://api.juspay.in/customers/:customer_id/bank-accounts/list
Get Bank Account:
Returns details of a customer's bank account as a Bank Account Object.
Required:
customer_id, bank_account_id

Returns: Bank Account Object.
GET https://api.juspay.in/customers/:customer_id/bank-accounts/:bank_account_id
Delete Bank Account:
This will delete the selected bank account of a customer.
Required:
customer_id, bank_account_id
Optional:
command = delete

Returns:
bank_account_id, bank_account_status
( = "deleted" if OK) POST https://api.juspay.in/customers/:customer_id/bank-accounts/:bank_account_id
URL Embedded (Path) Parameters:
* = Required
Field | * | Type | Description |
---|---|---|---|
customer_id | * | String | This is the Customer ID provided by Juspay or the Object Reference ID given by merchant during customer creation. |
bank_account_id | String | This is the Bank Account ID provided by Juspay. Required only for the Get, Validate, and Delete Bank Account APIs. Not used for the Create and List Bank Account APIs. |
Bank Data parameters
Additional Request (Form) Parameters for the Create bank account API.
* = Required
Additional Request (Form) Parameters for the Create bank account API.
Field | * | Type | Description |
---|---|---|---|
bank_code | * | String | Juspay bank code ID defining the bank. |
account_number | * | String | Bank account number. |
ifsc | * | String | IFSC code for a bank branch. |
beneficiary_name | String | Name of the customer in a given bank account. | |
gateway_id | String | Gateway id of the underlying provider to be used for bank account validation. | |
gateway_reference_id | String | Reference Id to a specific gateway which is used for validation | |
metadata {param1, param2, ...} |
String | Custom key-value sets can be passed here |