Read invoice PDF
parse_invoice_pdfRead an invoice PDF the user uploaded and return its fields: supplier, invoice number, dates, currency, subtotal, tax, total, PO number, payment terms, and every line item. Use it whenever someone asks what an invoice says, what they are being charged for, whether a bill adds up, or wants an invoice turned into data.
Two parts of the result matter more than the fields. unreadable names what could not be read off the document — those are null, not guessed, and you must not fill them in yourself. checks lists where the document disagrees with itself: lines that do not sum to the subtotal, a total that is not subtotal plus tax, a quantity times a price that is not the line amount. Report every check to the user in plain language; they are the reason to read an invoice with a tool rather than an eye.
Find the file first with search_graph_objects (type 'file') and pass its object_id, or pass part of the filename as name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Part of the filename, when the object_id is unknown. | |
| object_id | No | The file's graph object_id. |