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

# Update a bank account

> Update a bank account by ID for the authenticated team.



## OpenAPI

````yaml patch /bank-accounts/{id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /bank-accounts/{id}:
    patch:
      tags:
        - Bank Accounts
      summary: Update a bank account
      description: Update a bank account by ID for the authenticated team.
      operationId: updateBankAccount
      parameters:
        - schema:
            type: string
            format: uuid
            description: The unique identifier of the bank account.
            example: b7e6c2a0-1f2d-4c3b-9a8e-123456789abc
          required: true
          description: The unique identifier of the bank account.
          in: path
          name: id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: The unique identifier of the bank account.
                  example: b7e6c2a0-1f2d-4c3b-9a8e-123456789abc
                name:
                  type: string
                  description: The name of the bank account.
                  example: Checking Account
                enabled:
                  type: boolean
                  description: Whether the bank account is enabled.
                  example: true
                balance:
                  type: number
                  description: Current balance of the bank account.
                  example: 1500.75
                currency:
                  type: string
                  description: The currency code for the bank account (ISO 4217).
                  example: USD
                type:
                  type: string
                  enum:
                    - depository
                    - credit
                    - other_asset
                    - loan
                    - other_liability
                  description: Type of the bank account.
                  example: depository
                label:
                  type: string
                  nullable: true
                  enum:
                    - operating
                    - reserve
                    - collections
                    - credit_card
                    - line_of_credit
                    - escrow
                    - other
                    - null
                  description: MCA-specific account label.
                  example: operating
                balanceInverted:
                  type: boolean
                  description: Whether to invert the account balance sign for display.
                  example: false
                excludedFromTotals:
                  type: boolean
                  description: Whether to exclude this account from portfolio totals.
                  example: false
                hideTransactions:
                  type: boolean
                  description: >-
                    Whether to hide this account's transactions from the main
                    view.
                  example: false
              description: Schema for updating a bank account.
              example:
                id: b7e6c2a0-1f2d-4c3b-9a8e-123456789abc
                name: Checking Account
                enabled: true
                balance: 1500.75
                type: depository
      responses:
        '200':
          description: Bank account updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier for the bank account.
                    example: b7e6c2a0-1f2d-4c3b-9a8e-123456789abc
                  name:
                    type: string
                    nullable: true
                    description: Name of the bank account.
                    example: Checking Account
                  currency:
                    type: string
                    nullable: true
                    description: Currency code of the bank account (e.g., USD, EUR).
                    example: USD
                  type:
                    type: string
                    nullable: true
                    description: Type of the bank account (e.g., depository, credit).
                    example: depository
                  enabled:
                    type: boolean
                    description: Whether the bank account is enabled.
                    example: true
                  balance:
                    type: number
                    nullable: true
                    description: Current balance of the bank account.
                    example: 1500.75
                  manual:
                    type: boolean
                    nullable: true
                    description: Whether the bank account is a manual account.
                    example: false
                  label:
                    type: string
                    nullable: true
                    enum:
                      - operating
                      - reserve
                      - collections
                      - credit_card
                      - line_of_credit
                      - escrow
                      - other
                      - null
                    description: MCA-specific account label.
                    example: operating
                  balanceInverted:
                    type: boolean
                    description: Whether the account balance sign is inverted.
                    example: false
                  excludedFromTotals:
                    type: boolean
                    description: Whether the account is excluded from portfolio totals.
                    example: false
                  hideTransactions:
                    type: boolean
                    description: >-
                      Whether the account's transactions are hidden from the
                      main view.
                    example: false
                required:
                  - id
                  - name
                  - currency
                  - type
                  - enabled
                  - balance
                  - manual
                  - label
                  - balanceInverted
                  - excludedFromTotals
                  - hideTransactions
                description: A single bank account object response.
                example:
                  id: b7e6c2a0-1f2d-4c3b-9a8e-123456789abc
                  name: Checking Account
                  currency: USD
                  type: depository
                  enabled: true
                  balance: 1500.75
                  manual: false
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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