Invoice
predefinedStandard B2B invoice extraction: numbers, dates, totals, line items, VAT.
Fields: invoice_number, issue_date, due_date, subtotal, vat, total
Example payload
{
"document_type": "invoice"
}We use cookies to improve your experience and analyze site traffic. See our Privacy Policy for details.
Five built-in predefined templates cover the most common documents. For everything else, use document_type: "custom" and describe the fields you want to extract via a JSON custom_instructions payload. Below: ready-to-copy examples.
Standard B2B invoice extraction: numbers, dates, totals, line items, VAT.
Fields: invoice_number, issue_date, due_date, subtotal, vat, total
{
"document_type": "invoice"
}POS receipts, store loyalty receipts, restaurant bills.
Fields: merchant, date, total, currency, payment_method
{
"document_type": "receipt"
}Parties, effective date, term, signatures, key clauses.
Fields: party_a, party_b, effective_date, term_months, governing_law
{
"document_type": "contract"
}Passport / national ID / driver's licence (MRZ + visual zone).
Fields: full_name, document_number, issue_date, expiry_date, nationality
{
"document_type": "id_document"
}Bank account statement: header, opening / closing balance, transactions.
Fields: account_iban, period_start, period_end, opening_balance, closing_balance
{
"document_type": "bank_statement"
}Carrier shipping label (UPS, DHL, FedEx, …). Pattern-based custom template.
Fields: tracking_number, weight_kg, destination_zip, carrier
{
"document_type": "custom",
"custom_instructions": {
"description": "Carrier shipping label",
"fields": [
{
"name": "tracking_number",
"pattern": "1Z[0-9A-Z]{16}",
"description": "UPS tracking"
},
{
"name": "weight_kg",
"pattern": "([0-9.]+)\\s*kg"
},
{
"name": "destination_zip",
"keyword": "Ship to"
},
{
"name": "carrier",
"keyword": "Carrier"
}
]
}
}Prescription with patient name, drug, dosage, prescriber.
Fields: patient_name, drug, dosage, prescriber
{
"document_type": "custom",
"custom_instructions": {
"description": "Medical prescription",
"fields": [
{
"name": "patient_name",
"keyword": "Patient"
},
{
"name": "drug",
"keyword": "Rx"
},
{
"name": "dosage",
"pattern": "\\d+\\s*(mg|ml|g|mcg)",
"flags": "i"
},
{
"name": "prescriber",
"keyword": "Prescribed by"
}
]
}
}Product warranty registration with serial, purchase date, model.
Fields: serial_number, model, purchase_date, warranty_until
{
"document_type": "custom",
"custom_instructions": {
"description": "Product warranty card",
"fields": [
{
"name": "serial_number",
"pattern": "S/N[:\\s]+([A-Z0-9-]+)"
},
{
"name": "model",
"keyword": "Model"
},
{
"name": "purchase_date",
"keyword": "Purchase date"
},
{
"name": "warranty_until",
"keyword": "Warranty until"
}
]
}
}Case law citation (case name, court, year, citation).
Fields: case_name, court, year, reporter
{
"document_type": "custom",
"custom_instructions": {
"description": "Case law citation",
"fields": [
{
"name": "case_name",
"pattern": "([A-Z][\\w.]+\\s+v\\.\\s+[A-Z][\\w.]+)"
},
{
"name": "year",
"pattern": "\\((\\d{4})\\)"
},
{
"name": "court",
"keyword": "Court"
},
{
"name": "reporter",
"keyword": "Reporter"
}
]
}
}Property listing: address, price, area, bedrooms, agent.
Fields: address, price_eur, area_sqm, bedrooms
{
"document_type": "custom",
"custom_instructions": {
"description": "Real estate listing",
"fields": [
{
"name": "address",
"keyword": "Address"
},
{
"name": "price_eur",
"pattern": "€\\s*([0-9.,]+)"
},
{
"name": "area_sqm",
"pattern": "(\\d+)\\s*sqm",
"flags": "i"
},
{
"name": "bedrooms",
"pattern": "(\\d+)\\s*bed",
"flags": "i"
}
]
}
}