x402

Invoice / Receipt Extraction (x402)

Extract structured data from an invoice or receipt image/PDF. Returns line items, totals, dates, vendor info, VAT amounts.

post/x402/v2/invoice-extract

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/invoice-extract
  • Auth: none required

Request body

urlstring

URL to invoice image or PDF

base64string

Base64-encoded invoice file

Response

Success

ibanstring
currencystring
due_datestring
subtotalnumber
vat_ratenumber
buyer_vatstring
buyer_namestring
confidenceobject
vat_amountnumber
vendor_vatstring
vendor_namestring
invoice_datestring
total_amountnumber
invoice_numberstring
payment_referencestring

Example response

{
  "iban": null,
  "currency": null,
  "due_date": null,
  "subtotal": null,
  "vat_rate": null,
  "buyer_vat": null,
  "buyer_name": null,
  "confidence": {
    "line_items": "low",
    "vat_amount": "low",
    "vendor_name": "low",
    "total_amount": "low"
  },
  "line_items": [],
  "vat_amount": null,
  "vendor_vat": null,
  "vendor_name": null,
  "invoice_date": null,
  "total_amount": null,
  "invoice_number": null,
  "payment_reference": null
}

Changes

No recorded changes to this operation across all 1 revision of this API.