merchaint · help
Contact supportOpen Merchaint

How extraction works

In this article

Between a document arriving and data appearing, Merchaint does three things in order. It works out what the document is, picks a schema to read it with, then reads the fields. Knowing that order answers most "why did it read that?" questions.

  • A walkthrough video, then why the order matters
  • The three steps, and which schema wins when there is a choice
  • How to tell which step went wrong from what you see
  • FAQ

01 · Video

Feature walkthrough

Video · what happens when a document is read · 3:00

02 · Why

Why does this matter?

If you know the order Merchaint works in, you can tell which step went wrong. A blank field on a page that clearly shows a value is a different problem from a document read as the wrong type — and they need different fixes.

Why doesn't it ask me what each document is?

Because for most documents the answer is obvious from the document itself, and asking every time would remove the point. Merchaint decides, and you can override it afterwards.

03 · What it means for you

The three steps

StepWhat happensWhat you see
1. Work out what it isMerchaint decides the document typeThe type next to the status — Invoice detected
2. Pick a schemaIt chooses the schema for that typeThe schema decides which fields are looked for at all
3. Read the fieldsIt pulls values into those fieldsWhat you see under Extracted data

Which schema wins?

Merchaint uses the schema for the type it detected. If that's wrong, you decide instead. Reprocess lets you leave it on Auto-detect Schema or pick one yourself. A schema you pick always beats Merchaint's guess.

Which step went wrong?

What you seeWhich stepWhat to do
Right fields, wrong valuesReadingReprocess and re-read it
Fields you didn't expect, or missing onesSchemaThe wrong schema was used — reprocess with the right one
The document type is plainly wrongWorking out what it isReprocess and pick the schema yourself
Nothing read at allIt couldn't be readSee Fix a document that was read wrong

04 · FAQ

Why did it read the wrong number?

Usually because the wrong schema was applied, so it looked in the wrong place. Check the document type first, before assuming the reading failed.

Can I make it always use one schema for a supplier?

Not from the document itself. You can reprocess documents one at a time. If a whole supplier is consistently wrong, that's a schema question for your admin.

Common questions

Does reprocessing cost anything?

Only if you turn on Force re-extract. Left off, it reuses what was already read.