Documentation

Invoice fields reference

Every field extracted from invoice documents — names, types, formats, and examples.

Header fields

These fields are extracted from the invoice header and summary sections.

FieldTypeDescriptionExample
vendorNamestring | nullLegal name of the issuing vendorAcme Corp Ltd
vendorTaxIdstring | nullVAT, GST, EIN, or local tax numberDE123456789
invoiceNumberstring | nullInvoice reference numberINV-2024-0042
purchaseOrderNumberstring | nullBuyer purchase order referencePO-88912
issueDatestring | nullDate the invoice was issued — ISO 8601 (YYYY-MM-DD)2024-11-15
dueDatestring | nullPayment due date — ISO 8601 (YYYY-MM-DD)2024-12-15
currencystring | nullISO 4217 three-letter currency codeUSD
subtotalnumber | nullPre-tax total as a plain decimal number1250.00
taxAmountnumber | nullTotal tax as a plain decimal number237.50
totalAmountnumber | nullGrand total (subtotal + tax) as a plain decimal number1487.50
paymentReferencestring | nullBank account, IBAN, routing, or payment instruction textIBAN: DE89370400440532013000

Line items

The lineItems field is an array. Each element represents one row from the invoice's line items table. Multi-page tables are joined automatically.

FieldTypeDescription
descriptionstringLine item label or product name
skustring | nullSeller stock-keeping unit — internal product code printed on the invoice
eanCodestring | nullEAN-13 or EAN-8 barcode, or any GTIN/UPC variant found on the line
quantitynumber | nullQuantity ordered
unitPricenumber | nullPrice per unit (excluding tax)
taxRatenumber | nullTax rate as a decimal (e.g. 0.20 for 20%)
lineTotalnumber | nullTotal for this line (quantity × unitPrice, before or after tax depending on invoice format)
"lineItems": [
  {
    "description": "Software license — annual",
    "sku": "SRV-LIC-ANN",
    "eanCode": null,
    "quantity": 1,
    "unitPrice": 1250.00,
    "taxRate": 0.19,
    "lineTotal": 1487.50
  }
]

Confidence scoring

Every extraction returns a confidenceScore — a number between 0 and 1 indicating how certain the AI is about the overall result. Individual fields flagged as uncertain are highlighted in the review UI.

Score rangeMeaning
0.90 – 1.00High confidence — auto-approve safe for most workflows
0.70 – 0.89Medium confidence — recommend human review of flagged fields
0.00 – 0.69Low confidence — manual review required

Full JSON example

{
  "vendorName": "Acme Corp Ltd",
  "vendorTaxId": "DE123456789",
  "invoiceNumber": "INV-2024-0042",
  "purchaseOrderNumber": "PO-88912",
  "issueDate": "2024-11-15",
  "dueDate": "2024-12-15",
  "currency": "EUR",
  "subtotal": 1250.00,
  "taxAmount": 237.50,
  "totalAmount": 1487.50,
  "paymentReference": "IBAN: DE89370400440532013000",
  "confidenceScore": 0.95,
  "lineItems": [
    {
      "description": "Software license — annual",
      "sku": "SRV-LIC-ANN",
      "eanCode": null,
      "quantity": 1,
      "unitPrice": 1250.00,
      "taxRate": 0.19,
      "lineTotal": 1487.50
    }
  ]
}