---
page_title: List all bank accounts
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/list-all-bank-accounts
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Flist-all-bank-accounts
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default

# **List all bank accounts** 



You can see a list of the bank accounts belonging to a customer. The bank accounts are returned sorted by creation date, with the most recent appearing first. Note that the 10 most recent bank accounts are always available by default on the customer. If you need more than those 10, you can use this API method and the `limit` parameter to page through bank accounts.

**ARGUMENTS** 


| Argument | Description |
|---|---|
| customer REQUIRED	 | The identifier of the customer whose bank accounts will be retrieved. |
| limit optional, default is 100	 | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 100. |
| page optional | This will return all the bank accounts within the page. |


**Returns**  A dictionary with a `data` property that contains an array of up to `limit` bank accounts and when you pass `page`  it will return you all the entries in the respective page. Each entry in the array is a separate bank account object. If no more bank accounts are available, the resulting array will be empty.

## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/customers/{ID}/bank_accounts

- Production: https://api.lotuspay.com/v1/customers/{ID}/bank_accounts

## Request Type: 
GET

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value: sk_test_XjIHowXWSI23uvjepz2X82
## Sample Code Snippets:

### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/customers/CU004433221AA/bank_accounts?limit=2 \
   -u sk_test_XjIHowXWSI23uvjepz2X82: \
   -G

```

#### Response:
```json
{
    "object": "list",
    "url": "/v1/customers/CU004433221AA/bank_accounts",
    "has_more": false,
    "data": [
          {
              "id": "BA004433221AA"
          },
          {
              "id": "BA004433221BB"
          }
    ]
  }
  
```



---

## See Also

- [Retrieve a bank account](https://juspay.io/in/docs/lotuspay/web/core-resources/retrieve-a-bank-account)
- [The bank object](https://juspay.io/in/docs/lotuspay/web/core-resources/the-bank-object)
