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 one of the following inputs to update an existing stakeholder:
  • updatePersonStakeholderInput
  • updateBusinessStakeholderInput
You must include the stakeholder’s id in the update input.
ScenarioAfter submitting the application, a developer at Clearpath Payments realizes they entered an incorrect Social Security Number for the Maple Street Coffee owner, Alex Chen. They need to update the stakeholder information with the correct SSN before the application can be properly validated.
mutation UpdateAcceptorApplication($input: AcceptorApplicationUpdateInput!) {
  updateAcceptorApplication(input: $input) {
    acceptorApplication {
      applicationStatus
      stakeholders {
        id
        ownershipPercentage
        ... on PersonStakeholderOutput {
          id
          identificationNumber {
            type
            last4
          }
        }
      }
    }
    errors {
      ... on Error {
        message
        __typename
      }
    }
  }
}
{
  "data": {
    "updateAcceptorApplication": {
      "acceptorApplication": {
        "id": "60c66576-0caf-4dd1-8c66-fccae049f0fd",
        "applicationStatus": "CREATED",
        "stakeholders": [
          {
            "id": "1012d1e1-521a-4086-a1ae-9551b9ba28cf",
            "taxIdentificationNumber": {
              "type": "TIN",
              "last4": "8934"
            }
          }
        ]
      }
    }
  }
}