# List a customer's bank accounts

Returns the bank accounts registered against a customer.

Endpoint: GET /customer/{id}/bank-accounts
Version: 1.0.0
Security: JWT

## Security:

  - `JWT` (unknown)
    http bearer JWT

## Path parameters:

  - `id` (string, required)
    The ID of the customer

## Response 200:

  - `200` (unknown)
    Bank accounts retrieved successfully

## Response 200 fields (application/json):

  - `id` (string)
    Unique identifier of the bank account.
    Example: acccus_6a5f1c92Xq4Wd

  - `account_number` (string)
    The customer's bank account number or IBAN. Masked in every response, showing only the last four characters.
    Example: 50100123456789

  - `bank_name` (string)
    Name of the bank holding the account.
    Example: HDFC bank

  - `bic_primary` (string)
    SWIFT/BIC code of the bank. Provide this or `bic_secondary`.
    Example: HDFCINBBXXX

  - `bic_secondary` (string)
    Local routing code of the bank — IFSC in India, sort code in the United Kingdom, ABA routing number in the United States. Provide this or `bic_primary`.
    Example: HDFC0000123

  - `holder_name` (string)
    Name on the account. Always the customer's own name, so it is derived from the customer and cannot be set on the request.
    Example: Priya Raghunathan

## Response 404:

  - `404` (unknown)
    Customer not found

## Response 404 fields (application/json):

  - `error` (string)
    Enum: "Not found"

  - `message` (string)
    Entity not found
    Enum: "Entity not found"

