# Variable VerificationApiClient`Const`

VerificationApiClient: {
fetchExistingVerificationRequest: ((verificationId) => Promise<VerificationResponse>);
fetchNewVerificationRequest: ((programId, trackingId?, forceNewVerificationRequest?, headers?) => Promise<VerificationResponse>);
fetchProgramTheme: ((programId, locale?) => Promise<ProgramTheme>);
getIdCheckDocTypeForCountry: ((verificationId, countries) => Promise<ApplicableDocTypesResponse>);
getResendNewEmailCode: ((verificationId) => Promise<any>);
getResendNewSmsCode: ((verificationId) => Promise<any>);
submitStep: ((stepName, previousResponse, viewModel) => Promise<VerificationResponse | ErrorResponse>);
} = ...

#### Type declaration

- ##### fetchExistingVerificationRequest: ((verificationId) => Promise<VerificationResponse>)

  - - (verificationId): Promise<VerificationResponse>

    - #### Parameters

      - verificationId: string

      #### Returns Promise<VerificationResponse>

- ##### fetchNewVerificationRequest: ((programId, trackingId?, forceNewVerificationRequest?, headers?) => Promise<VerificationResponse>)

  - - (programId, trackingId?, forceNewVerificationRequest?, headers?): Promise<VerificationResponse>

    - Initiate a new verification attempt with the SheerID REST service.

      #### Parameters

      - programId: string

        Your programId from my.sheerid.com

      - trackingId: string = undefined

        Conversion trackingId to associate with this verification attempt.

      - forceNewVerificationRequest: boolean = false
      - headers: {} = {}

      #### Returns Promise<VerificationResponse>

- ##### fetchProgramTheme: ((programId, locale?) => Promise<ProgramTheme>)

  - - (programId, locale?): Promise<ProgramTheme>

    - #### Parameters

      - programId: string
      - `Optional` locale: "ar" | "bg" | "bn-IN" | "cs" | "da" | "de" | "el" | "en-GB" | "en-US" | "es-ES" | "es" | "fi" | "fr-CA" | "fr" | "ga" | "hi-IN" | "hr" | "hu" | "id" | "is" | "it" | "iw" | "ja" | "ko" | "lo" | "lt" | "ms" | "nl" | "nl-BE" | "no" | "pl" | "pt-BR" | "pt" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "sw" | "uk" | "ur" | "vi" | "th" | "tr" | "zh-HK" | "zh" | "zu"

      #### Returns Promise<ProgramTheme>

- ##### getIdCheckDocTypeForCountry: ((verificationId, countries) => Promise<ApplicableDocTypesResponse>)

  - - (verificationId, countries): Promise<ApplicableDocTypesResponse>

    - #### Parameters

      - verificationId: string
      - countries: string[]

      #### Returns Promise<ApplicableDocTypesResponse>

- ##### getResendNewEmailCode: ((verificationId) => Promise<any>)

  - - (verificationId): Promise<any>

    - #### Parameters

      - verificationId: string

      #### Returns Promise<any>

- ##### getResendNewSmsCode: ((verificationId) => Promise<any>)

  - - (verificationId): Promise<any>

    - #### Parameters

      - verificationId: string

      #### Returns Promise<any>

- ##### submitStep: ((stepName, previousResponse, viewModel) => Promise<VerificationResponse | ErrorResponse>)

  - - (stepName, previousResponse, viewModel): Promise<VerificationResponse | ErrorResponse>

    - #### Parameters

      - stepName: VerificationStep
      - previousResponse: VerificationResponse
      - viewModel: ViewModel

      #### Returns Promise<VerificationResponse | ErrorResponse>

- Defined in jslib/src/lib/ServerApi/VerificationApiClient.ts:378