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

# Get Bank Accounts by Worker ID

> Retrieve all bank account objects belonging to a worker (employee or contractor) by their Zeal ID.

Returns a list of every [bank account object](/reference/bank-accounts/bank-account-object) belonging to the worker (employee or contractor) with the given `id`. To fetch a single account by its own ID instead, use [Get Bank Account by ID](/reference/bank-accounts/get-bank-account-by-id).

<Note>
  This is the same underlying `GET /bankaccount` endpoint as [Get Bank Account by ID](/reference/bank-accounts/get-bank-account-by-id) - the two pages document its two request/response shapes: pass a worker `id` to get a list, or a `bankAccountID` to get a single object.
</Note>


## OpenAPI

````yaml openapi/zeal-api.json get /bankaccount/
openapi: 3.1.0
info:
  title: zeal-api
  version: '1.0'
servers:
  - url: https://api.zeal.com
security:
  - sec0: []
paths:
  /bankaccount/:
    get:
      summary: Get Bank Accounts by Worker ID
      description: >-
        Retrieve all bank account objects belonging to a worker (employee or
        contractor) by their Zeal Employee ID or Contractor ID.
      operationId: get-bank-accounts-by-worker-id
      parameters:
        - name: companyID
          in: query
          description: Company ID of the employer
          required: true
          schema:
            type: string
        - name: id
          in: query
          description: Employee ID or Contractor ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: true
                    data:
                      - bankAccountID: '0987675234'
                        companyID: '0987654321'
                        id: '1234567890'
                        institution_name: PNC
                        account_number: '091736576493'
                        routing_number: '092784765833'
                        type: checking
                        nickname: Main spending account
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                    default: true
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        bankAccountID:
                          type: string
                          example: '0987675234'
                        companyID:
                          type: string
                          example: '0987654321'
                        id:
                          type: string
                          example: '1234567890'
                        institution_name:
                          type: string
                          example: PNC
                        account_number:
                          type: string
                          example: '091736576493'
                        routing_number:
                          type: string
                          example: '092784765833'
                        type:
                          type: string
                          example: checking
                        nickname:
                          type: string
                          example: Main spending account
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: false
                    errors:
                      - message: >-
                          Bank Account with this employeeID or contractorID does
                          not exist
                        code: 68
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                    default: true
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          example: >-
                            Bank Account with this employeeID or contractorID
                            does not exist
                        code:
                          type: integer
                          example: 68
                          default: 0
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: bearer

````