---
updatedAt: 2026-06-29T20:33:19.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# Archive a bank account

Archive an existing bank account. In the response, the `archived` field is set as `true`.

Archiving a bank account at BILL has a set of requirements.
* **Bank account status**: The bank account `status` must be set as `VERIFIED`. You can verify the bank account with `POST /v3/funding-accounts/banks/{bankAccountId}/verify`.
* **Bank account user status**: The bank account user `verificationStatus` must be set as `VERIFIED`. To begin the verification process, nominate a bank account user with `POST /v3/funding-accounts/banks/users`.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BILL v3 API",
    "description": "BILL is a cloud-based financial operations platform for an organization's accounts payable (AP), accounts receivable (AR), and spend & expense (S&E) automation.\n\nThe BILL v3 API gives you access to the same infrastructure that powers the AP, AR, and S&E products. In addition, you can receive real-time event notifications with webhooks.\n\nThe BILL Developer Documentation is available at [developer.bill.com](https://developer.bill.com/docs/home).\n\n## Quickstart\nSign-up and generate a developer key for working with the BILL v3 API. With this key, you can build with the AP, AR, BILL network, and webhook workflows. See [Sandbox API sign up](https://developer.bill.com/docs/api-sandbox-sign-up) for more information.\n\n### Spend & Expense API\nAn API token is required for working with the Spend & Expense API. See [Authentication with Spend & Expense API token](https://developer.bill.com/docs/authentication-with-api-token) for more information.\n\n### BILL v3 API in Postman\nWith this collection, you have access to the BILL v3 API in Postman. When you save your sandbox API credentials as environment variables in Postman, you can simply refer to the variables when you are testing with the BILL v3 API. See [BILL v3 API in Postman](https://developer.bill.com/docs/bill-v3-api-in-postman) for more information.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://gateway.stage.bill.com/connect",
      "description": "sandbox"
    }
  ],
  "paths": {
    "/v3/funding-accounts/banks/{bankAccountId}/archive": {
      "post": {
        "tags": [
          "funding-accounts"
        ],
        "summary": "Archive a bank account",
        "description": "Archive an existing bank account. In the response, the `archived` field is set as `true`.\n\nArchiving a bank account at BILL has a set of requirements.\n* **Bank account status**: The bank account `status` must be set as `VERIFIED`. You can verify the bank account with `POST /v3/funding-accounts/banks/{bankAccountId}/verify`.\n* **Bank account user status**: The bank account user `verificationStatus` must be set as `VERIFIED`. To begin the verification process, nominate a bank account user with `POST /v3/funding-accounts/banks/users`.",
        "operationId": "archiveBankAccount",
        "parameters": [
          {
            "name": "sessionId",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "API session ID generated with `/v3/login`",
              "nullable": true,
              "example": "{{session_id}}"
            }
          },
          {
            "name": "devKey",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Developer key generated with your BILL developer account",
              "nullable": true,
              "example": "{{developer_key}}"
            }
          },
          {
            "name": "bankAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "minLength": 1,
              "type": "string",
              "description": "BILL-generated ID of the bank account. The value begins with `bac`.",
              "example": "{{org_bank_account_id}}"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Archive a bank account response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBankAccountResponseDto"
                }
              }
            }
          },
          "4XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "List of errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BdcError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BankAccountOwnerType": {
        "type": "string",
        "description": "BankAccountOwnerType Enum.",
        "enum": [
          "BUSINESS",
          "PERSONAL"
        ]
      },
      "BankAccountStatus": {
        "type": "string",
        "description": "Bank account status.",
        "enum": [
          "NOT_VERIFIED",
          "VERIFIED",
          "PENDING",
          "BLOCKED",
          "EXPIRED",
          "INVALID",
          "UNDEFINED"
        ]
      },
      "BankAccountType": {
        "type": "string",
        "description": "BankAccountType Enum.",
        "enum": [
          "CHECKING",
          "SAVINGS"
        ]
      },
      "BankAccountVerificationLevel": {
        "type": "string",
        "description": "How strongly the bank account is verified.",
        "enum": [
          "NONE",
          "VERIFIED_FOR_FRAUD_RELAXED",
          "VERIFIED_FOR_FRAUD_STRICT",
          "FULLY_VERIFIED",
          "UNDEFINED"
        ]
      },
      "BdcError": {
        "required": [
          "category",
          "code",
          "severity",
          "timestamp"
        ],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "code": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "message": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Param"
            }
          },
          "detail": {
            "type": "string"
          },
          "help": {
            "type": "string"
          }
        }
      },
      "Category": {
        "type": "string",
        "enum": [
          "REQUEST",
          "APPLICATION",
          "SERVER",
          "DOWNSTREAM"
        ]
      },
      "OrganizationBankAccountDefault": {
        "type": "object",
        "properties": {
          "payables": {
            "type": "boolean",
            "description": "Set as `true` if the bank account is set as default for Accounts Payable operations"
          },
          "receivables": {
            "type": "boolean",
            "description": "Set as `true` if the bank account is set as default for Accounts Receivable operations"
          }
        },
        "description": "Bank account defaults."
      },
      "OrganizationBankAccountResponseDto": {
        "required": [
          "archived",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "BILL-generated ID of the bank account. The value begins with `bac`."
          },
          "archived": {
            "type": "boolean",
            "description": "Set as `true` if the bank account is archived"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountStatus"
              },
              {
                "description": "Bank account status."
              }
            ]
          },
          "verificationLevel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountVerificationLevel"
              },
              {
                "description": "How strongly the bank account is verified."
              }
            ]
          },
          "createdBy": {
            "type": "string",
            "description": "BILL-generated ID of the user that created the bank account. The value begins with `006`."
          },
          "routingNumber": {
            "type": "string",
            "description": "Bank routing number"
          },
          "accountNumber": {
            "type": "string",
            "description": "Bank account number"
          },
          "nameOnAccount": {
            "type": "string",
            "description": "Full name on bank account"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountType"
              },
              {
                "description": "Bank account type"
              }
            ]
          },
          "ownerType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BankAccountOwnerType"
              },
              {
                "description": "Bank account owner type"
              }
            ]
          },
          "bankName": {
            "type": "string",
            "description": "Bank name"
          },
          "accessToAdmins": {
            "type": "boolean",
            "description": "Set as `true` to enable access to all users with the `ADMINISTRATOR` user role"
          },
          "default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrganizationBankAccountDefault"
              },
              {
                "description": "Bank account default values for BILL AP and AR operations"
              }
            ]
          },
          "createdTime": {
            "type": "string",
            "description": "Created date and time",
            "format": "date-time"
          },
          "updatedTime": {
            "type": "string",
            "description": "Updated date and time",
            "format": "date-time"
          },
          "chartOfAccountId": {
            "type": "string",
            "description": "BILL-generated ID of the chart of accounts for the bank account. The value begins with `0ca`."
          }
        },
        "description": "Bank account response."
      },
      "Param": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "additional": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        }
      },
      "Severity": {
        "type": "string",
        "enum": [
          "ERROR",
          "WARNING",
          "INFORMATION"
        ]
      }
    }
  }
}
```