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

# Update existing bank account

> Update bank account details such as routing number on an existing acceptor application using the updateBankAccountInput.

Use `updateBankAccountInput` to update an existing bank account. You must include the bank account's id in the update input.

<Callout icon="clapperboard-play" color="#6938EF" type="scenario">
  **Scenario**

  After submitting the application, a developer at Clearpath Payments realizes an incorrect routing number was provided for Maple Street Coffee's business account. They need to update the bank account information with the correct routing number before the application can be properly validated.
</Callout>

<RequestExample>
  ```graphql Operation lines expandable theme={null}
  mutation UpdateAcceptorApplication($input: AcceptorApplicationUpdateInput!) {
    updateAcceptorApplication(input: $input) {
      errors {
        ... on Error {
          message
          __typename
        }
      }
      acceptorApplication {
        id
        applicationStatus
        billingAndFunding {
          bankAccounts {
            routingNumber
            id
          }
        }
      }
    }
  }
  ```

  ```json Variables lines expandable theme={null}
  {
    "input": {
      "id": "d7c5d7d7-b7be-4f50-8e11-2f141697fe12",
      "billingAndFunding": {
        "bankAccounts": [
          {
            "updateBankAccountInput": {
              "id": "f4350119-53a5-4d15-90f0-38b301ee0943",
              "routingNumber": "021000022",
              "accountName": "Updated Business Account Name"
            }
          }
        ]
      }
    }
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Response lines expandable theme={null}
  {
    "data": {
      "updateAcceptorApplication": {
        "acceptorApplication": {
          "id": "d7c5d7d7-b7be-4f50-8e11-2f141697fe12",
          "applicationStatus": "DRAFT",
          "billingAndFunding": {
            "bankAccounts": [
              {
                "routingNumber": "021000022",
                "id": "f4350119-53a5-4d15-90f0-38b301ee0943"
              }
            ]
          }
        }
      }
    }
  }
  ```
</ResponseExample>
