Check Supplier Bill or Receipt Math
extract_financial_documentsExtracts supplier name, bill number, dates, payment terms, currency, line items, subtotal, sales tax, and total from supplier bills, bank statements, receipts, and agreements. Performs cent-level fixed-decimal math checking (verifying that the sum of line items plus tax equals the billed total) and returns exact differences, a plain-English summary, a 1099-NEC review flag, and a polite supplier correction note when an overcharge is found.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raw_text": "<raw_text>"
},
"name": "extract_financial_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional BillTally Pro API key for high-volume monthly bill checks (5,000 docs/mo). | |
| raw_text | Yes | Raw supplier bill, receipt, or statement text, table, or structured document content to verify. | |
| workspace_id | No | Optional workspace identifier for monthly bill-check quota tracking. | |
| currency_hint | No | Optional 3-letter ISO currency code hint such as USD, EUR, or GBP. | |
| document_type | No | Type of financial document being checked (invoice, bank_statement, receipt, contract, or auto). | auto |
| strict_reconciliation | No | When true, enforces cent-exact verification across every line item (Quantity multiplied by Unit Price) and sales tax total. |