> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar Todas as Contas Bancárias Registradas do Cliente

> List all bank accounts for a customer with pagination

Use este endpoint para recuperar uma lista paginada de todas as contas bancárias registradas na sua conta SpherePay. Você pode opcionalmente filtrar os resultados por ID de cliente para buscar apenas as contas pertencentes a um cliente específico. Os resultados são retornados em ordem decrescente de tempo de criação.


## OpenAPI

````yaml openapi/spherepay.yaml GET /v2/bank-account
openapi: 3.0.0
info:
  contact: {}
  description: The Sphere REST API for payments, transfers, and accounts.
  title: Sphere API
  version: '2'
servers:
  - description: Production
    url: https://api.spherepay.co
security:
  - bearer: []
tags: []
paths:
  /v2/bank-account:
    get:
      summary: List Bank Accounts
      description: List all bank accounts for a customer with pagination
      operationId: getV2BankAccount
      parameters:
        - description: 'Page number of the list (default: 1)'
          in: query
          name: page
          required: true
          schema:
            default: '1'
            example: 1
            type: string
        - description: 'Number of items per page (default: 10)'
          in: query
          name: limit
          required: true
          schema:
            default: '10'
            example: 10
            type: string
        - description: Filter by customer ID
          in: query
          name: customerId
          required: false
          schema:
            example: customer_66c4168d418a410eae282b83883bdc39
            type: string
        - in: query
          name: network
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankAccountListResponseDto'
          description: ''
        '400':
          content:
            application/json:
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: address/invalid
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Invalid request parameters
                    status: 400
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Bad Request
        '404':
          content:
            application/json:
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: resource/not-found
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Resource not found
                    status: 404
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Not Found
        '422':
          content:
            application/json:
              examples:
                Validation Error:
                  summary: Validation Error
                  value:
                    code: validation/failed
                    correlationId: 28c61e885c6e5eaa78c1a2183a9b883c
                    detail: Validation failed
                    errors:
                      - detail: Invalid email format
                        pointer: /email
                      - detail: Name is required
                        pointer: /name
                    status: 422
              schema:
                $ref: '#/components/schemas/ProblemDetailsDto'
          description: Unprocessable Entity - Validation Error
components:
  schemas:
    BankAccountListResponseDto:
      properties:
        data:
          description: Array of bank account objects
          items:
            oneOf:
              - properties:
                  accountDetails:
                    description: >-
                      USD account details. For ACH/Wire: accountNumber,
                      routingNumber, accountType. For SWIFT: accountNumber
                      (masked), bic.
                    oneOf:
                      - properties:
                          accountNumber:
                            description: >-
                              The bank account number for the US bank account
                              (masked, last 4 characters visible). Present when
                              currency is usd.
                            example: '****7890'
                            type: string
                          accountType:
                            description: >-
                              The type of US bank account. Present when currency
                              is usd.
                            enum:
                              - checking
                              - savings
                              - instapay
                              - pesonet
                            example: checking
                            type: string
                            x-enumNames:
                              - Checking
                              - Savings
                              - Instapay
                              - Pesonet
                          routingNumber:
                            description: >-
                              The 9-digit ABA routing number (also known as
                              routing transit number) that identifies the US
                              financial institution. Present when currency is
                              usd.
                            example: '021000021'
                            type: string
                        required:
                          - accountNumber
                          - routingNumber
                          - accountType
                        type: object
                      - properties:
                          accountNumber:
                            description: >-
                              The account number for SWIFT transfers (masked,
                              last 4 characters visible). Present when currency
                              is usd and networks is ["swift"].
                            example: '******7890'
                            type: string
                          bic:
                            description: >-
                              The BIC/SWIFT code of the beneficiary bank.
                              Present when currency is usd and networks is
                              ["swift"].
                            example: DEUTDEFF
                            type: string
                          intermediaryBics:
                            description: >-
                              Ordered list of BIC/SWIFT codes for intermediary
                              correspondent banks, if any were set on this
                              account. Omitted from the response when no
                              intermediary BICs are set.
                            example:
                              - CHASUS33
                            items:
                              type: string
                            type: array
                        required:
                          - accountNumber
                          - bic
                        type: object
                  accountName:
                    description: A descriptive name for this bank account.
                    example: Checking Account
                    type: string
                  accountOwner:
                    description: >-
                      Information about the account owner, including their name
                      and relationship to the customer.
                    properties:
                      accountHolderName:
                        description: >-
                          The name of the account holder as it appears on the
                          bank account.
                        example: John Doe
                        type: string
                      relationship:
                        description: The relationship of the account owner to the customer.
                        enum:
                          - self
                          - holding_company
                          - subsidiary_company
                          - branch_office
                          - business_partner
                          - supplier
                          - customer
                          - creditor
                          - debtor
                          - franchisee
                          - unknown
                        example: self
                        type: string
                    required:
                      - accountHolderName
                      - relationship
                    type: object
                  bankName:
                    description: >-
                      The name of the financial institution where the account is
                      held.
                    example: Bank of America
                    type: string
                  created:
                    description: The ISO 8601 timestamp when the bank account was created.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                  currency:
                    description: The currency of the bank account.
                    enum:
                      - usd
                    example: usd
                    type: string
                  customerId:
                    description: >-
                      The unique identifier of the customer who owns this bank
                      account.
                    example: customer_66c4168d418a410eae282b83883bdc39
                    type: string
                  id:
                    description: The unique identifier of the bank account.
                    example: bankAccount_ce745ef7f3df4b9a8bff1301ce24b045
                    type: string
                  networks:
                    description: >-
                      The payment networks supported by this bank account. For
                      USD ACH/Wire accounts, includes at least one of "ach" or
                      "wire". For USD SWIFT accounts, is exactly ["swift"].
                    example:
                      - wire
                      - ach
                    oneOf:
                      - items:
                          enum:
                            - ach
                            - wire
                          type: string
                        type: array
                      - items:
                          oneOf:
                            - enum:
                                - swift
                              type: string
                        type: array
                  status:
                    description: The current status of the bank account.
                    enum:
                      - pending
                      - active
                      - inactive
                      - invalid
                    example: active
                    type: string
                    x-enumNames:
                      - Pending
                      - Active
                      - Inactive
                      - Invalid
                  updated:
                    description: >-
                      The ISO 8601 timestamp when the bank account was last
                      updated.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                required:
                  - id
                  - status
                  - customerId
                  - created
                  - updated
                  - bankName
                  - accountName
                  - currency
                  - accountDetails
                  - accountOwner
                  - networks
                title: USD
                type: object
              - properties:
                  accountDetails:
                    description: EUR/SEPA account details including iban and bic.
                    properties:
                      bic:
                        description: >-
                          The Bank Identifier Code (BIC), also known as SWIFT
                          code. Present when currency is eur.
                        example: COBADEFFXXX
                        type: string
                      iban:
                        description: >-
                          The International Bank Account Number (IBAN) for SEPA
                          transfers (masked). Country code, check digits, and
                          last 4 characters are unmasked. Present when currency
                          is eur.
                        example: GB29****************6819
                        type: string
                    required:
                      - iban
                      - bic
                    type: object
                  accountName:
                    description: A descriptive name for this bank account.
                    example: Hauptkonto
                    type: string
                  accountOwner:
                    description: >-
                      Information about the account owner, including their name
                      and relationship to the customer.
                    properties:
                      accountHolderName:
                        description: >-
                          The name of the account holder as it appears on the
                          bank account.
                        example: John Doe
                        type: string
                      relationship:
                        description: The relationship of the account owner to the customer.
                        enum:
                          - self
                          - holding_company
                          - subsidiary_company
                          - branch_office
                          - business_partner
                          - supplier
                          - customer
                          - creditor
                          - debtor
                          - franchisee
                          - unknown
                        example: self
                        type: string
                    required:
                      - accountHolderName
                      - relationship
                    type: object
                  bankName:
                    description: >-
                      The name of the financial institution where the account is
                      held.
                    example: Deutsche Bank
                    type: string
                  created:
                    description: The ISO 8601 timestamp when the bank account was created.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                  currency:
                    description: The currency of the bank account.
                    enum:
                      - eur
                    example: eur
                    type: string
                  customerId:
                    description: >-
                      The unique identifier of the customer who owns this bank
                      account.
                    example: customer_66c4168d418a410eae282b83883bdc39
                    type: string
                  id:
                    description: The unique identifier of the bank account.
                    example: bankAccount_ce745ef7f3df4b9a8bff1301ce24b045
                    type: string
                  networks:
                    description: >-
                      The payment networks supported by this bank account. For
                      EUR accounts, is exactly ["sepa"].
                    example:
                      - sepa
                    items:
                      enum:
                        - sepa
                      type: string
                    type: array
                  status:
                    description: The current status of the bank account.
                    enum:
                      - pending
                      - active
                      - inactive
                      - invalid
                    example: active
                    type: string
                    x-enumNames:
                      - Pending
                      - Active
                      - Inactive
                      - Invalid
                  updated:
                    description: >-
                      The ISO 8601 timestamp when the bank account was last
                      updated.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                required:
                  - id
                  - status
                  - customerId
                  - created
                  - updated
                  - bankName
                  - accountName
                  - currency
                  - accountDetails
                  - accountOwner
                  - networks
                title: EUR
                type: object
              - properties:
                  accountDetails:
                    description: BRL/PIX account details including pixKey and pixKeyType.
                    properties:
                      pixKey:
                        description: >-
                          The masked PIX key for Brazilian PIX transfers.
                          Present when currency is brl.
                        example: a*c@g***l.com
                        type: string
                      pixKeyType:
                        description: The type of PIX key. Present when currency is brl.
                        enum:
                          - cpf
                          - cnpj
                          - email
                          - phone
                          - random
                        example: email
                        type: string
                    required:
                      - pixKey
                      - pixKeyType
                    type: object
                  accountName:
                    description: A descriptive name for this bank account.
                    example: Conta PIX Alice Santos
                    type: string
                  accountOwner:
                    description: >-
                      Information about the account owner, including their name
                      and relationship to the customer.
                    properties:
                      accountHolderName:
                        description: >-
                          The name of the account holder as it appears on the
                          bank account.
                        example: John Doe
                        type: string
                      relationship:
                        description: The relationship of the account owner to the customer.
                        enum:
                          - self
                          - holding_company
                          - subsidiary_company
                          - branch_office
                          - business_partner
                          - supplier
                          - customer
                          - creditor
                          - debtor
                          - franchisee
                          - unknown
                        example: self
                        type: string
                    required:
                      - accountHolderName
                      - relationship
                    type: object
                  bankName:
                    description: >-
                      The name of the financial institution where the account is
                      held.
                    example: Itau
                    type: string
                  created:
                    description: The ISO 8601 timestamp when the bank account was created.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                  currency:
                    description: The currency of the bank account.
                    enum:
                      - brl
                    example: brl
                    type: string
                  customerId:
                    description: >-
                      The unique identifier of the customer who owns this bank
                      account.
                    example: customer_66c4168d418a410eae282b83883bdc39
                    type: string
                  id:
                    description: The unique identifier of the bank account.
                    example: bankAccount_ce745ef7f3df4b9a8bff1301ce24b045
                    type: string
                  networks:
                    description: >-
                      The payment networks supported by this bank account. For
                      BRL accounts, is exactly ["pix"].
                    example:
                      - pix
                    items:
                      enum:
                        - pix
                      type: string
                    type: array
                  status:
                    description: The current status of the bank account.
                    enum:
                      - pending
                      - active
                      - inactive
                      - invalid
                    example: active
                    type: string
                    x-enumNames:
                      - Pending
                      - Active
                      - Inactive
                      - Invalid
                  updated:
                    description: >-
                      The ISO 8601 timestamp when the bank account was last
                      updated.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                required:
                  - id
                  - status
                  - customerId
                  - created
                  - updated
                  - bankName
                  - accountName
                  - currency
                  - accountDetails
                  - accountOwner
                  - networks
                title: BRL
                type: object
              - properties:
                  accountDetails:
                    description: MXN/SPEI account details including the masked clabe.
                    properties:
                      clabe:
                        description: >-
                          The 18-digit CLABE for MXN/SPEI transfers (masked,
                          last 4 digits visible). Present when currency is mxn.
                        example: '**************7899'
                        type: string
                    required:
                      - clabe
                    type: object
                  accountName:
                    description: A descriptive name for this bank account.
                    example: Cuenta SPEI María García
                    type: string
                  accountOwner:
                    description: >-
                      Information about the account owner, including their name
                      and relationship to the customer.
                    properties:
                      accountHolderName:
                        description: >-
                          The name of the account holder as it appears on the
                          bank account.
                        example: John Doe
                        type: string
                      relationship:
                        description: The relationship of the account owner to the customer.
                        enum:
                          - self
                          - holding_company
                          - subsidiary_company
                          - branch_office
                          - business_partner
                          - supplier
                          - customer
                          - creditor
                          - debtor
                          - franchisee
                          - unknown
                        example: self
                        type: string
                    required:
                      - accountHolderName
                      - relationship
                    type: object
                  bankName:
                    description: >-
                      The name of the financial institution where the account is
                      held.
                    example: BBVA México
                    type: string
                  created:
                    description: The ISO 8601 timestamp when the bank account was created.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                  currency:
                    description: The currency of the bank account.
                    enum:
                      - mxn
                    example: mxn
                    type: string
                  customerId:
                    description: >-
                      The unique identifier of the customer who owns this bank
                      account.
                    example: customer_66c4168d418a410eae282b83883bdc39
                    type: string
                  id:
                    description: The unique identifier of the bank account.
                    example: bankAccount_ce745ef7f3df4b9a8bff1301ce24b045
                    type: string
                  networks:
                    description: >-
                      The payment networks supported by this bank account. For
                      MXN accounts, is exactly ["spei"].
                    example:
                      - spei
                    items:
                      enum:
                        - spei
                      type: string
                    type: array
                  status:
                    description: The current status of the bank account.
                    enum:
                      - pending
                      - active
                      - inactive
                      - invalid
                    example: active
                    type: string
                    x-enumNames:
                      - Pending
                      - Active
                      - Inactive
                      - Invalid
                  updated:
                    description: >-
                      The ISO 8601 timestamp when the bank account was last
                      updated.
                    example: '2025-01-01T00:00:00Z'
                    type: string
                required:
                  - id
                  - status
                  - customerId
                  - created
                  - updated
                  - bankName
                  - accountName
                  - currency
                  - accountDetails
                  - accountOwner
                  - networks
                title: MXN
                type: object
          type: array
        pagination:
          properties:
            hasNext:
              description: Whether there is a next page
              example: false
              type: boolean
            hasPrevious:
              description: Whether there is a previous page
              example: false
              type: boolean
            limit:
              description: Number of items per page
              example: 10
              exclusiveMaximum: false
              exclusiveMinimum: false
              maximum: 100
              minimum: 1
              type: number
            page:
              description: Current page number
              example: 1
              type: number
            total:
              description: Total number of items
              example: 1
              type: number
            totalPages:
              description: Total number of pages
              example: 1
              type: number
          required:
            - page
            - limit
            - total
            - totalPages
            - hasNext
            - hasPrevious
          type: object
      required:
        - data
        - pagination
      type: object
    ProblemDetailsDto:
      properties:
        code:
          type: string
        correlationId:
          type: string
        detail:
          type: string
        errors:
          items:
            properties:
              detail:
                type: string
              header:
                type: string
              parameter:
                type: string
              pointer:
                type: string
            required:
              - detail
            type: object
          type: array
        status:
          type: integer
        title:
          type: string
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.