Skip to content

Defined documents ​

Defined documents are documents read using a document definition. A definition says which fields a kind of document has, such as a UK council tax bill or a vehicle insurance certificate. This lets EyeDP read kinds of document that aren't one of our specific document types.

WARNING

Defined documents must be enabled for your account. Contact us to enable them.

Each definition has its own fields, so a defined document's data isn't in the extract of Get document. Read it from Get document extraction instead.

Definitions and definition ids ​

A definition has a key, such as uk_council_tax, and numbered versions. A new version can add, change or remove fields.

A definition id names one version: the key and the version number, joined by @. For example, uk_council_tax@2 is version 2 of uk_council_tax.

EndpointWhat it gives you
List definitionsThe definitions you can upload as, with the key and latest version of each
Get definitionThe fields of one version

Uploading a defined document ​

A document becomes a defined document in one of two ways:

  • You choose the definition. Send its key as definitionKey when you upload the document. The latest version is used.
  • Auto detect recognises it. When defined documents are enabled for your account, auto detect can also recognise them.

The document keeps the version it was processed with, even after a new version is published.

What you'll see ​

On Get document and Get case documents, a defined document has:

FieldValue
documentTypeDefined
definitionIdThe definition id of the version it was processed with, such as uk_council_tax@2
extractEmpty. Use Get document extraction

Its name uses its definition's name, such as UK council tax bill #1, on these endpoints and in Case Progress.

See Get document for an example.