Truework subpackage_qualificationChecks API

The subpackage_qualificationChecks API from Truework — 3 operation(s) for subpackage_qualificationchecks.

OpenAPI Specification

truework-subpackage-qualificationchecks-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Truework Qualifications & Tenant Properties API (Beta) subpackage_orders subpackage_qualificationChecks API
  description: 'Public beta surfaces of the Truework API covering Qualification Checks (lightweight income/employment knockout decisions against a borrower''s verified employment data) and Tenant Properties (provider-defined verification configuration knobs). These endpoints are in public beta and the schema may evolve.

    '
  version: 2023-10-30-beta
  contact:
    name: Truework Implementations
    email: implementations@truework.com
    url: https://www.truework.com/docs
  license:
    name: Truework Terms of Service
    url: https://www.truework.com/legal/terms
servers:
- url: https://api.truework-sandbox.com
- url: https://api.truework.com
tags:
- name: subpackage_qualificationChecks
paths:
  /qualification-checks:
    post:
      operationId: create-new-qualification-check
      summary: Create a qualification check request
      description: 'Creates a new qualification check and returns a JSON object with the resulting evaluation.


        <Warning>

        This endpoint is in beta and is subject to change. Please contact [implementations@truework.com](mailto:implementations@truework.com) for more information before integrating.

        </Warning>

        '
      tags:
      - subpackage_qualificationChecks
      parameters:
      - name: Authorization
        in: header
        description: 'Bearer tokens conform to the [RFC6750](https://datatracker.ietf.org/doc/html/rfc6750#section-2.1) spec.



          Production API keys (secret keys) are prefixed with `tw_sk_` and sandbox keys are prefixed with `tw_sk_test_`. If your secret key is published, you should rotate your API keys.


          Truework.JS publishable keys are prefixed with `tw_pk_` and `tw_pk_test` respectively.



          **Examples**

          - For Authorization Headers: `Authorization: Bearer tw_sk_test_e508eb797edb95ade85284bcb54dd49ed45db1be`

          - For the "try it now" `token` field, input only the token itself, omitting `Bearer `.'
        required: true
        schema:
          type: string
      - name: Accept
        in: header
        description: Specify the content type and version that the API should use. It's recommended to include this to avoid breaking changes.
        required: false
        schema:
          $ref: '#/components/schemas/QualificationChecksPostParametersAccept'
          default: application/json
      responses:
        '201':
          description: Qualification Check Evaluation Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QualificationCheckResponseResourceV20231030'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400'
        '401':
          description: The request's authorization is missing, invalid, or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error403'
        '406':
          description: An invalid API version was requested
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error406'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error429'
        '451':
          description: Frozen SSN
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error451'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error500'
        '501':
          description: Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error501'
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QualificationCheckCreatePostRequestV20231030'
  /qualification-checks/{qualification_check_result_id}:
    get:
      operationId: get-one-qualification-check
      summary: Get one qualification check result
      description: 'Retrieves a qualification check result by id.


        <Warning>

        This endpoint is in beta and is subject to change. Please contact [implementations@truework.com](mailto:implementations@truework.com) for more information before integrating.

        </Warning>

        '
      tags:
      - subpackage_qualificationChecks
      parameters:
      - name: qualification_check_result_id
        in: path
        description: Qualification Check Result ID
        required: true
        schema:
          type: string
      - name: Authorization
        in: header
        description: 'Bearer tokens conform to the [RFC6750](https://datatracker.ietf.org/doc/html/rfc6750#section-2.1) spec.



          Production API keys (secret keys) are prefixed with `tw_sk_` and sandbox keys are prefixed with `tw_sk_test_`. If your secret key is published, you should rotate your API keys.


          Truework.JS publishable keys are prefixed with `tw_pk_` and `tw_pk_test` respectively.



          **Examples**

          - For Authorization Headers: `Authorization: Bearer tw_sk_test_e508eb797edb95ade85284bcb54dd49ed45db1be`

          - For the "try it now" `token` field, input only the token itself, omitting `Bearer `.'
        required: true
        schema:
          type: string
      - name: Accept
        in: header
        description: Specify the content type and version that the API should use. It's recommended to include this to avoid breaking changes.
        required: false
        schema:
          $ref: '#/components/schemas/QualificationChecksQualificationCheckResultIdGetParametersAccept'
          default: application/json
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QualificationCheckResponseResourceV20231030'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400'
        '401':
          description: The request's authorization is missing, invalid, or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error404'
        '406':
          description: An invalid API version was requested
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error406'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error429'
        '451':
          description: Frozen SSN
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error451'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error500'
        '501':
          description: Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error501'
  /qualification-check-sets:
    get:
      operationId: get-all-qualification-check-sets
      summary: Get all qualification check sets
      description: 'A qualification check set is a ruleset for evaluating income data.


        <Warning>

        This endpoint is in beta and is subject to change. Please contact [implementations@truework.com](mailto:implementations@truework.com) for more information before integrating.

        </Warning>

        '
      tags:
      - subpackage_qualificationChecks
      parameters:
      - name: limit
        in: query
        description: Limit the number of results returned.
        required: false
        schema:
          type: integer
          default: 25
      - name: offset
        in: query
        description: Offset the results by page
        required: false
        schema:
          type: integer
          default: 0
      - name: Authorization
        in: header
        description: 'Bearer tokens conform to the [RFC6750](https://datatracker.ietf.org/doc/html/rfc6750#section-2.1) spec.



          Production API keys (secret keys) are prefixed with `tw_sk_` and sandbox keys are prefixed with `tw_sk_test_`. If your secret key is published, you should rotate your API keys.


          Truework.JS publishable keys are prefixed with `tw_pk_` and `tw_pk_test` respectively.



          **Examples**

          - For Authorization Headers: `Authorization: Bearer tw_sk_test_e508eb797edb95ade85284bcb54dd49ed45db1be`

          - For the "try it now" `token` field, input only the token itself, omitting `Bearer `.'
        required: true
        schema:
          type: string
      - name: Accept
        in: header
        description: Specify the content type and version that the API should use. It's recommended to include this to avoid breaking changes.
        required: false
        schema:
          $ref: '#/components/schemas/QualificationCheckSetsGetParametersAccept'
          default: application/json
      responses:
        '200':
          description: Qualification Check Sets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QualificationCheckSetListResourceV20231030'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400'
        '401':
          description: The request's authorization is missing, invalid, or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error403'
        '406':
          description: An invalid API version was requested
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error406'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error429'
        '451':
          description: Frozen SSN
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error451'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error500'
        '501':
          description: Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error501'
components:
  schemas:
    _QualificationCheckResult:
      type: object
      properties:
        monthly_gross_income:
          type:
          - string
          - 'null'
          description: The monthly gross income calculated across all requested reports
        monthly_gross_income_fidelity:
          oneOf:
          - $ref: '#/components/schemas/QualificationCheckIncomeFidelity'
          - type: 'null'
        outcome:
          $ref: '#/components/schemas/QualificationCheckOutcome'
        rent_to_income_ratio:
          type:
          - string
          - 'null'
          description: The ratio of the specified rent to the monthly gross income of the applicant
        report_results:
          type: array
          items:
            $ref: '#/components/schemas/_QualificationCheckReportResult'
      required:
      - monthly_gross_income
      - monthly_gross_income_fidelity
      - outcome
      - rent_to_income_ratio
      - report_results
      title: _QualificationCheckResult
    QualificationCheckOutcome:
      type: string
      enum:
      - qualified
      - not_qualified
      - not_enough_information
      description: The outcome of evaluating a specified set of qualification checks against specified report data
      title: QualificationCheckOutcome
    Error404:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error404
    QualificationCheckKind:
      type: string
      enum:
      - applicant
      - guarantor
      description: The kind of qualification check being requested, either for the applicant or guarantor.
      title: QualificationCheckKind
    Error400:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/_InvalidRequestError'
      required:
      - error
      title: Error400
    Error403:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error403
    _InvalidRequestError:
      type: object
      properties:
        message:
          type: string
          default: Invalid field values provided
      required:
      - message
      title: _InvalidRequestError
    QualificationCheckCreatePostRequestV20231030:
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/QualificationCheckKind'
        metadata:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
          description: A single level key-value JSON object that can be used to store custom data on the qualification check; keys and values must be strings
        order_id:
          type:
          - string
          - 'null'
        order_ids:
          type:
          - array
          - 'null'
          items:
            type: string
        property_details:
          $ref: '#/components/schemas/_PropertyDetails-Input'
        qualification_check_set_id:
          type: string
        report_ids:
          type:
          - array
          - 'null'
          items:
            type: string
      required:
      - property_details
      - qualification_check_set_id
      title: QualificationCheckCreatePostRequestV20231030
    QualificationCheckSetListResourceV20231030:
      type: object
      properties:
        count:
          type: integer
        next:
          type:
          - string
          - 'null'
        previous:
          type:
          - string
          - 'null'
        results:
          type: array
          items:
            $ref: '#/components/schemas/QualificationCheckSetResourceV20231030'
      required:
      - count
      - next
      - previous
      - results
      title: QualificationCheckSetListResourceV20231030
    _QualificationCheckReportResult:
      type: object
      properties:
        monthly_gross_income:
          type:
          - string
          - 'null'
          description: The monthly gross income for a specific report
        monthly_gross_income_fidelity:
          oneOf:
          - $ref: '#/components/schemas/QualificationCheckIncomeFidelity'
          - type: 'null'
        report_id:
          type: string
        satisfied_document_income_requirements:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/_SatisfiedDocumentIncomeRequirement'
      required:
      - monthly_gross_income
      - monthly_gross_income_fidelity
      - report_id
      - satisfied_document_income_requirements
      title: _QualificationCheckReportResult
    _PropertyDetails-Output:
      type: object
      properties:
        rent:
          type: string
          description: The target rent amount for qualification, expressed in USD
      required:
      - rent
      title: _PropertyDetails-Output
    _SatisfiedDocumentIncomeRequirement:
      type: object
      properties:
        end_date:
          type:
          - string
          - 'null'
          format: date
        file_type:
          type: string
        start_date:
          type:
          - string
          - 'null'
          format: date
      required:
      - end_date
      - file_type
      - start_date
      title: _SatisfiedDocumentIncomeRequirement
    Error451:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error451
    Error406:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error406
    QualificationChecksPostParametersAccept:
      type: string
      enum:
      - application/json
      - application/json; version=2023-10-30
      default: application/json
      title: QualificationChecksPostParametersAccept
    QualificationChecksQualificationCheckResultIdGetParametersAccept:
      type: string
      enum:
      - application/json
      - application/json; version=2023-10-30
      default: application/json
      title: QualificationChecksQualificationCheckResultIdGetParametersAccept
    QualificationCheckSetsGetParametersAccept:
      type: string
      enum:
      - application/json
      - application/json; version=2023-10-30
      default: application/json
      title: QualificationCheckSetsGetParametersAccept
    QualificationCheckSetResourceV20231030:
      type: object
      properties:
        applicant_rent_to_income_ratio:
          type: string
          description: The ratio of the specified rent to the monthly gross income of the applicant.
        description:
          type:
          - string
          - 'null'
        guarantor_rent_to_income_ratio:
          type: string
          description: The ratio of the specified rent to the monthly gross income of the guarantor.
        id:
          type: string
        income_multiple:
          type: string
          description: Deprecated. Please use applicant_rent_to_income_ratio. Threshold ratio for target rent to monthly gross income. Must be greater than 0.
        name:
          type: string
      required:
      - applicant_rent_to_income_ratio
      - description
      - guarantor_rent_to_income_ratio
      - id
      - income_multiple
      - name
      title: QualificationCheckSetResourceV20231030
    Error429:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error429
    QualificationCheckIncomeFidelity:
      type: string
      enum:
      - estimate
      - source
      description: Whether or not the monthly gross income data was estimated using source data or provided directly from the source
      title: QualificationCheckIncomeFidelity
    _QualificationCheckSet:
      type: object
      properties:
        applicant_rent_to_income_ratio:
          type: string
          description: The ratio of the specified rent to the monthly gross income of the applicant.
        guarantor_rent_to_income_ratio:
          type: string
          description: The ratio of the specified rent to the monthly gross income of the guarantor.
        id:
          type: string
        income_multiple:
          type:
          - string
          - 'null'
          description: Deprecated. Please use applicant_rent_to_income_ratio. Threshold ratio for target rent to monthly gross income. Must be greater than 0
        name:
          type: string
      required:
      - applicant_rent_to_income_ratio
      - guarantor_rent_to_income_ratio
      - id
      - income_multiple
      - name
      title: _QualificationCheckSet
    Error401:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error401
    QualificationCheckResponseResourceV20231030:
      type: object
      properties:
        created:
          type: string
          format: date-time
        id:
          type: string
        kind:
          $ref: '#/components/schemas/QualificationCheckKind'
          description: The kind of qualification check that was performed, either for the applicant or guarantor
        metadata:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
          description: A single level key-value JSON object that can be used to store custom data on the qualification check; keys and values must be strings
        property_details:
          $ref: '#/components/schemas/_PropertyDetails-Output'
          description: Details from the originally supplied property, including the rent target
        qualification_check_set:
          $ref: '#/components/schemas/_QualificationCheckSet'
        result:
          $ref: '#/components/schemas/_QualificationCheckResult'
      required:
      - created
      - id
      - kind
      - metadata
      - property_details
      - qualification_check_set
      - result
      title: QualificationCheckResponseResourceV20231030
    Error501:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error501
    PropertyDetailsInputRent:
      oneOf:
      - type: number
        format: double
      - type: string
      description: The target rent amount for qualification, expressed in USD
      title: PropertyDetailsInputRent
    Error500:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      title: Error500
    _PropertyDetails-Input:
      type: object
      properties:
        rent:
          $ref: '#/components/schemas/PropertyDetailsInputRent'
          description: The target rent amount for qualification, expressed in USD
      required:
      - rent
      title: _PropertyDetails-Input
    Error:
      type: object
      properties:
        message:
          type: string
      required:
      - message
      title: Error
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: 'Bearer tokens conform to the [RFC6750](https://datatracker.ietf.org/doc/html/rfc6750#section-2.1) spec.



        Production API keys (secret keys) are prefixed with `tw_sk_` and sandbox keys are prefixed with `tw_sk_test_`. If your secret key is published, you should rotate your API keys.


        Truework.JS publishable keys are prefixed with `tw_pk_` and `tw_pk_test` respectively.



        **Examples**

        - For Authorization Headers: `Authorization: Bearer tw_sk_test_e508eb797edb95ade85284bcb54dd49ed45db1be`

        - For the "try it now" `token` field, input only the token itself, omitting `Bearer `.'