billparse
v0.1.0Turn invoice PDFs, scans and photos into checked spreadsheets and structured data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
invoice_to_excel Invoice to Excel
Read an invoice (PDF, scan or photo) and turn it into a spreadsheet: returns the header fields, the line items and download links to an Excel (.xlsx) and a CSV file, valid for 60 minutes without signing in. Give the file as file_url, file_base64 or (ChatGPT) file. For additional outputs from the same processed invoice, use get_result with its job_id instead of submitting it again.
| Parameter | Type | Description |
|---|---|---|
file | ChatGPT only: the attached file. Other clients use file_url or file_base64. | |
file_base64 | The invoice file's bytes, base64-encoded. Use for a local file. | |
file_name | The file's name, e.g. invoice-1042.pdf (optional). | |
file_url | An https link to the invoice (PDF or image) that the server can download. |
check_invoice Check an invoice's math
Check whether an invoice adds up: each line's quantity times unit price, the lines against the subtotal, the tax against its printed rate, and subtotal plus tax against the total. Returns a one-line verdict and every problem found, with the invoice's own numbers. Give the file as file_url, file_base64 or (ChatGPT) file. For additional outputs from the same processed invoice, use get_result with its job_id instead of submitting it again.
| Parameter | Type | Description |
|---|---|---|
file | ChatGPT only: the attached file. Other clients use file_url or file_base64. | |
file_base64 | The invoice file's bytes, base64-encoded. Use for a local file. | |
file_name | The file's name, e.g. invoice-1042.pdf (optional). | |
file_url | An https link to the invoice (PDF or image) that the server can download. |
extract_invoice_data Extract invoice data
Extract 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. For additional outputs from the same processed invoice, use get_result with its job_id instead of submitting it again.
| Parameter | Type | Description |
|---|---|---|
file | ChatGPT only: the attached file. Other clients use file_url or file_base64. | |
file_base64 | The invoice file's bytes, base64-encoded. Use for a local file. | |
file_name | The file's name, e.g. invoice-1042.pdf (optional). | |
file_url | An https link to the invoice (PDF or image) that the server can download. |
get_result Get a result
Retrieve an already submitted invoice by the job_id returned by any reader, whether that reader answered processing or completed. Returns the available spreadsheet links, math check and extracted data without submitting or counting another document. Use this for additional outputs from the same invoice instead of calling another reader with the file again.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job_id a previous call returned. |