{ "document_type": "invoice", "document_id": "INV-2026-1099", "vendor": "NovaTech Supplies Pvt. Ltd.", "customer": "Vertex Office Solutions", "document_date": "2026-08-18", "due_date": "2026-09-17", "currency": "INR", "subtotal": "11500.00", "tax": "2070.00", "discount": null, "shipping": null, "total": "14000.00", "payment_method": "Bank Transfer", "purchase_order_number": null, "line_items": [ { "item_id": null, "description": "Laptop Stand (Adjustable)", "quantity": "2", "unit_price": "1500", "tax": null, "line_total": "3000" }, { "item_id": null, "description": "Wireless Keyboard (Bluetooth)", "quantity": "3", "unit_price": "2000", "tax": null, "line_total": "6000" }, { "item_id": null, "description": "USB-C Hub (7-in-1)", "quantity": "2", "unit_price": "1250", "tax": null, "line_total": "2500" } ], "validation": { "is_valid": false, "overall_status": "INVALID", "checks": [ { "name": "total_reconciliation", "passed": false, "severity": "ERROR", "expected": "13570.00", "actual": "14000.00", "difference": "430.00", "message": "Calculated total (11500.00 + 2070.00 tax + 0.00 shipping - 0.00 discount = 13570.00); Document total: 14000.00. MISMATCH - difference 430.00" } ], "warnings": [], "errors": [ "Calculated total (11500.00 + 2070.00 tax + 0.00 shipping - 0.00 discount = 13570.00); Document total: 14000.00. MISMATCH - difference 430.00" ] }, "confidence": { "overall": 0.72, "fields": { "document_id": 0.95, "vendor": 0.95, "total": 0.95 }, "explanation": "Confidence penalised due to total reconciliation failure." }, "metadata": { "source_filename": "sample_invoice_validation_failure.txt", "extraction_method": "plain_text", "page_count": 1, "processing_time_seconds": 2.3, "document_type_confidence": 0.95, "model_used": "openai/gpt-oss-20b" } }