{
  "openapi": "3.0.4",
  "info": {
    "title": "Ondato KYC API 1.0",
    "description": "Remote identification service integration. <a href='https://documenter.getpostman.com/view/517349/S1TVXxnL?version=latest'>Link to Postman documentation.</a><br>Environment: <font color='blue'><b>SANDBOX</b></font><br>",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "/kyc"
    }
  ],
  "paths": {
    "/face-authentication/{faceAuthenticationId}/data": {
      "get": {
        "tags": [
          "FaceAuthentication"
        ],
        "parameters": [
          {
            "name": "faceAuthenticationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationDataResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationDataResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationDataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/{identificationId}/businessdata": {
      "get": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "identificationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BusinesDataResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinesDataResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusinesDataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/{identificationId}/data": {
      "get": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "identificationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationDataResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationDataResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationDataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/{identificationId}/media": {
      "get": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "identificationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalFileResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalFileResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalFileResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/{identificationId}/reports/pdf/{language}": {
      "get": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "identificationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "application/pdf"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/signature-authentication/{signatureAuthenticationId}/data": {
      "get": {
        "tags": [
          "SignatureAuthentication"
        ],
        "parameters": [
          {
            "name": "signatureAuthenticationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationDataResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationDataResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationDataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/face-authentication/start": {
      "post": {
        "tags": [
          "FaceAuthentication"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FaceAuthenticationStartRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FaceAuthenticationStartRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FaceAuthenticationStartRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FaceAuthenticationStartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationStartResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationStartResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaceAuthenticationStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/sign": {
      "post": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationSignRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationSignRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationSignRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationSignRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationSignResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationSignResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationSignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/start": {
      "post": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationStartRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationStartRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationStartRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationStartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/identifications/StartKyb": {
      "post": {
        "tags": [
          "Identifications"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationKybStartRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationKybStartRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationKybStartRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentificationKybStartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentificationStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/signature-authentication/start": {
      "post": {
        "tags": [
          "SignatureAuthentication"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-key",
            "in": "header",
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SignatureAuthenticationStartRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignatureAuthenticationStartRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignatureAuthenticationStartRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignatureAuthenticationStartRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationStartResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationStartResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignatureAuthenticationStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnhandledErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/start-session": {
      "post": {
        "tags": [
          "Session"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/StartSessionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartSessionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartSessionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StartSessionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartSessionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "deprecated": true
      }
    },
    "/get-data": {
      "post": {
        "tags": [
          "Status"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDataResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDataResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "deprecated": true
      }
    },
    "/get-status": {
      "post": {
        "tags": [
          "Status"
        ],
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetStatusRequest"
              }
            }
          }
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": true
      }
    }
  },
  "components": {
    "schemas": {
      "AllDocumentTypes": {
        "enum": [
          "UNKNOWN",
          "ID_CARD",
          "PASSPORT",
          "RESIDENCE_PERMIT",
          "DRIVER_LICENSE",
          "INTERNAL_PASSPORT",
          "SOCIAL_ID",
          "OTHER"
        ],
        "type": "string"
      },
      "BusinesDataResponse": {
        "type": "object",
        "properties": {
          "companyCode": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClientData": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentData": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateOfExpiration": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dateOfIssue": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentNumber": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "$ref": "#/components/schemas/AllDocumentTypes"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "personalIdentityCode": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentDataResponse": {
        "type": "object",
        "properties": {
          "countryOfIssue": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "nullable": true
          },
          "dateOfExpiration": {
            "type": "string",
            "nullable": true
          },
          "dateOfIssue": {
            "type": "string",
            "nullable": true
          },
          "documentNumber": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "$ref": "#/components/schemas/AllDocumentTypes"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "issuingAuthority": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "nationalIdentityNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ErrorTypes"
          }
        },
        "additionalProperties": false
      },
      "ErrorTypes": {
        "enum": [
          "FAILED",
          "BAD_REQUEST",
          "IDENTIFICATION_NOT_FOUND",
          "SESSION_NOT_CREATED",
          "WRONG_LANGUAGE",
          "NO_FILES",
          "CAN_NOT_SIGN"
        ],
        "type": "string"
      },
      "ExternalFileResponse": {
        "type": "object",
        "properties": {
          "document": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "face": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "formFiles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "proofOfAddress": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "signedDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "videoFiles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FaceAuthenticationDataResponse": {
        "type": "object",
        "properties": {
          "isAuthenticated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "FaceAuthenticationStartRequest": {
        "type": "object",
        "properties": {
          "failureRedirectUrl": {
            "type": "string",
            "nullable": true
          },
          "identificationId": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FaceAuthenticationStartResponse": {
        "type": "object",
        "properties": {
          "faceAuthenticationId": {
            "type": "string",
            "format": "uuid"
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FlowData": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "nullable": true
          },
          "onlyMobile": {
            "type": "boolean"
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDataRequest": {
        "required": [
          "apikey",
          "token"
        ],
        "type": "object",
        "properties": {
          "apikey": {
            "maxLength": 64,
            "minLength": 64,
            "type": "string"
          },
          "token": {
            "maxLength": 32,
            "minLength": 32,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetDataResponse": {
        "type": "object",
        "properties": {
          "customFields": {
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/SessionData"
          },
          "documentData": {
            "$ref": "#/components/schemas/ParsedDocumentData"
          },
          "isCrossChecked": {
            "type": "boolean"
          },
          "rejectReason": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetStatusRequest": {
        "required": [
          "apikey",
          "email"
        ],
        "type": "object",
        "properties": {
          "apikey": {
            "maxLength": 64,
            "minLength": 64,
            "type": "string"
          },
          "email": {
            "maxLength": 255,
            "minLength": 5,
            "pattern": "^(?(\")(\".+?(?<!\\\\)\"@)|(([0-9a-zA-Z]((\\.(?!\\.))|[-!#\\$%&'\\*\\+/=\\?\\^`\\{\\}\\|~\\w])*)(?<=[0-9a-zA-Z])@))(?(\\[)(\\[(\\d{1,3}\\.){3}\\d{1,3}\\])|(([0-9a-zA-Z][-0-9a-zA-Z]*[0-9a-zA-Z]*\\.)+[a-zA-Z0-9][\\-a-zA-Z0-9]{0,22}[a-zA-Z0-9]))$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "IdentificationData": {
        "type": "object",
        "properties": {
          "failReason": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/IdentificationStatusTypes"
          }
        },
        "additionalProperties": false
      },
      "IdentificationDataResponse": {
        "type": "object",
        "properties": {
          "customData": {
            "nullable": true
          },
          "documentData": {
            "$ref": "#/components/schemas/DocumentData"
          },
          "dokobitSigningSessionId": {
            "type": "string",
            "nullable": true
          },
          "identificationData": {
            "$ref": "#/components/schemas/IdentificationData"
          },
          "proofOfAddress": {
            "$ref": "#/components/schemas/IdentificationProofOfAddress"
          },
          "readOnlyData": {
            "$ref": "#/components/schemas/ReadOnlyData"
          },
          "requestData": {
            "$ref": "#/components/schemas/RequestData"
          }
        },
        "additionalProperties": false
      },
      "IdentificationKybStartRequest": {
        "type": "object",
        "properties": {
          "customData": {
            "nullable": true
          },
          "flowData": {
            "$ref": "#/components/schemas/FlowData"
          }
        },
        "additionalProperties": false
      },
      "IdentificationProofOfAddress": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "parish": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentificationSignRequest": {
        "type": "object",
        "properties": {
          "flowData": {
            "$ref": "#/components/schemas/SignFlowData"
          },
          "identificationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentificationSignResponse": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentificationStartRequest": {
        "type": "object",
        "properties": {
          "customData": {
            "nullable": true
          },
          "flowData": {
            "$ref": "#/components/schemas/FlowData"
          },
          "requestData": {
            "$ref": "#/components/schemas/RequestData"
          }
        },
        "additionalProperties": false
      },
      "IdentificationStartResponse": {
        "type": "object",
        "properties": {
          "identificationId": {
            "type": "string",
            "nullable": true
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IdentificationStatusTypes": {
        "enum": [
          "APPROVED",
          "PENDING",
          "FAILED",
          "SUCCESSFUL",
          "ABORTED"
        ],
        "type": "string"
      },
      "ParsedDocumentData": {
        "type": "object",
        "properties": {
          "birthdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "documentNumber": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "expireDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "personCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReadOnlyData": {
        "type": "object",
        "properties": {
          "documentData": {
            "$ref": "#/components/schemas/DocumentDataResponse"
          },
          "signatureData": {
            "$ref": "#/components/schemas/SignatureStatusResponse"
          }
        },
        "additionalProperties": false
      },
      "RequestData": {
        "type": "object",
        "properties": {
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "externalReferenceId": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "middleName": {
            "type": "string",
            "nullable": true
          },
          "personalIdentityCode": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SessionData": {
        "type": "object",
        "properties": {
          "address": {
            "maxLength": 255,
            "minLength": 5,
            "type": "string",
            "nullable": true
          },
          "birthdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "maxLength": 128,
            "minLength": 5,
            "pattern": "^(?(\")(\".+?(?<!\\\\)\"@)|(([0-9a-zA-Z]((\\.(?!\\.))|[-!#\\$%&'\\*\\+/=\\?\\^`\\{\\}\\|~\\w])*)(?<=[_0-9a-zA-Z])@))(?(\\[)(\\[(\\d{1,3}\\.){3}\\d{1,3}\\])|(([0-9a-zA-Z][-0-9a-zA-Z]*[0-9a-zA-Z]*\\.)+[a-zA-Z0-9][\\-a-zA-Z0-9]{0,22}[a-zA-Z0-9]))$",
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "maxLength": 255,
            "minLength": 2,
            "type": "string",
            "nullable": true
          },
          "language": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "maxLength": 255,
            "minLength": 2,
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "maxLength": 3,
            "minLength": 3,
            "type": "string",
            "nullable": true
          },
          "personCode": {
            "maxLength": 64,
            "minLength": 5,
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 22,
            "minLength": 6,
            "pattern": "^[0-9 /)(+.-]{1,}$",
            "type": "string",
            "nullable": true
          },
          "refId": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SignFlowData": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "nullable": true
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SignatureAuthenticationDataResponse": {
        "type": "object",
        "properties": {
          "isAuthenticated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SignatureAuthenticationStartRequest": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "nullable": true
          },
          "redirectUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SignatureAuthenticationStartResponse": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "type": "string",
            "nullable": true
          },
          "signatureAuthenticationId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "SignatureStatusResponse": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "nullable": true,
            "writeOnly": true
          },
          "countryOfIssue": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "nullable": true
          },
          "dateOfSigning": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "writeOnly": true
          },
          "nationalIdentityNumber": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true,
            "writeOnly": true
          }
        },
        "additionalProperties": false
      },
      "StartSessionRequest": {
        "required": [
          "apikey"
        ],
        "type": "object",
        "properties": {
          "apikey": {
            "maxLength": 64,
            "minLength": 64,
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/SessionData"
          }
        },
        "additionalProperties": false
      },
      "StartSessionResponse": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UnhandledErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "FaceAuthentication"
    },
    {
      "name": "Identifications"
    },
    {
      "name": "SignatureAuthentication"
    },
    {
      "name": "Session"
    },
    {
      "name": "Status"
    }
  ]
}