Skip to main content
Use removeBankAccountInput to remove an existing bank account. You only need to provide the bank account’s id to remove it.
After reviewing his application, Ben realizes that he mistakenly added a personal account instead of his business account. He needs to remove this bank account from the application before proceeding with the underwriting process.
When removing bank accounts, be aware that at least one bank account may be required for application approval. Removing all bank accounts will cause validation to fail when you submit the application.
mutation UpdateAcceptorApplication($input: AcceptorApplicationUpdateInput!) {
  updateAcceptorApplication(input: $input) {
    errors {
      ... on Error {
        message
        __typename
      }
    }
    acceptorApplication {
      id
      applicationStatus
      billingAndFunding {
        bankAccounts {
          accountNumberLast4
          id
        }
      }
    }
  }
}
{
  "data": {
    "updateAcceptorApplication": {
      "acceptorApplication": {
        "id": "d7c5d7d7-b7be-4f50-8e11-2f141697fe12",
        "applicationStatus": "DRAFT",
        "billingAndFunding": {
          "bankAccounts": []
        }
      }
    }
  }
}
Run in Playground
Like stakeholder operations, you can perform multiple bank account operations in a single API call. For example, you can add new bank accounts, update existing ones, and remove others all in the same updateAcceptorApplication mutation.