Skip to main content
mutation ProcessDecisionComponents($input: ProcessDecisionComponentsInput!) {
  processDecisionComponents(input: $input) {
    decisionComponents {
      attachments {
        fileName
        id
        size
        uploadedDateTime
      }
      comments {
        content
        createdDateTime
        decisionComponent
        id
        updatedDateTime
      }
      hasAttachments
      hasComments
      id
      items {
        descriptiveText
        displayOrder
        id
        label
        stakeholderId
        status
      }
      lastUpdatedBy {
        name
        type
      }
      schema {
        id
        label
        requiredRoles
        requiredScopes
      }
      status
      updatedDateTime
    }
    errors {
      ... on BadRequestError {
        advice
        code
        message
      }
      ... on ForbiddenError {
        advice
        code
        message
      }
      ... on InvalidActorError {
        advice
        code
        message
      }
      ... on InvalidOrganizationError {
        advice
        code
        message
      }
      ... on NotFoundError {
        advice
        code
        message
        resourceId
        resourceName
      }
      ... on ServerError {
        advice
        code
        message
      }
      ... on AcceptorApplicationFieldValidationError {
        code
        field
        message
      }
      ... on AcceptorApplicationStakeholderFieldValidationError {
        code
        field
        message
        stakeholderId
      }
      ... on AcceptorApplicationValidationError {
        code
        message
      }
      ... on AcceptorApplicationBankAccountFieldValidationError {
        bankAccountId
        code
        field
        message
      }
      ... on UnderwritingApplicationBankAccountFieldValidationError {
        bankAccountId
        code
        field
        message
      }
      ... on UnderwritingApplicationFieldValidationError {
        code
        field
        message
      }
      ... on UnderwritingApplicationStakeholderFieldValidationError {
        code
        field
        message
        stakeholderId
      }
      ... on UnderwritingApplicationValidationError {
        code
        message
      }
    }
  }
}
{
  "data": {
    "processDecisionComponents": {
      "decisionComponents": [
        {
          "attachments": [
            {
              "fileName": "business-license.pdf",
              "id": "c9a1e2d3-4b5f-6789-0abc-def123456789",
              "size": 0,
              "uploadedBy": "example",
              "uploadedDateTime": "2026-01-15T14:30:00Z"
            }
          ],
          "comments": [
            {
              "content": "Approved for mechanical keyboard accessories line.",
              "createdBy": "example",
              "createdDateTime": "2026-01-15T14:30:00Z",
              "decisionComponent": "example",
              "id": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901",
              "lastUpdatedBy": "example",
              "updatedDateTime": "2026-01-15T14:30:00Z"
            }
          ],
          "hasAttachments": true,
          "hasComments": true,
          "id": "e7c3a4b5-6d7e-8901-2cde-f34567890123",
          "items": [
            {
              "descriptiveText": "example",
              "displayOrder": 0,
              "fields": [
                "example"
              ],
              "id": "b6d4e5f6-7a8b-9012-3def-456789012345",
              "label": "example",
              "outcomes": "example",
              "stakeholderId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
              "status": "ACCEPTED"
            }
          ],
          "lastUpdatedBy": {
            "name": "Ben Torres",
            "type": "APP"
          },
          "schema": {
            "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "label": "example",
            "requiredRoles": [
              "BANK"
            ],
            "requiredScopes": [
              "example"
            ],
            "underwritingDecisionComponentItemSchemas": [
              "example"
            ]
          },
          "status": "ACCEPTED",
          "updatedDateTime": "2026-01-15T14:30:00Z"
        }
      ],
      "errors": [
        {
          "__typename": "BadRequestError",
          "advice": "example",
          "code": "BAD_REQUEST",
          "message": "example"
        }
      ]
    }
  }
}
Mutation

Arguments

input
ProcessDecisionComponentsInput!
required

Return type

ProcessDecisionComponentsPayload!
decisionComponents
[DecisionComponent!]
The decision components that were processed.
errors
[ProcessDecisionComponentsError!]
mutation ProcessDecisionComponents($input: ProcessDecisionComponentsInput!) {
  processDecisionComponents(input: $input) {
    decisionComponents {
      attachments {
        fileName
        id
        size
        uploadedDateTime
      }
      comments {
        content
        createdDateTime
        decisionComponent
        id
        updatedDateTime
      }
      hasAttachments
      hasComments
      id
      items {
        descriptiveText
        displayOrder
        id
        label
        stakeholderId
        status
      }
      lastUpdatedBy {
        name
        type
      }
      schema {
        id
        label
        requiredRoles
        requiredScopes
      }
      status
      updatedDateTime
    }
    errors {
      ... on BadRequestError {
        advice
        code
        message
      }
      ... on ForbiddenError {
        advice
        code
        message
      }
      ... on InvalidActorError {
        advice
        code
        message
      }
      ... on InvalidOrganizationError {
        advice
        code
        message
      }
      ... on NotFoundError {
        advice
        code
        message
        resourceId
        resourceName
      }
      ... on ServerError {
        advice
        code
        message
      }
      ... on AcceptorApplicationFieldValidationError {
        code
        field
        message
      }
      ... on AcceptorApplicationStakeholderFieldValidationError {
        code
        field
        message
        stakeholderId
      }
      ... on AcceptorApplicationValidationError {
        code
        message
      }
      ... on AcceptorApplicationBankAccountFieldValidationError {
        bankAccountId
        code
        field
        message
      }
      ... on UnderwritingApplicationBankAccountFieldValidationError {
        bankAccountId
        code
        field
        message
      }
      ... on UnderwritingApplicationFieldValidationError {
        code
        field
        message
      }
      ... on UnderwritingApplicationStakeholderFieldValidationError {
        code
        field
        message
        stakeholderId
      }
      ... on UnderwritingApplicationValidationError {
        code
        message
      }
    }
  }
}
{
  "data": {
    "processDecisionComponents": {
      "decisionComponents": [
        {
          "attachments": [
            {
              "fileName": "business-license.pdf",
              "id": "c9a1e2d3-4b5f-6789-0abc-def123456789",
              "size": 0,
              "uploadedBy": "example",
              "uploadedDateTime": "2026-01-15T14:30:00Z"
            }
          ],
          "comments": [
            {
              "content": "Approved for mechanical keyboard accessories line.",
              "createdBy": "example",
              "createdDateTime": "2026-01-15T14:30:00Z",
              "decisionComponent": "example",
              "id": "d8b2f3e4-5c6a-7890-1bcd-ef2345678901",
              "lastUpdatedBy": "example",
              "updatedDateTime": "2026-01-15T14:30:00Z"
            }
          ],
          "hasAttachments": true,
          "hasComments": true,
          "id": "e7c3a4b5-6d7e-8901-2cde-f34567890123",
          "items": [
            {
              "descriptiveText": "example",
              "displayOrder": 0,
              "fields": [
                "example"
              ],
              "id": "b6d4e5f6-7a8b-9012-3def-456789012345",
              "label": "example",
              "outcomes": "example",
              "stakeholderId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
              "status": "ACCEPTED"
            }
          ],
          "lastUpdatedBy": {
            "name": "Ben Torres",
            "type": "APP"
          },
          "schema": {
            "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "label": "example",
            "requiredRoles": [
              "BANK"
            ],
            "requiredScopes": [
              "example"
            ],
            "underwritingDecisionComponentItemSchemas": [
              "example"
            ]
          },
          "status": "ACCEPTED",
          "updatedDateTime": "2026-01-15T14:30:00Z"
        }
      ],
      "errors": [
        {
          "__typename": "BadRequestError",
          "advice": "example",
          "code": "BAD_REQUEST",
          "message": "example"
        }
      ]
    }
  }
}