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

# Get a vendor's bank accounts

> The external bank accounts of one of the calling company's vendors — the accounts
`POST /v1/payments` pays into. These are the vendor's accounts at its own bank, not the calling
company's Every accounts. Deleted accounts are never returned.




## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/vendors/{vendorId}/bank-accounts
openapi: 3.0.0
info:
  title: Every Public API
  version: 1.0.0
  description: >
    The Every public API. Keys are issued per company and every response is
    scoped to the company

    that owns the calling key.


    Every response carries an `x-request-id` header, generated by Every for that
    request. Quote it

    when contacting support: it is the id the request is recorded under. A
    caller-supplied

    `x-request-id` is never echoed.
servers:
  - url: https://api.public.every.io/company
    description: Production
security:
  - apiKey: []
tags:
  - name: Company
    description: The company the calling key belongs to.
  - name: Vendors
    description: The people and businesses the company pays, and their W9 details.
  - name: Bank accounts
    description: A vendor's accounts at its own bank, the accounts payments are paid into.
  - name: Payments
    description: >-
      ACH payments from the company's Every account to a vendor, and where they
      are.
  - name: Reference data
    description: The categories and departments a payment is filed under.
paths:
  /v1/vendors/{vendorId}/bank-accounts:
    get:
      tags:
        - Bank accounts
      summary: Get a vendor's bank accounts
      description: >
        The external bank accounts of one of the calling company's vendors — the
        accounts

        `POST /v1/payments` pays into. These are the vendor's accounts at its
        own bank, not the calling

        company's Every accounts. Deleted accounts are never returned.
      operationId: getVendorBankAccounts
      parameters:
        - name: vendorId
          in: path
          description: A vendor of the calling company
          required: true
          schema:
            $ref: '#/components/schemas/Id'
      responses:
        '200':
          description: The vendor's bank accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankAccountsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: The vendor was not found for this company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalServerError'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  schemas:
    Id:
      type: string
      format: uuid
    BankAccountsResponse:
      type: object
      required:
        - data
      properties:
        data:
          description: The vendor's bank accounts
          type: array
          items:
            $ref: '#/components/schemas/BankAccount'
    Error:
      type: object
      properties:
        message:
          type: string
        errors:
          type: array
          items:
            type: object
    BankAccount:
      description: >-
        An external bank account of a vendor: the account at the vendor's own
        bank that Every pays it into. Not an Every account of the calling
        company.
      type: object
      required:
        - id
        - vendor_id
        - type
        - is_default
        - created_at
      properties:
        id:
          $ref: '#/components/schemas/Id'
        vendor_id:
          $ref: '#/components/schemas/Id'
        type:
          $ref: '#/components/schemas/BankAccountType'
        is_default:
          description: >-
            Whether the Every dashboard pays this vendor into this account
            unless told otherwise. A payment created through this API always
            names its account.
          type: boolean
        created_at:
          description: The date the account was attached to the vendor
          type: string
          format: date
    BankAccountType:
      description: >-
        The rail the account is paid over. `ach` is the only type an account
        created through this API has, and the only one `POST /v1/payments` can
        pay into; the others appear on accounts added in the Every dashboard.
        The single-account endpoint reports bank fields for `ach` and `wire`
        accounts and `null` for the rest.
      type: string
      enum:
        - ach
        - wire
        - check
        - international
      example: ach
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The `x-api-key` header is missing, or the key is unknown, revoked, or
        not enabled for this API. The body is `{"message":"Forbidden"}`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: Unexpected error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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