How to use Matching Rules & Review
Learn how to match your documents against your master data and how to review the results before they go to your ERP.
Documents tell you what is printed on them: a supplier name, an order number, an article number, a price. To post a document in your ERP, you usually need more than that:
- Link it to your master data. Which supplier in your ERP is "ACME AG, Zürich"? Which purchase-order line belongs to this invoice line?
- Add what isn't on the document. For example the supplier number, IBAN, cost center or PO position.
- Check it against your master data. For example whether the unit price is within 5% of the ordered price, or the invoice date is within the last 12 months.
Matching Rules do this automatically. In the Review step, your team checks the result and fixes anything the rules couldn't decide on their own.
Availability: Matching Rules & Review feature needs to be enabled for your tenant.
Please contact your Parashift Support to activate it.
To review documents, users need the Review permission.
How Matching Works
- Extraction. Parashift reads the document and extracts the document fields (the values printed on the document).
- Matching. All active matching rules compare these values with your master data tables. For each document (or each line item), the best-matching master data record is selected.
- Business fields. The result is stored as business fields: the output fields you need for posting, e.g. Supplier number, PO position, Cost center. The extracted document values stay unchanged.
- Validation rules. The business fields are checked, e.g. "price within 5% of the order".
- Review. Documents that need attention land in the Review step. There, a person confirms or corrects the result and finishes the document with Done.
Key terms
- Master data: Your reference tables, e.g. suppliers, customers, articles, purchase orders.
- Matching rule: Defines which master data tables are used, how they are linked to the document, and which business fields come out.
- Business field: An output field of a matching rule, e.g. Supplier number. This is what reviewers see and what your integration receives.
- Candidate: A master data record that could fit the document, with a confidence score. The best candidate is selected automatically.
- Validation rule: A check on a business field. It reports a warning (please check) or an error (must be fixed).
The Matching Rules List
Matching Rules are configured in the platform’s Configuration section.
The list shows all your rules with:
- Name: opens the rule.
- Document Type: the document type the rule applies to.
- Runs: how often the rule has been executed.
- Live: only rules switched to live are executed. New rules start inactive.
- Actions: edit, copy or delete a rule.

Order of rules: You can change the order of rules with drag & drop or the arrows.
Re-ordering only works when the list is sorted by rank and no filter is active.
Creating a Matching Rule
Click New and choose New header-field rule or New line-item rule. The rule editor has three tabs: General, Mapping and Validation.
1. General
Here you define the frame of the rule:
- Name and Description.
- Document Type: the document type the rule applies to.
- Repeatable Section (line-item rules only): the table on the document whose rows are matched, e.g. Line items.
- Master Data tables: add the tables to match against.
- Outcomes: the list of business fields this rule produces.

2. Mapping
In the Mapping tab you connect fields with drag & drop. The layout has three columns:

- Left: Sources - the document's fields, and master data tables already matched.
- Center: the master data table you are currently matching.
- Right: Business Fields - the outputs of the rule.
Drag from the dot on the right of a field to the dot on the left of another field:
- Document field → master data column creates a connection: "find the master data row where this column matches this document value".
- Master data column or document field → business field sets where the business field gets its value.
- Any field → "+" creates a new business field, already filled from that field.
Connection settings
Click the end of a connection to change its settings:

- Anchor or Link:
- Anchor (solid line): this value must match. Use it for real keys such as an order number or supplier ID.
- Link (dashed line): an optional hint that makes a candidate more likely. Use it for supporting values such as a name or description.
- Matching method:
- Exact: the values must be identical. Best for IDs and numbers.
- Fuzzy: similar values also match, above a similarity threshold (default 90%). Best for names, descriptions and values that may contain reading errors.
- Weight (1–100): how much this connection counts compared with the other connections to the same table. Give strong keys a high weight and supporting fields a low one.
- Clean-up options:
- Remove leading & trailing whitespace:
" 4711 "="4711"(on by default). - Treat uppercase & lowercase as identical:
ACME=Acme(on by default). - Treat accented characters as base forms:
Zürich=Zurich(on by default). - Remove all special signs:
CH-123.456=CH123456. Useful for VAT numbers, IBANs and article numbers with different separators (off by default).
- Remove leading & trailing whitespace:
Also connect supporting fields such as street, ZIP or description, with a low weight. In the Review, reviewers see the document value and the master data value side by side only for connected fields.
3. Validation
The Validation tab shows one column per business field. For each one you set:
- Name and Identifier: the name shown in the Review, and the stable key your integration uses.
- Data type: Text, Whole number, Decimal number, Yes/No, Date, or Date + Time.
- Required: an empty value is flagged in the Review.
- Editable: whether reviewers may change the value.
- Validation rules: see below.

You can also change the order of the business fields here. This is the order in which they appear in the Review.
Validation Rules
Validation rules check a business field's value, usually against your master data or another document value. Click Add validation rule and choose:
- Validation Rule: what to check (see the list below).
- Severity:
- Warning (yellow): the reviewer checks it and confirms it.
- Error (red): the value must be corrected before the document can be finished.
- Values: what to compare with: a master data column, a document field, a fixed value, or the date the document was received.

Available validators
- Equals (all data types): the value is the same as the compared value.
Example: supplier name equals the name in the supplier master. - Similar to (text): the value is at least x% similar.
Example: the article description is at least 80% similar to the master description. - Greater than or equal to / Less than or equal to (numbers, dates): use both together for a range.
Example: the quantity is not more than the ordered quantity. - Within percentage (numbers): the value deviates no more than x% (optionally capped at a maximum amount).
Example: the unit price is within 5% of the PO price. - Date window (dates): the date lies within a period, e.g. relative to the receipt date.
Example: the invoice date is not older than 1 year and not in the future.
For date windows you can type short forms (-60d = 60 days before, 0d = same day, +14d = 14 days after, 1w, 3m, -1y) or pick a quick range such as Within 30 days before, Not after or Not older than 1 year.
Reviewing Matched Documents
Documents that need attention appear inside Review section.

The Review screen

Field colours:
- Red: error. The value is invalid and must be fixed.
- Yellow: warning. Check it, then confirm it or correct it.
- Green: valid.
What a reviewer can do
- Correct a value. Click a field and type, or select text in the document preview to copy it into the field. Each change is saved when you leave the field and checked again right away.
- Pick another value. Click a field (or press ↓) to see the values it could take, e.g. from the document or from the master data. Reset to matched value undoes a manual change.

- Choose another candidate. If the wrong record was matched, click the pen icon
to open Search Candidates. It lists all possible matches with their confidence, e.g. Candidate #2 (87%). Selecting one re-calculates all business fields of that group. - Select a master data row. If the right record isn't among the candidates, click the database icon
and search your master data table directly. The selected row fills the business fields. - Confirm warnings. A warning means "please check this", not "this is wrong". Confirm it with Enter, with the check button
in the group header (confirms all warnings of the group), or by clicking the yellow status badge of a line item. - Finish. Click Done once no field has an error or an unconfirmed warning.
Line items
For line-item rules the group shows a button with the number of rows. Click it to open the line-item table:
- a status badge per row, plus buttons to choose another candidate or a master data row
- expand a row to see what the document says next to what the master data says

Matching Rules or Automation Agents?
Both can work with master data. As a rule of thumb:
- Use Matching Rules to link documents to suppliers, customers, articles, purchase orders or cost centers. You get candidates, side-by-side comparison and checks in one place, and the extracted values stay unchanged.
- Use Automation Agents for routing, renaming, tagging, reclassification and field logic without master data. Agents are not working on the candidates.
Learn more: How to use Automation Agents
Tips
- Use strong keys. Customer numbers, VAT numbers, IBANs and order numbers make matching much more reliable than names alone. Make sure they are extracted wherever they are printed.
- Use Anchors sparingly. An anchor removes every candidate where that value doesn't match, including near misses caused by a typo.
- Keep master data clean and consistently formatted, and use the clean-up options for spaces, case and separators.
- Use warnings for "please check" and errors for "must fix".
- Upload complete master data. A master data upload replaces all tables, so always upload the full set.
- Test before going live. Process a few sample documents, look at the candidates and their confidence in the Review, and adjust weights and connections.