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

# List your bank accounts

> The bank accounts a charge can be deposited in: your verified accounts, in the order you gave them in the dashboard. Not paginated, since a business has at most ten. Accounts are added, ordered and removed by the owner in the dashboard; this API only reads them.



## OpenAPI

````yaml GET /developer/v1/bank-account
openapi: 3.1.0
info:
  title: Compago API
  version: 1.0.0
  description: >-
    Public and private API endpoints for Compago's payment infrastructure. This
    specification currently includes endpoints for one-time payments. More
    endpoints will be added as the platform evolves.
servers:
  - url: https://demo-api-harmony.compago.com/api
  - url: https://api-harmony.compago.com/api
security: []
tags:
  - name: OneTimePayment
    description: Endpoints for creating and processing one-time payment links
  - name: PaymentMethod
    description: >-
      Endpoints for saving cards, charging saved payment methods, holding and
      capturing funds, and processing refunds
  - name: PaymentIntent
    description: >-
      Endpoints for creating and managing card-present payment intents for POS
      terminal integrations
  - name: Payments
    description: Read the payments your organization has taken
  - name: Subscriptions
    description: Read and manage recurring billing agreements
  - name: PaymentLinks
    description: Create, edit and retire hosted checkout links
  - name: Products
    description: Manage the catalogue behind product-based payment links
  - name: Promotions
    description: Read the promotions your organization funds or benefits from
  - name: Salespeople
    description: Read the point-of-sale operators in your organization
  - name: Organization
    description: Read your organization profile and its members
  - name: SavedCards
    description: Read saved payment methods and their payments
paths:
  /developer/v1/bank-account:
    get:
      tags:
        - Organization
      summary: List your bank accounts
      description: >-
        The bank accounts a charge can be deposited in: your verified accounts,
        in the order you gave them in the dashboard. Not paginated, since a
        business has at most ten. Accounts are added, ordered and removed by the
        owner in the dashboard; this API only reads them.
      operationId: listPublicBankAccounts
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  routingMode:
                    type: string
                    enum:
                      - AUTOMATIC
                      - MANUAL
                    description: >-
                      How your sales are shared between your accounts when a
                      charge names none. `AUTOMATIC`: each sale goes to the
                      first account that still has room in its monthly amount.
                      `MANUAL`: each sale goes to your default account.
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PublicBankAccount'
                required:
                  - routingMode
                  - data
        '401':
          description: Unauthorized. The `x-api-key` header is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '403':
          description: >-
            Forbidden. The key is not bound to an organization, or the
            organization is not a merchant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          description: >-
            Rate limit exceeded. See the `Retry-After` and `X-RateLimit-*`
            headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PublicBankAccount:
      type: object
      description: >-
        A bank account a charge can be deposited in. It carries no account
        number, holder or bank: those are settlement details and are never
        returned by this API.
      properties:
        id:
          type: string
          format: uuid
          description: Send it as `bankAccountId` when you create a charge.
        name:
          type: string
          example: Sucursal Norte
          description: The name given to the account in the dashboard.
        isDefault:
          type: boolean
          description: >-
            `true` on the first account of your list. With manual sharing, a
            charge that names no account is deposited here.
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - isDefault
        - createdAt
    PublicError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description.
        code:
          type: string
          description: Stable machine-readable code. Branch on this, not on `message`.
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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