OpenAPI SpecificationJSON
API Reference

Engine Field

Engine field objects define the data fields that an engine can extract from documents. Each field has a specific type (string, number, date, enum) and optional subtype for more precise data validation and formatting. Fields can be configured for tabular data extraction and support pre-trained field types for common document elements.

Engine field

Attribute
Type
Description
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field

List engine fields

GET api / v1 / engine_fields

Retrieve all engine field objects.

GET
/api/v1/engine_fields
curl -X GET "https://example.rossum.app/api/v1/engine_fields?engine=https%3A%2F%2Fexample.rossum.app%2Fapi%2Fv1%2Fengines%2F8&used=true"

Example response showing multiple engine fields for an invoice processing engine.

{
  "pagination": {
    "total": 15,
    "total_pages": 1,
    "next": null,
    "previous": null
  },
  "results": [
    {
      "id": 3,
      "url": "https://example.rossum.app/api/v1/engine_fields/3",
      "engine": "https://example.rossum.app/api/v1/engines/8",
      "name": "document_id",
      "label": "DocumentID",
      "type": "string",
      "subtype": "string",
      "pre_trained_field_id": "document_id",
      "tabular": false,
      "multiline": "false"
    },
    {
      "id": 4,
      "url": "https://example.rossum.app/api/v1/engine_fields/4",
      "engine": "https://example.rossum.app/api/v1/engines/8",
      "name": "amount_total",
      "label": "Total Amount",
      "type": "number",
      "subtype": "amount",
      "pre_trained_field_id": "amount_total",
      "tabular": false,
      "multiline": "false"
    },
    {
      "id": 5,
      "url": "https://example.rossum.app/api/v1/engine_fields/5",
      "engine": "https://example.rossum.app/api/v1/engines/8",
      "name": "date_issue",
      "label": "Issue Date",
      "type": "date",
      "subtype": null,
      "pre_trained_field_id": "date_issue",
      "tabular": false,
      "multiline": "false"
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
pagination*
pagination
next
URL

URL for the next page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the next page — do not attempt to construct or modify the cursor value.

previous
URL

URL for the previous page of results. Contains an opaque signed cursor query parameter. Use this URL directly to fetch the previous page — do not attempt to construct or modify the cursor value.

results*
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Create engine field

POST api / v1 / engine_fields

Create a new engine field object.

POST
/api/v1/engine_fields
curl -X POST "https://example.rossum.app/api/v1/engine_fields" \  -H "Content-Type: application/json" \  -d '{    "engine": "https://example.rossum.app/api/v1/engines/8",    "name": "vendor_name",    "label": "Vendor Name",    "type": "string",    "subtype": null,    "pre_trained_field_id": "sender_name",    "tabular": false,    "multiline": "false"  }'

Response after successfully creating a new engine field.

{
  "id": 10,
  "url": "https://example.rossum.app/api/v1/engine_fields/10",
  "engine": "https://example.rossum.app/api/v1/engines/8",
  "name": "vendor_name",
  "label": "Vendor Name",
  "type": "string",
  "subtype": null,
  "pre_trained_field_id": "sender_name",
  "tabular": false,
  "multiline": "false"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field

Response

201Created

Created

Attribute
Type
Description
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Retrieve engine field

GET api / v1 / engine_fields / {engineFieldID}

Retrieve an engine field object.

GET
/api/v1/engine_fields/{engineFieldID}
curl -X GET "https://example.rossum.app/api/v1/engine_fields/123"

Example response showing a document ID field configuration.

{
  "id": 3,
  "url": "https://example.rossum.app/api/v1/engine_fields/3",
  "engine": "https://example.rossum.app/api/v1/engines/8",
  "name": "document_id",
  "label": "DocumentID",
  "type": "string",
  "subtype": "string",
  "pre_trained_field_id": "document_id",
  "tabular": false,
  "multiline": "false"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Partial update engine field

PATCH api / v1 / engine_fields / {engineFieldID}

Update part of an engine field object.

PATCH
/api/v1/engine_fields/{engineFieldID}
curl -X PATCH "https://example.rossum.app/api/v1/engine_fields/123" \  -H "Content-Type: application/json" \  -d '{    "label": "Invoice ID"  }'

Response after successfully patching the engine field label.

{
  "id": 3,
  "url": "https://example.rossum.app/api/v1/engine_fields/3",
  "engine": "https://example.rossum.app/api/v1/engines/8",
  "name": "document_id",
  "label": "Invoice ID",
  "type": "string",
  "subtype": "string",
  "pre_trained_field_id": "document_id",
  "tabular": false,
  "multiline": "false"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
engine
URL

Engine object URL.

name
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label
string

Human readable name of the field.

type
"string" | "number" | "date" | "enum"

Type of the field.

subtype
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Delete engine field

DELETE api / v1 / engine_fields / {engineFieldID}

Delete engine field object.

DELETE
/api/v1/engine_fields/{engineFieldID}
curl -X DELETE "https://example.rossum.app/api/v1/engine_fields/123"
Empty
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

204No Content

No Content

No response body.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

Update engine field

PUT api / v1 / engine_fields / {engineFieldID}

Update engine field object.

PUT
/api/v1/engine_fields/{engineFieldID}
curl -X PUT "https://example.rossum.app/api/v1/engine_fields/123" \  -H "Content-Type: application/json" \  -d '{    "engine": "https://example.rossum.app/api/v1/engines/8",    "name": "document_id",    "label": "Invoice Number",    "type": "string",    "subtype": "alphanumeric",    "pre_trained_field_id": "document_id",    "tabular": false,    "multiline": "false"  }'

Response after successfully updating the engine field.

{
  "id": 3,
  "url": "https://example.rossum.app/api/v1/engine_fields/3",
  "engine": "https://example.rossum.app/api/v1/engines/8",
  "name": "document_id",
  "label": "Invoice Number",
  "type": "string",
  "subtype": "alphanumeric",
  "pre_trained_field_id": "document_id",
  "tabular": false,
  "multiline": "false"
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Conflict.",
  "code": "conflict_status"
}
{
  "detail": "Payload Too Large.",
  "code": "payload_too_large"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Request Body

application/json

Attribute
Type
Description
engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field

Response

200OK

OK

Attribute
Type
Description
id*
read-only
integer

Engine Field object ID.

url*
read-only
URL

Engine Field object URL.

engine*
URL

Engine object URL.

name*
string

Name of the field. Only numbers, characters and underscores are allowed. The value must be unique across all fields for given engine.

label*
string

Human readable name of the field.

type*
"string" | "number" | "date" | "enum"

Type of the field.

subtype*
string | null

Subtype for more specific field validation. Possible values depend on the field type:

String subtypes:

  • null: Plain text without any constraints
  • alphanumeric: Only characters a-z, A-Z, and 0-9 (whitespace stripped). Example: A 123bA123b.
  • numeric: Only numbers (whitespace stripped, useful for leading zeros). Example: 01 230123.
  • country_code: Two or three-letter country code (ISO 3166). Example: CZ or CZE.
  • currency_code: Three-letter currency code (ISO 4217). Example: USD.
  • iban: International Bank Account Number (up to 34 alphanumeric characters). Example: IE12BOFI90000112345678.
  • vat_number: VAT identification number (starts with country code, 2-13 characters). Example: CZ1234567890.

Number subtypes:

  • null: Plain number
  • integer: Whole number. Example: 10.010.
  • rate: Typically in range of 0-100%. Example: 10%10, 15,0015.
  • amount: Financial notation (parenthesis for negative values). Example: (100)-100, $10.510.5, ▲10-10.

Date subtypes:

  • null: Plain date
  • period_begin: Beginning of date period (fallback to first day of month)
  • period_end: End of date period (fallback to last day of month)
pre_trained_field_id*
string | null

Pre-trained field identifier for common document elements. See the pre_trained_fields endpoint for available values.

tabular*
boolean

Whether the field belongs to a multivalue row. Default is false. Must be in sync with all assigned schemas - tabular = true means that the field is a child of tabular multivalue.

Default: false
multiline*
"true" | "false"

Multiline configuration. Allowed values are:

  • true: Field's parent is of type tuple
  • false: Header field
400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

409Conflict

Conflict

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

413

Payload too large (especially for files uploaded).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

List pre-trained fields

GET api / v1 / engine_fields / pre_trained_fields

Get list of possible pre_trained_field_id fields that can be used when creating engine fields. The available fields depend on the engine_use_case query parameter.

generic_ap (default)

namelabeltypesubtypetabulardescription
account_numBank AccountstringalphanumericFalseBank account number. Whitespaces are stripped.
bank_numSort CodestringalphanumericFalseSort code. Numerical code of the bank.
ibanIBANstringibanFalseBank account number in IBAN format.
bicBIC/SWIFTstringalphanumericFalseBank BIC or SWIFT code.
const_symConstant SymbolstringalphanumericFalseStatistical code on payment order.
spec_symSpecific SymbolstringalphanumericFalsePayee id on the payment order, or similar.
var_symVariable symbolstringnumericFalseIn some countries used by the supplier to match the payment received against the invoice. Possible non-numeric characters are stripped.
termsTermsstringFalsePayment terms as written on the document (e.g. "45 days", "upon receipt").
payment_methodPayment methodstringFalsePayment method defined on a document (e.g. 'Cheque', 'Pay order', 'Before delivery')
customer_idCustomer NumberstringalphanumericFalseThe number by which the customer is registered in the system of the supplier. Whitespaces are stripped.
date_dueDate Duedateperiod_endFalseThe due date of the invoice.
date_issueIssue Datedateperiod_beginFalseDate of issue of the document.
date_uzpTax Point Datedateperiod_endFalseThe date of taxable event.
document_idDocument IdentifierstringalphanumericFalseDocument number. Whitespaces are stripped.
order_idOrder NumberstringalphanumericFalsePurchase order identification (Order Numbers not captured as "sender_order_id"). Whitespaces are stripped.
recipient_addressRecipient AddressstringFalseAddress of the customer.
recipient_dicRecipient Tax Numberstringvat_numberFalseTax identification number of the customer. Whitespaces are stripped.
recipient_icRecipient Company IDstringvat_numberFalseCompany identification number of the customer. Possible non-numeric characters are stripped.
recipient_nameRecipient NamestringFalseName of the customer.
recipient_vat_idRecipient VAT Numberstringvat_numberFalseCustomer VAT Number
recipient_delivery_nameRecipient Delivery NamestringFalseName of the recipient to whom the goods will be delivered.
recipient_delivery_addressRecipient Delivery AddressstringFalseAddress of the recipient where the goods will be delivered.
sender_addressSupplier AddressstringFalseAddress of the supplier.
sender_dicSupplier Tax Numberstringvat_numberFalseTax identification number of the supplier. Whitespaces are stripped.
sender_icSupplier Company IDstringvat_numberFalseBusiness/organization identification number of the supplier. Possible non-numeric characters are stripped.
sender_nameSupplier NamestringFalseName of the supplier.
sender_vat_idSupplier VAT Numberstringvat_numberFalseVAT identification number of the supplier.
sender_emailSupplier EmailstringFalseEmail of the sender.
sender_order_idSupplier's Order IDstringFalseInternal order ID in the suppliers system.
delivery_note_idDelivery Note IDstringFalseDelivery note ID defined on the invoice.
supply_placePlace of SupplystringFalsePlace of supply (the name of the city or state where the goods will be supplied).
currencyCurrencyenumFalseThe currency which the invoice is to be paid in. Possible values: CZK, DKK, EUR, GBP, NOK, SEK, HUF, USD, AUD, INR, CHF, CNY, JPY, PLN, RON, RUB or other. May be also in lowercase.
document_typeDocument TypeenumFalsePossible values: credit_note, debit_note, tax_invoice (most typical), proforma, receipt, delivery_note, order or other.
languageLanguageenumFalseThe language which the document was written in. Values are ISO 639-3 language codes, e.g.: eng, fra, deu, zho. See Languages Supported By Rossum
payment_method_typePayment Method TypeenumFalsePayment method used for the transaction. Possible values: card, cash.
amount_dueAmount DuenumberamountFalseFinal amount including tax to be paid after deducting all discounts and advances.
amount_roundingAmount RoundingnumberamountFalseRemainder after rounding amount_total.
amount_totalTotal AmountnumberamountFalseSubtotal over all items, including tax.
amount_paidAmount paidnumberamountFalseAmount paid already.
amount_total_baseTax Base TotalnumberamountFalseBase amount for tax calculation.
amount_total_taxTax TotalnumberamountFalseTotal tax amount.
tax_detail_baseTax BasenumberamountTrueSum of tax bases for items with the same tax rate.
tax_detail_rateTax RatenumberrateTrueOne of the tax rates in the tax breakdown.
tax_detail_taxTax AmountnumberamountTrueSum of taxes for items with the same tax rate.
tax_detail_totalTax TotalnumberamountTrueTotal amount including tax for all items with the same tax rate.
tax_detail_codeTax CodestringalphanumericTrueText on document describing tax code of the tax rate (e.g. 'GST', 'CGST', 'DPH', 'TVA'). If multiple tax rates belong to one tax code on the document, the tax code will be assigned only to the first tax rate. (in future such tax code will be distributed to all matching tax rates.)
table_column_codeItem Code/IDstringalphanumericTrueCan be the SKU, EAN, a custom code (string of letters/numbers) or even just the line number.
table_column_descriptionItem DescriptionstringTrueLine item description. Can be multi-line with details.
table_column_quantityItem QuantitynumberTrueQuantity of the item.
table_column_uomItem Unit of MeasurestringTrueUnit of measure of the item (kg, container, piece, gallon, ...).
table_column_rateItem RatenumberrateTrueTax rate for the line item.
table_column_taxItem TaxnumberamountTrueTax amount for the line. Rule of thumb: tax = rate * amount_base.
table_column_amount_baseAmount BasenumberamountTrueUnit price without tax. (This is the primary unit price extracted.)
table_column_amountAmountnumberamountTrueUnit price with tax. Rule of thumb: amount = amount_base + tax.
table_column_amount_total_baseAmount Total BasenumberamountTrueThe total amount to be paid for all the items excluding the tax. Rule of thumb: amount_total_base = amount_base * quantity.
table_column_amount_totalAmount TotalnumberamountTrueThe total amount to be paid for all the items including the tax. Rule of thumb: amount_total = amount * quantity.
table_column_otherOtherstringTrueUnrecognized data type.
barcode_qrcodeQR CodestringFalse
barcode_ean2EAN-2stringFalse
barcode_ean5EAN-5stringFalse
barcode_ean8EAN-8stringFalse
barcode_ean13EAN-13stringFalse
barcode_code39Code 39stringFalse
barcode_code93Code 93stringFalse
barcode_code128Code 128stringFalse
barcode_isbn10ISBN-10stringFalse
barcode_isbn13ISBN-13stringFalse
barcode_upcaUPC-AstringFalse
barcode_upceUPC-EstringFalse
barcode_databarDataBarstringFalse
barcode_databar_expDataBar ExpandedstringFalse
barcode_codabarCodabarstringFalse
barcode_pdf417PDF417stringFalse
barcode_sqcodeSQCodestringFalse
barcode_i25Interleaved 2 of 5stringFalse

coupa_header_level

namelabeltypesubtypetabulardescription
document_typeDocument TypeenumFalsePossible values: credit_note, debit_note, tax_invoice (most typical), proforma, receipt, delivery_note, order or other.
document_idInvoice NumberstringalphanumericFalseThe ID of the document.
date_issueInvoice Datedateperiod_beginFalseDate of issue of the document.
date_dueDue Datedateperiod_endFalseThe due date of the invoice.
termsPayment TermsstringFalsePayment terms as written on the document (eg. "45 days", "upon receipt").
recipient_nameCustomer NamestringFalseName of the customer.
recipient_addressCustomer AddressstringFalseAddress of the customer.
recipient_vat_idCustomer Tax Numberstringvat_numberFalseCustomer VAT Number
sender_nameSupplier NamestringFalseName of the supplier.
sender_addressSupplier AddressstringFalseAddress of the supplier.
sender_vat_idSupplier Tax Numberstringvat_numberFalseVAT identification number of the supplier.
sender_remit_to_addressSupplier Remit to AddressstringFalse
ibanIBANstringibanFalseBank account number in IBAN format.
bicBIC/SWIFTstringalphanumericFalseBank BIC or SWIFT code.
account_numAccount NumberstringalphanumericFalseBank account number.
bank_numBank CodestringalphanumericFalseSort code. Numerical code of the bank.
original_document_idOriginal Invoice NumberstringFalse
original_date_issueOriginal Invoice DatedateFalse
amount_total_baseSubtotalnumberamountFalseBase amount for tax calculation.
amount_total_taxTax AmountnumberamountFalseTotal tax amount.
shipping_chargeChargesnumberFalse
amount_totalAmount DuenumberamountFalseSubtotal over all items, including tax.
currencyCurrencyenumFalseThe currency which the invoice is to be paid in. Possible values: CZK, DKK, EUR, GBP, NOK, SEK, HUF, USD, AUD, INR, CHF, CNY, JPY, PLN, RON, RUB or other. May be also in lowercase.
order_idPO NumberstringalphanumericFalsePurchase order identification.
contract_numberContract NumberstringFalse
service_periodService PeriodstringFalse
sp_date_startService Period StartdateFalse
sp_date_endService Period EnddateFalse
table_column_descriptionDescriptionstringTrueLine item description. Can be multi-line with details.
table_column_quantityQuantitynumberTrueQuantity of the item.
table_column_amount_baseUnit Price NetnumberTrueUnit price without tax.
table_column_total_baseTotal NetnumberTrue
table_column_order_idPO NumberstringTrue
table_column_codeSupplier Part NumberstringTrueCan be the SKU, EAN, a custom code (string of letters/numbers) or even just the line number.
service_period_item_startService Period Item StartdateTrue
service_period_item_endService Period Item EnddateTrue
service_period_itemService Period ItemstringTrue

coupa_line_level

namelabeltypesubtypetabulardescription
document_typeDocument TypeenumFalsePossible values: credit_note, debit_note, tax_invoice (most typical), proforma, receipt, delivery_note, order or other.
document_idInvoice NumberstringalphanumericFalseThe ID of the document.
date_issueInvoice Datedateperiod_beginFalseDate of issue of the document.
date_dueDue Datedateperiod_endFalseThe due date of the invoice.
termsPayment TermsstringFalsePayment terms as written on the document (eg. "45 days", "upon receipt").
recipient_nameCustomer NamestringFalseName of the customer.
recipient_addressCustomer AddressstringFalseAddress of the customer.
recipient_vat_idCustomer Tax Numberstringvat_numberFalseCustomer VAT Number
sender_nameSupplier NamestringFalseName of the supplier.
sender_addressSupplier AddressstringFalseAddress of the supplier.
sender_vat_idSupplier Tax Numberstringvat_numberFalseVAT identification number of the supplier.
sender_remit_to_addressSupplier Remit to AddressstringFalse
ibanIBANstringibanFalseBank account number in IBAN format.
bicBIC/SWIFTstringalphanumericFalseBank BIC or SWIFT code.
account_numAccount NumberstringalphanumericFalseBank account number.
bank_numBank CodestringalphanumericFalseSort code. Numerical code of the bank.
original_document_idOriginal Invoice NumberstringFalse
original_date_issueOriginal Invoice DatedateFalse
amount_total_baseTotal Without TaxnumberamountFalseBase amount for tax calculation.
amount_total_taxTax AmountnumberamountFalseTotal tax amount.
tax_rateTax RatenumberFalse
charge_descriptionCharge DescriptionstringTrue
charge_taxCharge Tax AmountnumberTrue
charge_tax_rateCharge Tax RatenumberTrue
charge_amountCharge AmountnumberTrue
amount_totalAmount DuenumberamountFalseSubtotal over all items, including tax.
currencyCurrencyenumFalseThe currency which the invoice is to be paid in. Possible values: CZK, DKK, EUR, GBP, NOK, SEK, HUF, USD, AUD, INR, CHF, CNY, JPY, PLN, RON, RUB or other. May be also in lowercase.
order_idPO NumberstringalphanumericFalsePurchase order identification.
contract_numberContract NumberstringFalse
service_periodService PeriodstringFalse
sp_date_startService Period StartdateFalse
sp_date_endService Period EnddateFalse
table_column_descriptionDescriptionstringTrueLine item description. Can be multi-line with details.
table_column_quantityQuantitynumberTrueQuantity of the item.
table_column_amount_baseUnit Price NetnumberTrueUnit price without tax.
table_column_amount_total_baseTotal NetnumberamountTrueThe total amount to be paid for all the items excluding the tax. Rule of thumb: amount_total_base = amount_base * quantity.
table_column_rateTax RatenumberrateTrueTax rate for the line item.
table_column_taxTax AmountnumberamountTrueTax amount for the line. Rule of thumb: tax = rate * amount_base.
table_column_order_idPO NumberstringTrue
table_column_codeSupplier Part NumberstringalphanumericTrueCan be the SKU, EAN, a custom code (string of letters/numbers) or even just the line number.
service_period_itemService Period ItemstringTrue
service_period_item_startService Period Item StartdateTrue
service_period_item_endService Period Item EnddateTrue
GET
/api/v1/engine_fields/pre_trained_fields
curl -X GET "https://example.rossum.app/api/v1/engine_fields/pre_trained_fields"
{
  "results": [
    {
      "name": "account_num",
      "label": "Bank Account",
      "section": "Identifiers",
      "type": "string",
      "subtype": "alphanumeric",
      "tabular": false,
      "multiline": "false",
      "description": "Bank account number. Whitespaces are stripped."
    }
  ]
}
{
  "detail": "Bad Request.",
  "code": "bad_request"
}
{
  "detail": "Invalid token.",
  "code": "authentication_failed"
}
{
  "detail": "Access to the requested resource is forbidden.",
  "code": "access_forbidden"
}
{
  "detail": "Not found.",
  "code": "not_found"
}
{
  "detail": "Request was rate limited.",
  "code": "rate_limited",
  "url": "https://rossum.app/api/docs/openapi/guides/overview/#rate-limiting"
}
{
  "detail": "Server error.",
  "code": "error"
}
{
  "detail": "Bad Gateway.",
  "code": "bad_gateway"
}
{
  "detail": "Service Unavailable.",
  "code": "service_unavailable"
}
{
  "detail": "Gateway timeout.",
  "code": "gateway_timeout"
}

Response

200OK

OK

Attribute
Type
Description
results
list[pre_trained_field]
name
string

Pre-trained field identifier.

label
string

Human readable name of the pre-trained field.

section
string

Category section of the pre-trained field.

type
"string" | "number" | "date" | "enum"

Field type.

subtype
string | null

Field subtype for more specific validation.

tabular
boolean

Whether the field is designed for tabular data.

multiline
"true" | "false"

Multiline configuration.

description
string

Detailed description of the pre-trained field.

400Bad Request

Invalid input data.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

401Unauthorized

The username/password is invalid or token is invalid (e.g. expired).

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

403Forbidden

Insufficient permission, missing authentication, invalid CSRF token and similar issue.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

404Not Found

The specified resource was not found.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

429Too Many Requests

Request rate is too high, wait before sending more requests. See Rate Limiting for more details.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

url
read-only
string

Link to the rate limiting documentation

500Internal Server Error

Server failure while processing the request.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

502Bad Gateway

Invalid response from the upstream server.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

503Service Unavailable

We're temporarily offline for maintenance. Please try again later.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error

504

Upstream server could not complete the request in time.

Attribute
Type
Description
detail
read-only
string

Detail of the error

code
read-only
string

Code of the error