{
  "openapi": "3.0.1",
  "info": {
    "title": "DISA API Documentation",
    "version": "crimcheck"
  },
  "paths": {
    "/v1/crimcheck/adverseaction/preparation/{orderId}": {
      "get": {
        "tags": [
          "Adverse Action"
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIPreparationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIPreparationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIPreparationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/v1/crimcheck/adverseaction/CreateAdverseAction": {
      "post": {
        "tags": [
          "Adverse Action"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AdverseActionAPICreateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdverseActionAPICreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdverseActionAPICreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdverseActionAPICreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateSuccessResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateSuccessResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPICreateErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/crimcheck/adverseaction/adverseactions": {
      "get": {
        "tags": [
          "Adverse Action"
        ],
        "parameters": [
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "onlyPending",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdverseActionAPIListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/v1/crimcheck/applicantlink": {
      "post": {
        "tags": [
          "Applicant Link"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicantLinkRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicantLinkRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicantLinkRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApplicantLinkRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkSuccess"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkSuccess"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkSuccess"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkError"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkError"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateApplicantLinkError"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/v1/crimcheck/applicantlink/{id}": {
      "get": {
        "tags": [
          "Applicant Link"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicantLinkResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicantLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetApplicantLinkResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/v1/crimcheck/auth/test": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/auth/headersecured": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAuthHeaderSecuredRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAuthHeaderSecuredRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAuthHeaderSecuredRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateAuthHeaderSecuredRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/auth/sso": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "redirect",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/auth/sso/order/{orderId}": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/auth/sso/applicantlink/{applicantLinkId}": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "applicantLinkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/customers/options": {
      "get": {
        "tags": [
          "Customers"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/orders": {
      "post": {
        "tags": [
          "Orders"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/v1/crimcheck/orders/{id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includePdf",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrderResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/v1/crimcheck/orders/status/{orderId}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/orders/heldorder": {
      "post": {
        "tags": [
          "Orders"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHeldOrderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHeldOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHeldOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHeldOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/products": {
      "get": {
        "tags": [
          "Products"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/v1/crimcheck/products/packagejson/{packageId}": {
      "get": {
        "tags": [
          "Products"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdverseActionAPIAdversableComponent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIAttribute"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIAttribute": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIComponent": {
        "type": "object",
        "properties": {
          "componentId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPICreateErrorResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPICreateRequest": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "waitingPeriodDays": {
            "type": "integer",
            "format": "int32"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "adverseActionFormId": {
            "type": "integer",
            "format": "int32"
          },
          "adverseData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIComponent"
            },
            "nullable": true
          },
          "customFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPICustomField"
            },
            "nullable": true
          },
          "statusPostbackUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPICreateSuccessResponse": {
        "type": "object",
        "properties": {
          "adverseActionId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPICustomField": {
        "type": "object",
        "properties": {
          "customFieldId": {
            "type": "integer",
            "format": "int32"
          },
          "customFieldValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIDisclaimerUrl": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIListItem": {
        "type": "object",
        "properties": {
          "adverseActionId": {
            "type": "integer",
            "format": "int32"
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "waitingPeriodDays": {
            "type": "integer",
            "format": "int32"
          },
          "preAdverseActionSent": {
            "type": "boolean"
          },
          "preAdverseActionSentDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adverseActionSent": {
            "type": "boolean"
          },
          "adverseActionSentDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postAdverseActionSent": {
            "type": "boolean"
          },
          "postAdverseActionSentDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "stopAdverseAction": {
            "type": "boolean"
          },
          "stopAdverseActionDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "adverseData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIAdversableComponent"
            },
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/AdverseActionAPIStatuses"
          },
          "createDateTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIListResponse": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalRecords": {
            "type": "integer",
            "format": "int32"
          },
          "adverseActionRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIListItem"
            },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIPreparationResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "adversableItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIAdversableComponent"
            },
            "nullable": true
          },
          "forms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionRequestForm"
            },
            "nullable": true
          },
          "defaultWaitingPeriodDays": {
            "type": "integer",
            "format": "int32"
          },
          "allowableWaitingPeriodDays": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "disclaimerLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionAPIDisclaimerUrl"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionAPIStatuses": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "AdverseActionRequestField": {
        "type": "object",
        "properties": {
          "fieldId": {
            "type": "integer",
            "format": "int32"
          },
          "fieldType": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "maxLength": {
            "type": "integer",
            "format": "int32"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdverseActionRequestForm": {
        "type": "object",
        "properties": {
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "formName": {
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdverseActionRequestField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicantLinkEmailOptions": {
        "type": "object",
        "properties": {
          "sendEmail": {
            "type": "boolean"
          },
          "sendFollowups": {
            "type": "boolean"
          },
          "sendConfirmation": {
            "type": "boolean"
          },
          "customEmailMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicantLinkPostbackStatuses": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "ApplicantLinkProducts": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "integer",
            "format": "int32"
          },
          "alaCarteServices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApplicantLinkService"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicantLinkRequestFormsCompletedPostbackRequest": {
        "type": "object",
        "properties": {
          "applicantLinkId": {
            "type": "integer",
            "format": "int32"
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ApplicantLinkPostbackStatuses"
          },
          "webhookCallbackId": {
            "type": "integer",
            "format": "int32"
          },
          "customerId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ApplicantLinkRequestOrderCompletedPostbackRequest": {
        "type": "object",
        "properties": {
          "applicantLinkId": {
            "type": "integer",
            "format": "int32"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "report": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "$ref": "#/components/schemas/OrderResults"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "webhookCallbackId": {
            "type": "integer",
            "format": "int32"
          },
          "externalSubjectId": {
            "type": "string",
            "nullable": true
          },
          "externalCustomerId": {
            "type": "string",
            "nullable": true
          },
          "externalRequestId": {
            "type": "string",
            "nullable": true
          },
          "customerId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ApplicantLinkService": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int32"
          },
          "minQuantity": {
            "type": "integer",
            "format": "int32"
          },
          "maxQuantity": {
            "type": "integer",
            "format": "int32"
          },
          "serviceCategory": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateApplicantLinkError": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateApplicantLinkRequest": {
        "required": [
          "emailAddress",
          "emailOptions",
          "firstName",
          "lastName",
          "phoneNumber",
          "products"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "minLength": 1,
            "type": "string"
          },
          "emailAddress": {
            "minLength": 1,
            "type": "string"
          },
          "phoneNumber": {
            "minLength": 1,
            "type": "string"
          },
          "allowNewYork": {
            "type": "boolean"
          },
          "requirePayment": {
            "type": "boolean"
          },
          "authorizationOnly": {
            "type": "boolean"
          },
          "customerEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "billingCode": {
            "type": "string",
            "nullable": true
          },
          "overrideAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "rush": {
            "type": "boolean"
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          },
          "iccJobCode": {
            "type": "string",
            "nullable": true
          },
          "statusPostbackURL": {
            "type": "string",
            "nullable": true
          },
          "orderPostbackURL": {
            "type": "string",
            "nullable": true
          },
          "expireDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "emailOptions": {
            "$ref": "#/components/schemas/ApplicantLinkEmailOptions"
          },
          "products": {
            "$ref": "#/components/schemas/ApplicantLinkProducts"
          },
          "integrationPartnerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "integrationPartnerCredentialsType": {
            "$ref": "#/components/schemas/IntegrationPartnerAuthenticationCredentialsType"
          },
          "integrationPartnerTokenType": {
            "$ref": "#/components/schemas/IntegrationPartnerAuthenticationExpirationTokenType"
          }
        },
        "additionalProperties": false
      },
      "CreateApplicantLinkSuccess": {
        "type": "object",
        "properties": {
          "applicantLinkId": {
            "type": "integer",
            "format": "int32"
          },
          "applicantLinkUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateHeldOrderRequest": {
        "type": "object",
        "properties": {
          "applicantLinkId": {
            "type": "integer",
            "format": "int32"
          },
          "overridePackageId": {
            "type": "integer",
            "format": "int32"
          },
          "billingCode": {
            "type": "string",
            "nullable": true
          },
          "iccJobCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrderMultipleResponseItem": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "orderTypeName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrderRequest": {
        "type": "object",
        "properties": {
          "settings": {
            "$ref": "#/components/schemas/OrderSettings"
          },
          "subject": {
            "$ref": "#/components/schemas/OrderSubject"
          },
          "items": {
            "$ref": "#/components/schemas/OrderContents"
          }
        },
        "additionalProperties": false
      },
      "CreateOrderResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "orderCreateResponses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateOrderMultipleResponseItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DOTAgency": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "format": "int32"
      },
      "DateRangeListInputModel": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "nullable": true
          },
          "end": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "startYearOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "endYearOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "stillEmployed": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "DrivingRecordFields": {
        "type": "object",
        "properties": {
          "licenseNumber": {
            "type": "string",
            "nullable": true
          },
          "licenseState": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DrugScreeningFields": {
        "required": [
          "reasonForTest"
        ],
        "type": "object",
        "properties": {
          "reasonForTest": {
            "$ref": "#/components/schemas/DrugScreeningReasonEnum"
          },
          "daysToExpiration": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dotAgency": {
            "$ref": "#/components/schemas/DOTAgency"
          },
          "driversLicenseNumber": {
            "type": "string",
            "nullable": true
          },
          "driversLicenseState": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DrugScreeningReasonEnum": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16
        ],
        "type": "integer",
        "format": "int32"
      },
      "EducationFields": {
        "required": [
          "city",
          "country",
          "schoolName",
          "state"
        ],
        "type": "object",
        "properties": {
          "degree": {
            "type": "string",
            "nullable": true
          },
          "major": {
            "type": "string",
            "nullable": true
          },
          "schoolName": {
            "minLength": 1,
            "type": "string"
          },
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "minLength": 1,
            "type": "string"
          },
          "phoneNumber1": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber2": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "nullable": true
          },
          "graduated": {
            "type": "boolean"
          },
          "typeOfEducation": {
            "type": "string",
            "nullable": true
          },
          "nameOnDiploma": {
            "type": "string",
            "nullable": true
          },
          "yearObtained": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateAuthHeaderSecuredRequest": {
        "type": "object",
        "properties": {
          "credential1": {
            "type": "string",
            "nullable": true
          },
          "credential2": {
            "type": "string",
            "nullable": true
          },
          "secret": {
            "type": "string",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetApplicantLinkResponse": {
        "type": "object",
        "properties": {
          "templateId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "requirePayment": {
            "type": "boolean"
          },
          "customerEmailAddress": {
            "type": "string",
            "nullable": true
          },
          "billingCode": {
            "type": "string",
            "nullable": true
          },
          "expireDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "appUrl": {
            "type": "string",
            "nullable": true
          },
          "completed": {
            "type": "boolean"
          },
          "report": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "applicantLinkId": {
            "type": "integer",
            "format": "int32"
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetOrderResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "completed": {
            "type": "boolean"
          },
          "report": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "$ref": "#/components/schemas/OrderLineItemResults"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "deleted": {
            "type": "boolean"
          },
          "externalCustomerId": {
            "type": "string",
            "nullable": true
          },
          "externalRequestId": {
            "type": "string",
            "nullable": true
          },
          "externalSubjectId": {
            "type": "string",
            "nullable": true
          },
          "orderType": {
            "$ref": "#/components/schemas/OrderTypeEnum"
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          },
          "dateIn": {
            "type": "string",
            "format": "date-time"
          },
          "dateOut": {
            "type": "string",
            "format": "date-time"
          },
          "createDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "subject": {
            "$ref": "#/components/schemas/GetOrderSubject"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetOrderResponseService"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrderResponseService": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "serviceName": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "$ref": "#/components/schemas/OrderLineItemResults"
          },
          "resultData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetOrderResponseServiceData"
            },
            "nullable": true
          },
          "inputData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetOrderResponseServiceData"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrderResponseServiceData": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrderSubject": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "dob": {
            "type": "string",
            "format": "date-time"
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "currentAddress": {
            "$ref": "#/components/schemas/GetOrderSubjectAddress"
          },
          "previousAddress": {
            "$ref": "#/components/schemas/GetOrderSubjectAddress"
          },
          "selfAdmittedCrimes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetOrderSubjectSelfAdmittedCrimes"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrderSubjectAddress": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "zipcode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrderSubjectSelfAdmittedCrimes": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "nullable": true
          },
          "county": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipcode": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "selfAdmittedCrime": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IntegrationPartnerAuthenticationCredentialsType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "IntegrationPartnerAuthenticationExpirationTokenType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "LicenseFields": {
        "type": "object",
        "properties": {
          "yearIssued": {
            "type": "integer",
            "format": "int32"
          },
          "licensingAgencyId": {
            "type": "string",
            "nullable": true
          },
          "licensingAgency": {
            "type": "string",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "nullable": true
          },
          "stateOfIssue": {
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderCompletedPostbackRequest": {
        "type": "object",
        "properties": {
          "customerAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "customerAccountPersonId": {
            "type": "integer",
            "format": "int32"
          },
          "customerId": {
            "type": "integer",
            "format": "int32"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "hasNYJurisdiction": {
            "type": "boolean"
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "orderId": {
            "type": "integer",
            "format": "int32"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "report": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "$ref": "#/components/schemas/OrderResults"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "externalSubjectId": {
            "type": "string",
            "nullable": true
          },
          "externalCustomerId": {
            "type": "string",
            "nullable": true
          },
          "externalRequestId": {
            "type": "string",
            "nullable": true
          },
          "webhookCallbackId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OrderContents": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "integer",
            "format": "int32"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderService"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderJurisdiction": {
        "required": [
          "county",
          "state"
        ],
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "minLength": 1,
            "type": "string"
          },
          "county": {
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderLineItemResults": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "OrderResults": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "OrderService": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int32"
          },
          "educationHistory": {
            "$ref": "#/components/schemas/EducationFields"
          },
          "workHistory": {
            "$ref": "#/components/schemas/WorkHistoryFields"
          },
          "reference": {
            "$ref": "#/components/schemas/ReferenceFields"
          },
          "driversLicense": {
            "$ref": "#/components/schemas/DrivingRecordFields"
          },
          "professionalLicense": {
            "$ref": "#/components/schemas/LicenseFields"
          },
          "workersComp": {
            "$ref": "#/components/schemas/WorkersCompFields"
          },
          "ucc": {
            "$ref": "#/components/schemas/UCCFields"
          },
          "drugScreening": {
            "$ref": "#/components/schemas/DrugScreeningFields"
          }
        },
        "additionalProperties": false
      },
      "OrderSettings": {
        "type": "object",
        "properties": {
          "billingCode": {
            "type": "string",
            "nullable": true
          },
          "rushOrder": {
            "type": "boolean"
          },
          "ignoreNYJurisdictions": {
            "type": "boolean"
          },
          "customerEmailAddresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "nullable": true
          },
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "completedCallbackURL": {
            "type": "string",
            "nullable": true
          },
          "overrideAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderSubject": {
        "required": [
          "currentAddress",
          "dob",
          "employmentLocation",
          "firstName",
          "lastName",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "minLength": 1,
            "type": "string"
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "minLength": 1,
            "type": "string"
          },
          "ssn": {
            "type": "string",
            "nullable": true
          },
          "dob": {
            "type": "string",
            "format": "date-time"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "minLength": 1,
            "type": "string"
          },
          "employmentLocation": {
            "minLength": 1,
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderSubjectAlias"
            },
            "nullable": true
          },
          "international": {
            "type": "boolean"
          },
          "sendCopyOfReport": {
            "$ref": "#/components/schemas/SubjectCopyReportOptions"
          },
          "currentAddress": {
            "$ref": "#/components/schemas/SubjectAddress"
          },
          "previousAddress": {
            "$ref": "#/components/schemas/SubjectAddress"
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderJurisdiction"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderSubjectAlias": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OrderTypeEnum": {
        "enum": [
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "ReferenceFields": {
        "required": [
          "firstName",
          "lastName",
          "phoneNumber1",
          "yearsKnown"
        ],
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "minLength": 1,
            "type": "string"
          },
          "relation": {
            "type": "string",
            "nullable": true
          },
          "yearsKnown": {
            "type": "integer",
            "format": "int32"
          },
          "phoneNumber1": {
            "minLength": 1,
            "type": "string"
          },
          "phoneNumber2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectAddress": {
        "required": [
          "addressLine1",
          "city",
          "country",
          "postalCode",
          "state"
        ],
        "type": "object",
        "properties": {
          "addressLine1": {
            "minLength": 1,
            "type": "string"
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SubjectCopyReportOptions": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "UCCFields": {
        "type": "object",
        "properties": {
          "institutionName": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkHistoryFields": {
        "required": [
          "city",
          "companyName",
          "contactFirstName",
          "contactLastName",
          "contractedEmployee",
          "okToContact",
          "phoneNumber1",
          "startDate",
          "state"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "minLength": 1,
            "type": "string"
          },
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber1": {
            "minLength": 1,
            "type": "string"
          },
          "phoneNumber2": {
            "type": "string",
            "nullable": true
          },
          "faxNumber": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "yourTitle": {
            "type": "string",
            "nullable": true
          },
          "contactTitle": {
            "type": "string",
            "nullable": true
          },
          "contactFirstName": {
            "minLength": 1,
            "type": "string"
          },
          "contactLastName": {
            "minLength": 1,
            "type": "string"
          },
          "contractedEmployee": {
            "type": "boolean"
          },
          "contractedCompanyName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "minLength": 1,
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "nullable": true
          },
          "reasonForLeaving": {
            "type": "string",
            "nullable": true
          },
          "okToContact": {
            "type": "boolean"
          },
          "dateRange": {
            "$ref": "#/components/schemas/DateRangeListInputModel"
          }
        },
        "additionalProperties": false
      },
      "WorkersCompFields": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Token for accessing secure APIs",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}