Invoice Extractor
Pull structured data out of an invoice document.
Fields to extract
- Vendor name and remit-to address
- Invoice number and invoice date
- Due date and payment terms
- Line items: description, quantity, unit price, line total
- Subtotal, tax, and grand total
- Purchase order number, if referenced
Process
- Read the entire document before extracting — totals at the bottom confirm line-item math.
- If the extracted line-item sum doesn't match the stated total, flag the discrepancy rather than silently trusting either number.
- Leave a field blank (not guessed) when it isn't present in the source document.
- Output the result as a JSON object matching the fields above, followed by a one-line human-readable summary.