Skip to main content
Version: 17

Docteller document assessment provider

This provider is used to assess documents using the external service from DocTeller. Its primary function is to analyze a document's content (like an identity document or tax statement) and extract key data points.

The provider's process is a single API call:

  • API Call (readDocument): The document bytes are packaged into a multipart/form-data request and sent to the DocTeller API.
  • Validation and Consolidation: The response is validated for readability and successful data extraction.

Implementation class​

DocTellerDocumentAssessmentProvider

Required settings​

  • resourceUri: The base URL for the DocTeller API
  • API_KEY: The mandatory API key for authentication, read from settings or a vault.

Configuration​

docTellerProviderConfigurations (required): A list of configurations, one per document type. Each entry has:

  • documentTypes (required): Document types handled by this configuration (e.g. cni_nouvelle_verso, cni_nouvelle_recto, passeport).
  • fieldMapping (required): A list of field mappings. Each mapping has:
    • docTellerFieldName (required): Field name as returned by DocTeller.
    • inputFieldPath (required): Path on DocumentAssessmentDataPoints (combines dossier and party fields).
    • inputFieldType (optional): STRING (default) or DATE.
    • alphaNumeric (optional): When true, strips non-alphanumeric characters. Default false.