Document Configuration
Use Document Configuration to create the document types your team processes. Define fields, sub-types, approval settings, and rejection reasons.
Use Document Configuration to create and maintain the document types your team processes, such as invoices, orders, quotes, or returns. Each type has its own field schema, sub-types, approval settings, and rejection reasons. Types also drive the Documents menu and appear as separate rows in Access Configuration.
The list shows each type's ID and Name. From here you can create a type, open Schema Editor with a row's edit action, or delete a type you no longer need.

Creating a document type

Schema editor
Select a row's edit action to open Schema Editor. It shows the type ID and related tabs. Each tab saves on its own, and unsaved changes are flagged.
Attributes – Fields used for extraction, forms, matching, and approval bindings.
Sub-types – Variants within this document type.
Approval Configuration – Fields that select the approval matrix and the amount used for thresholds.
Rejection Reasons – Coded reasons an approver can select when rejecting a document of this type.
Attributes
On Attributes, the tree lists Key, Name, and Type. Select Add field for a top-level field, or use a row's add action to nest under an OBJECT (or an ARRAY whose item type is OBJECT). When you change an existing field, the same form is labeled Edit field.
Set Type, Key, Name (EN), Description (EN), and Settings. ARRAY also needs Array item type. REFERENCE also needs Referenced entity. DECIMAL and an ARRAY of DECIMAL also have Precision.


Settings control how Schema Service treats the field when document data is created or updated:
Required – The field must be present.
Nullable – The field may contain an explicit
null.Read Only – The field cannot be edited through the schema.
Localized – The value is stored per language.
Field types
Choose a Type that matches the data:
TEXT – Strings such as IDs, names, and emails.
NUMBER – Whole numbers such as quantities.
DECIMAL – Amounts, with a Precision setting.
DATE, TIME, and DATE_TIME – Calendar and clock values.
BOOLEAN – Yes or no.
ENUM – A closed list of allowed values. Define the options as Enum options on an enum control in Form Layouts.
OBJECT – A group of nested fields. Add children with the row's add action.
ARRAY – A repeating list with an Array item type, typically an ARRAY of OBJECT for line items.
REFERENCE – A link to a Referenced entity (tenant master-data or custom-entity types, or platform entities such as customer, company, or product).
A REFERENCE value is picked later with dropdown or lookupModal in Form Layouts.
For DECIMAL (and an ARRAY of DECIMAL), Precision lists 0.1, 0.01 (default), 0.001, 0.0001, and None (−1). Each number is the smallest step the field allows. For example, 0.01 allows hundredths, which is typical for currency. None (−1) turns the step constraint off.
Description (EN)
Examples:
Country – Use the two-letter ISO country code from the address, not the full country name.
Customer – Identify the customer (buyer) party, not the company (seller) party.
Amount – Use the net amount before tax, not the gross or tax-inclusive total.
Example order schema
Nest OBJECT under OBJECT for grouped header data, for example Header → Customer → Address. Put repeating rows such as line items in an ARRAY of OBJECT. Form layouts and approval bindings later use dotted paths such as header.customer.id.
For a full Order schema, see Document Type in the Order Intake Example. Keep keys such as header, lineItems, and total stable once forms and approval start using them.
Sub-types
Use Sub-types when one document type needs different forms, validation rules, or matching for distinct variants. Each definition has a localized name, an order, and one or more field/value discriminators.
Add discriminators
Select Add discriminator. Set Binding to the schema field and Value to the document value that must match, for example Header › Company › ID and C00001. A discriminator can use a string, number, boolean, or enum leaf, including a nested field path.
Every discriminator on the definition must match. Missing or null values do not match. Strings are trimmed and case-sensitive. Numbers and booleans use their typed values.

When several definitions match:
The definition with more matching discriminators takes precedence.
The lower Order value breaks ties between equally specific definitions.
The resolved sub-type decides which Form Layouts, Business Rules, and Auto Matching apply. The cockpit resolves it from current document values; it does not store the sub-type as a separate document field.
Create sub-type definitions after the Attributes they use as discriminators. Keep localized names clear so administrators can pick the right sub-type on related configuration pages.
Approval configuration
On Approval Configuration, define how the cockpit selects an approval matrix for documents of this type.

Under Matching fields, select Add field for each value that picks the correct matrix. For each row, set:
Binding – The schema field, shown as a path such as Header › Company › ID.
Key – Unique short identifier the Approval Matrix uses for that matching column, for example
companyId. Do not use the reserved keycomment.Label – Name shown on the matrix.
Type – String (TEXT or ENUM) or Number (NUMBER or DECIMAL), taken from the bound field.
Amount field binding is required. It points to the document field whose value is compared with each approver's Limit (amount) in Approval Matrix – for example the order or invoice total. The picker lists only NUMBER and DECIMAL fields. Use DECIMAL for a currency-style Total.
Select Save when the matching fields and amount binding are complete. Then build the chains and limits in Approval Matrix. That page lists only types with a complete Approval Configuration – at least one matching field and an amount binding.
Remove approval configuration clears this type's approval setup. The type is no longer eligible on Approval Matrix until you save matching fields and an amount binding again. Existing matrix rows for that type stay stored but cannot be used until the type is eligible again.
Rejection reasons
On Rejection Reasons, define the coded reasons an approver can select when rejecting a document of this type. The Rejection Code is stored in approval history; the Rejection Reason is the label shown in the dialog.

Select Add reason, then enter a unique Rejection Code and a localized Rejection Reason. Each row needs a code and a reason in at least one language before you can save. When reasons exist, the approver must select one of them. The message remains optional. If no reasons are configured, the approver enters only an optional message.
Document types in the cockpit
After you create a type and reload the cockpit, it appears under Documents using the type Name. Open that entry to work through the Documents list for the type and continue into Managing Documents. Access Configuration adds separate rows for the type's document list and document view so you can restrict each page.
Suggested setup order
Design the review form
Design the review form in Form Layouts.
Define the workflow
Define statuses and transitions in State Transition.
Configure queues and email categories
Add queues in Queue Configuration and categories in Email Configuration when you use them for this type.
Configure matching and validation
Configure Master Data before Auto Matching, then add Business Rules.
Configure approval
Complete Approval Configuration, then build chains in Approval Matrix. Add Rejection Reasons when approvers must select a coded reason.
Configure access
Restrict the new Documents entry in Access Configuration.
Last updated
Was this helpful?

