Skip to main content

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.

Use removeBankAccountInput to remove an existing bank account. You only need to provide the bank account’s id to remove it.
After reviewing the application for Maple Street Coffee, a developer at Clearpath Payments realizes that a personal account was mistakenly added instead of the business account. They need 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": []
        }
      }
    }
  }
}
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.