account.documentType.list

Retrieve a list of Document Types available for the account.

POST http://api.kompliant.com/account.documentType.list (OpenAPI specification)

Usage Info

This method returns a list of all available Document Type records associated with a specific account, providing a complete view of acceptable document types and their requirements. Each document type includes its status, default requirements, and any alternative requirements that may apply. Use this method as a reference to be able to add Required Documents for a workflow, doing validations, or displaying available Document Type options to users during the application process.

Request

Authentication: KSig1-HMAC-SHA256

Parameters

ParameterTypeRequiredDescription
account_idstringYesThe account where the subject record will be created. The Account ID is supplied to you when you receive your credentials.

Example

{
  "account_id": "sb_j8gh53b"
}

Response

Data

ParameterTypeDescription
document_typesarrayAn array of document_type objects that contain information about document types available for the account.

If the Account has no Document Type objects, the array will be empty.

Document Type Parameters

ParameterTypeDescription
account_document_type_idstringThe ID of the Account Document Type.
document_type_codestringThe code of the document type. Must be one of the DOCUMENT_TYPE_CODES.
document_namestringDisplay name of the Document Type such as "Bank Statement" for BANK_STATEMENTS.
statusstringThe status of the Document Type. Must be one of ACCOUNT_DOCUMENT_TYPE_STATUSES.
requirementsobjectObject with the information of the default requirements defined in the table below.
alternate_requirementsarrayAn array of requirement text objects containing the alternative requirements for the Document Type. Requirement text is defined in the table below.

Default requirement parameters

ParameterTypeDescription
default_requirementobjectObject with the requirement_text for the default requirement, defined in the table below.

Requirement text parameters

ParameterTypeDescription
requirement_textstringThe display text for the requirement.

Example

{
  "meta": {
    "status": "SUCCESS",
    "trace_id": "trc_6OI5blm21ZoSlq0PC3RqJV",
    "version": "2025-03-24"
  },
  "data": {
    "document_types": [
      {
        "account_document_type_id": "adt_6zNzQZHSf26V83BO3uW6dS",
        "document_type_code": "PASSPORT",
        "document_name": "Passport Document",
        "status": "ACTIVE",
        "requirements": {
          "default_requirement": {
            "requirement_text": "Valid passport required"
          }
        },
        "alternate_requirements": [
          {
            "requirement_text": "Must be valid for at least 6 months"
          },
          {
            "requirement_text": "Must contain clear photo and signature"
          }
        ]
      }
    ]
  }
}

Errors

Error CodeHTTP CodePossible Cause
BAD_REQUEST400Required parameters not provided.
ENTITY_NOT_FOUND400The account_id provided does not exist.