ValidateDocumentFields

When the user scans a document and presses the Upload button, the field values are validated with the following JSON post request to the Server.Connector - ValidateDocumentFields

 

This API is optional depending on the use case.

 

An example of the HTTP headers:

POST https://Server/ConnectorService.svc/json/ValidateDocumentFields HTTP/1.1
Content-Type: application/json; encoding=utf-8
Accept: application/json
Accept-Charset: utf-8


An example of the JSON body:

{
  "Configuration": {
    "ConfigurationUniqueId": "f7401f61-5401-4f54-ba47-0efc29fc77a1",
    "Name": "Test iConnector Server",
    "CustomConfiguration": null,
    "CustomData": "customer-id-12345"
  },
  "Document": {
    "DocumentTypeUniqueId": "878252e8-75b7-443f-ba87-6d082254eab4",
    "UniqueId": null,
    "Name": "Invoice",
    "SaveNameTemplate": null,
    "DocumentFormat": "PDF",
    "Fields": [
      {
        "Name": "InvoiceNumber",
        "Value": "33233"
      },
      {
        "Name": "InvoiceDate",
        "Value": "2014-06-01"
      },
      {
        "Name": "InvoiceStatus",
        "Value": "Received"
      }
    ],
    "CustomConfiguration": null
  }
}

 

An example of the JSON response:

[
  {
    "FieldName": "InvoiceNumber",
    "Message": "This is not a valid invoice number"
  }
]

 

If all fields are valid, the response should be an empty list.

 

The following explain the JSON body:

 

Create your own Knowledge Base