> ## Documentation Index
> Fetch the complete documentation index at: https://docs.varchev.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post scan documents



## OpenAPI

````yaml KYC post /scanDocuments
openapi: 3.0.1
info:
  title: KYC
  description: kyc
  version: 1.0.0
servers:
  - url: https://gateway.varchev.com/kyc
security: []
paths:
  /scanDocuments:
    post:
      parameters:
        - name: X-token
          in: header
          required: true
          style: simple
          explode: false
          schema:
            type: string
            description: authentication token from /authorize response
      requestBody:
        description: Sample Payload
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanRequest'
            example:
              country: UAE
              documentType: PASSPORT
              frontImage: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDA
              backImage: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDA
              disableExpiryValidation: true
              exportFaceImage: false
              startSession: true
        required: true
      responses:
        default:
          description: Default response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanResponse'
              example:
                requireManualReview: true
                sessionId: e63fd1c3-07a4-4b86-84dc-e93289ab3eda
                front:
                  secondaryId: MARIA
                  primaryId: DELA CRUZ
                  dateOfBirth: '800316'
                  dateOfExpiry: '210626'
                  documentNumber: P0000000A
                  nationality: PHL
                  issuer: PHL
                  sex: F
                  documentCode: P
                  mrzText: |-
                    P<PHLDELA<CRUZ<<MARIA<<<<<<<<<<<<<<<<<<<<<<<
                    P0000000A0PHL8003166F2106269<<<<<<<<<<<<<<02
                  mrzVerified: false
                  chipAvailable: true
                back: {}
                analysis:
                  front:
                    copy: 100
      security:
        - default: []
components:
  schemas:
    ScanRequest:
      required:
        - disableExpiryValidation
        - documentType
        - exportFaceImage
        - frontImage
      type: object
      properties:
        country:
          type: string
          enum:
            - UAE
            - OMN
            - PAK
            - SAU
            - BHR
            - KWT
            - QAT
            - NLD
            - OTHER
        documentType:
          type: string
          enum:
            - PASSPORT
            - ID
            - DRIVER_LICENCE
            - VEHICLE_LICENCE
            - VISA_DOCUMENT
            - SELFIE
            - UTILITY_BILL
            - PROOF_OF_RESIDENCE
            - BANK_STATEMENT
        frontImage:
          type: string
          format: binary
        backImage:
          type: string
          format: binary
        disableExpiryValidation:
          type: boolean
        exportFaceImage:
          type: boolean
        startSession:
          type: boolean
    ScanResponse:
      type: object
      properties:
        sessionId:
          type: string
        front:
          type: object
          properties:
            secondaryId:
              type: string
            primaryId:
              type: string
            dateOfBirth:
              type: string
            dateOfExpiry:
              type: string
            documentNumber:
              type: string
            nationality:
              type: string
            issuer:
              type: string
            sex:
              type: string
            documentCode:
              type: string
            mrzText:
              type: string
            mrzVerified:
              type: boolean
            chipAvailable:
              type: boolean
        back:
          type: object
          properties:
            secondaryId:
              type: string
            primaryId:
              type: string
            dateOfBirth:
              type: string
            dateOfExpiry:
              type: string
            documentNumber:
              type: string
            nationality:
              type: string
            issuer:
              type: string
            sex:
              type: string
            documentCode:
              type: string
            mrzText:
              type: string
            mrzVerified:
              type: boolean
            chipAvailable:
              type: boolean
        analysis:
          type: object
          properties:
            front:
              type: object
              properties:
                copy:
                  type: integer
            'back:':
              type: object
              properties:
                copy:
                  type: integer
  securitySchemes:
    default:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://test.com
          scopes: {}

````