Extract invoice data
extract_invoice_dataExtract an invoice's data as structured JSON: vendor and customer, invoice number and dates, PO number, currency, subtotal, discount, shipping, tax and total, tax lines, every line item, and confidence (overall and per field). Give the file as file_url, file_base64 or (ChatGPT) file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ChatGPT only: the attached file. Other clients use file_url or file_base64. | |
| file_url | No | An https link to the invoice (PDF or image) that the server can download. | |
| file_name | No | The file's name, e.g. invoice-1042.pdf (optional). | |
| file_base64 | No | The invoice file's bytes, base64-encoded. Use for a local file. |