Self-healing document AI

From paper to payload

Instantly convert invoices, orders, statements and more into a standard schema for each document type. Every extraction is audited, analysed and automatically healed before it reaches your system.

  • Standard schema per document type
  • No templates or training
  • Audit report with every extraction
INV-20931.pdf
Extracting
  1. 01 Extract
  2. 02 Audit
  3. 03 Analyse
  4. 04 Heal
  5. 05 Deliver
Northwind Supplies Ltd
12 Harbour Road, Leeds
INVOICE
No. INV-20931
Date 14/10/2026
Steel brackets 40 × 12.00 480.00
Fixings pack 20 × 18.00 360.00
Delivery 200.00
Subtotal1,040.00
VAT 20%208.00
Total GBP1,248.00 3x
Payload · invoice standard schema confidence
  • document_type "invoice"
  • supplier "Northwind Supplies Ltd"
  • invoice_number "INV-20931"
  • issue_date "2026-10-14"
  • subtotal 1040.00
  • vat 208.00
  • total 1284.00 1248.00
Audit
  • Line items sum to subtotal 1,040.00
  • VAT is 20% of subtotal 208.00
  • Subtotal + VAT = total Δ 36.00
  • Supplier verified Companies House
  • No duplicate invoice 0 matches
analysis · waiting for audit
› total confidence 0.61 < threshold 0.90
› expected 1,040.00 + 208.00 = 1,248.00
› re-read at 3x: ‘84’ → ‘48’ transposed
✓ total healed 1284.00 → 1248.00
audit_report.json processing…
No training needed

Live from the first document.

Other tools need at least 20 manually labelled examples before a new document can be automated. If you receive one purchase order a week, that's almost half a year of waiting. Onboarding an existing process can take months before go-live.

team labelling
example 1 / 20
supplier
invoice_no
lines
total
Other tools

Manual training

Your team labels and annotates at least 20 examples of every new document type before it can be automated.

progress to go-live ~20 weeks at 1 doc / week
automatic learning document 1
supplier
invoice_no
lines
total
✓ extracted
Paperhook

Automatic learning

No templates and no training. Fields are found automatically from the first document, and every correction is learned for next time.

go-live document #1
Any2any integrations

Any document in.
One standard schema. Any format out.

By default we normalise every document to a standard schema for its document type, so there's no downstream mapping. That standard extraction format can then be piped or converted to any format - in your app or code, or with transformation and delivery rules.

ANY INPUTPAPERHOOKSTANDARD SCHEMAYOUR CODE OR RULESANY FORMAT PDF digital or scanned Image photo, scan, fax Multi-doc file many types, one file Paper statements, receipts {} JSON API response {} CSV spreadsheets {} XML ERP / legacy {} Markdown readable text {} Webhook your system Paperhook Classify Extract Audit Heal normalise invoice standard same fields, every supplier document_type "invoice" supplier { name, vat_number } invoice_number string issue_date date lines[] { item, qty, amount } totals { subtotal, vat, total } currency ISO 4217 audit_report { checks, healed } invoice purchase_order statement +more
PDF invoice_20931.pdf
invoice
JPG receipt_photo.jpg
receipt
TIFF statement_scan.tiff
statement
PNG payslip_oct.png
payslip
PDF batch_0912.pdf
3 documents
01 · Any input

Any input

Invoices, orders, statements, payslips, bank statements, delivery notes, receipts and more - even many document types in one file.

Northwind Ltd
Invoice #
20931
Total due
£1,248.00
Acme Freight
Inv. No.
4471
Amount payable
£560.50
Blue Harbour
Reference
BH-88
Balance
€2.310,00
invoice standard
invoice_number "20931""4471""BH-88"
total 1248.00560.502310.00
02 · Standard schema

One standard schema per document type

By default every document is normalised to the standard schema for its type. No downstream 'what fields does this have, and what does it map to?'

JSONCSVXMLMarkdown
{
  "invoice_number": "20931",
  "total": 1248.00
}
invoice_number,total
20931,1248.00
<invoice>
  <number>20931</number>
  <total>1248.00</total>
</invoice>
| invoice_number | total   |
| -------------- | ------- |
| 20931          | 1248.00 |
delivered → API response delivered → spreadsheet delivered → ERP / legacy delivered → readable text
03 · Any output

Any output

Pipe the standard format straight into your app, convert it in your own code, or set up transformation and delivery rules for JSON, CSV, XML, Markdown and more.

Standardised formats

Same keys, whoever sent it.

Other vendors send the label printed on the document as the key. When a supplier changes their format, you're left parsing it again and updating your code. Paperhook has a standard format per document type: the key never changes, and the original label comes along with the value.

PDF
Northwind Ltd 1/4
INVOICE NO: ax-100 · TOTAL: 1,248.00
PDF
Acme Freight 2/4
Inv #: ax-101 · Amount Due: 560.50
PDF
Blue Harbour 3/4
Invoice Number: ax-102 · Balance: 2.310,00
PDF
Kestrel Parts 4/4
Invoice No.: ax-103 · Grand Total: 89.99
Other vendors label as key
{
  "INVOICE NO": "ax-100",
  "TOTAL": "1,248.00"
}
{
  "Inv #": "ax-101",
  "Amount Due": "560.50"
}
{
  "Invoice Number": "ax-102",
  "Balance": "2.310,00"
}
{
  "Invoice No.": "ax-103",
  "Grand Total": "89.99"
}
Your code
doc["INVOICE NO"]
"ax-100"
undefined · format changed, update your parser
undefined · format changed, update your parser
undefined · format changed, update your parser
Paperhook standard key + label
{
  "invoice_number": {
    "label": "INVOICE NO","Inv #","Invoice Number","Invoice No.",
    "value": "ax-100","ax-101","ax-102","ax-103",
    "type": "string"
  },
  "total": {
    "label": "TOTAL","Amount Due","Balance","Grand Total",
    "value": 1248.00,560.50,2310.00,89.99,
    "type": "money"
  }
}
Your code
doc.invoice_number.value
"ax-100""ax-101""ax-102""ax-103"
Features

Everything between the paper and your payload.

Built for developers to system managers. Plug-and-play for finance and medical documents, with every step checked before data reaches you.

batch.pdf · 7 pages
Invoice · 2 Purchase order · 3 Statement · 2
Classification

One file, many documents

We classify every page and split mixed files into separate documents by type, then extract each one into the standard schema for its type.

Purchase order
Brackets 40
Fixings 20
Delivery 1
Invoice
Brackets 40
Fixings 22
Delivery 1
qty 20 ≠ 22
Cross-checks

Two-way matching

Compare purchase orders to invoices, and vendor statements to invoices and bank statements. Mismatches are flagged line by line.

  • Company active registry
  • VAT number valid GB 291 4471 08
  • Bank details changed since last invoice
  • Possible duplicate INV-20877
Fraud detection

Spot scams before you pay

Checks against public company databases flag invoice scams, duplicate payments and tampered data.

RawNormalised
  • 14/10/26 → 2026-10-14
  • £1.248,00 → 1248.00 GBP
  • Net 30 → due 2026-11-13
  • northwind supplies → Northwind Supplies Ltd
Normalisation

Clean, enriched values

Dates, currencies, terms and names are normalised into the standard schema and enriched, so every invoice looks the same whoever sent it.

Claimant Jane Doe NAME · DOB 04/07/1981 DATE
NI number QQ 12 34 56 C NI_NUMBER
Address 14 Elm Street, York ADDRESS
Claim ref CLM-55120 · home insurance
Anonymisation

De-identify on the way in

Personal data is detected and replaced with typed placeholders for safe downstream use.

PO-2291.pdf · review needs review corrected
po_reference "PO-7?31" "PO-7731"
Learned for next time
Human-in-the-loop

Correct once, learned for next time

Review low-confidence fields when you want to. Every correction is remembered and applied to future documents.

schema: mortgage_in_principle
fields:
applicant: string
amount: money
term_years: integer
expires_on: date
applicant"A. Patel"
amount285000.00
term_years25
expires_on"2027-01-31"
valid
Custom schemas

Your documents, your fields

Standard schemas cover common document types by default. For proprietary documents, define your own schema and get back validated data in the same way.

How it works

From paper to payload in minutes.

  1. 01

    Send your documents

    PDF, image, scans and more.

    Upload your documents directly via our secure API and manage your history in our dashboard.

    POST /v1/documents
  2. 02

    Extraction

    No templates or manual training required.

    Paperhook automatically classifies each document and extracts it into the standard schema for its document type - even when multiple document types are in a single file.

    classify → extract
  3. 03

    Self-healing

    AI-powered audit and reconciliation.

    Our AI verifies the data. If there are errors we automatically fix them, so you always have the correct data.

    audit → analyse → heal
  4. 04

    Receive structured data

    Integrate into your existing applications.

    Get the standard extraction format back via our API, with an audit report for every extraction. Use it as is, convert it in your code, or set transformation and delivery rules.

    200 OK · audit_report
Use cases

Plug-and-play for finance and medical.

Insurance, operations, legal, HR and more coming soon.

01

Accounts payable automation

Invoices and purchase orders straight into your finance system.

02

Statement reconciliation

Supplier statements matched against invoices and payments.

03

Claims processing

Medical and insurance forms extracted and de-identified.

04

Expenses management

Receipts turned into clean, categorised expense lines.

05

Credit risk

Bank statements and payslips structured for faster decisions.

06

Document digitisation

Paper-based records into modern digital formats.

Purchase ordersInvoicesSales ordersSupplier statementsTax formsPayslipsBank statementsTimesheetsDelivery notesReceiptsChequesWork ordersLettersPurchase ordersInvoicesSales ordersSupplier statementsTax formsPayslipsBank statementsTimesheetsDelivery notesReceiptsChequesWork ordersLetters
Playground

Test it before it touches production.

Drop in a file and watch the pipeline run. Check the document, format, analysis and logs, then create and test transformations before making changes to your core pipeline.

Playground
sandbox · nothing delivered
DocumentFormatAnalysisLogsTransform
results appear here
Northwind Supplies Ltd
12 Harbour Road, Leeds
INVOICE
INVOICE NO INV-20931 Date 14/10/2026
Steel brackets480.00
Fixings pack360.00
Delivery200.00
Total GBP1,248.00
invoice · standard schemavalid
{
  "document_type": "invoice",
  "invoice_number": { "label": "INVOICE NO", "value": "INV-20931", "type": "string" },
  "issue_date": { "label": "Date", "value": "2026-10-14", "type": "date" },
  "total": { "label": "Total GBP", "value": 1248.00, "type": "money" },
  "lines": [ … 3 items ],
  "audit_report": { "checks": 5, "healed": 1 }
}
Audit report 5/5 passed · 1 healed
  • Line items sum to subtotal
  • VAT is 20% of subtotal
  • Subtotal + VAT = total healed · 1284.00 → 1248.00
  • Supplier verified
  • No duplicate invoice
› total read as 1284.00 at 0.61 confidence · expected 1248.00 · digits transposed
00.000 received invoice_20931.pdf (1 page)
00.240 classified invoice (0.99)
00.910 extracted 14 fields → invoice standard schema
01.402 audit totals_reconcile failed (Δ 36.00)
01.655 heal total re-read at 3x → 1248.00
01.801 audit 5/5 passed
01.812 done · audit_report attached
New transformation output CSV
  • invoice_number.value → InvoiceRef
  • issue_date.value → Date
  • total.value → Amount
InvoiceRef,Date,Amount
INV-20931,2026-10-14,1248.00
✓ tested on 3 samples Promote to pipeline
Promoted to live pipeline · v13
PDF invoice_20931.pdf
  1. 01
    Drop in a file
    Any document, straight into a sandbox. Nothing is delivered.
  2. 02
    Watch the pipeline run
    Classify, extract, audit and heal, step by step.
  3. 03
    Inspect everything
    The document, standard format, analysis and logs side by side.
  4. 04
    Create transformations
    Map fields and formats, test them, then promote to your core pipeline.
Get in touch

Send us a document.

Have questions or want to learn more? We'd love to hear from you.