OCR Invoice Job Template API (1.0.0)

Download OpenAPI specification:Download

API for managing OCR invoice job templates

OCR Invoice Job Template

Operations related to OCR invoice job template management

Get all OCR invoice job templates

Retrieve a list of all OCR invoice job templates with optional filtering and pagination

Authorizations:
ApiKeyAuth
query Parameters
limit
integer [ 1 .. 100 ]
Default: 50

Maximum number of records to return

offset
integer >= 0
Default: 0

Number of records to skip for pagination

sort
string

Field to sort by

order
string
Default: "desc"
Enum: "asc" "desc"

Sort order (asc or desc)

filter
string

Filter conditions in JSON format

search
string

Search term for text fields

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ],
  • "total": 0
}

Create a new OCR invoice job template

Create a new OCR invoice job template with the provided data

Authorizations:
ApiKeyAuth
Request Body schema: application/json
name
required
string

Name of the template

description
string

Description of the template

version
string

Template version

ocrEngine
required
string
Enum: "tesseract" "google-vision" "aws-textract" "azure-cognitive" "custom"

OCR engine to use

documentType
required
string
Enum: "invoice" "receipt" "bill" "statement" "other"

Type of document

required
object
object
object
supportedFormats
Array of strings
Items Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp"

Supported document formats

languages
Array of strings

Supported languages for OCR

isActive
boolean
Default: true

Whether the template is active

isDefault
boolean
Default: false

Whether this is the default template

createdBy
string

User who created the template

lastModifiedBy
string

User who last modified the template

object

Additional metadata

Responses

Request samples

Content type
application/json
{
  • "name": "Standard Invoice OCR Template",
  • "description": "string",
  • "version": "1.0.0",
  • "ocrEngine": "google-vision",
  • "documentType": "invoice",
  • "extractionRules": {
    },
  • "preprocessingSettings": {
    },
  • "postprocessingSettings": {
    },
  • "supportedFormats": [
    ],
  • "languages": [
    ],
  • "isActive": true,
  • "isDefault": false,
  • "createdBy": "string",
  • "lastModifiedBy": "string",
  • "metadata": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get OCR invoice job template by ID

Retrieve a specific OCR invoice job template by its ID

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

OCR invoice job template ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update OCR invoice job template

Update an existing OCR invoice job template with new data

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

OCR invoice job template ID

Request Body schema: application/json
name
required
string

Name of the template

description
string

Description of the template

version
string

Template version

ocrEngine
required
string
Enum: "tesseract" "google-vision" "aws-textract" "azure-cognitive" "custom"

OCR engine to use

documentType
required
string
Enum: "invoice" "receipt" "bill" "statement" "other"

Type of document

required
object
object
object
supportedFormats
Array of strings
Items Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp"

Supported document formats

languages
Array of strings

Supported languages for OCR

isActive
boolean
Default: true

Whether the template is active

isDefault
boolean
Default: false

Whether this is the default template

createdBy
string

User who created the template

lastModifiedBy
string

User who last modified the template

object

Additional metadata

Responses

Request samples

Content type
application/json
{
  • "name": "Standard Invoice OCR Template",
  • "description": "string",
  • "version": "1.0.0",
  • "ocrEngine": "google-vision",
  • "documentType": "invoice",
  • "extractionRules": {
    },
  • "preprocessingSettings": {
    },
  • "postprocessingSettings": {
    },
  • "supportedFormats": [
    ],
  • "languages": [
    ],
  • "isActive": true,
  • "isDefault": false,
  • "createdBy": "string",
  • "lastModifiedBy": "string",
  • "metadata": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete OCR invoice job template

Delete an existing OCR invoice job template

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

OCR invoice job template ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "OCR invoice job template deleted successfully"
}