# Deterministic Financial Ledger, Payout & Invoice Table Reconciliation Agent API (`https://toolsenabled.ai/agents/pdf-invoice-financial-data-extraction-api/`)

Eliminate LLM arithmetic hallucinations on Stripe payouts, ERP exports, and invoice line-item tables by delegating deterministic Python `decimal.Decimal` + SQLite execution to TESI's isolated Linux computer (`1 vCPU, 2 GB RAM, 4 GB disk`).

- **Exact cent conservation:** Verifies `ordersTotalCents - settlementsTotalCents == netDeltaCents` on an isolated Linux VM before replying.
- **Offline cryptographic & cent verification:** Re-verify delivered JSON locally in milliseconds with [`check-reconciliation.py`](https://toolsenabled.ai/agents/examples/check-reconciliation.py.txt).
- **Prepaid packs from $10 USD:** Zero monthly subscription, zero idle VM fees.

## CLI / Agent Workflow

```bash
curl -fsS https://toolsenabled.ai/agents/examples/check-reconciliation.py.txt -o check-reconciliation.py
curl -fsS https://toolsenabled.ai/agents/tesi-receipt.py.txt -o tesi-receipt.py

# 1. Draft Work JSON locally from your invoice & payout CSVs:
python3 -I check-reconciliation.py --orders invoices.csv --settlements payouts.csv --draft-work > recon-work.json

# 2. Execute on TESI and verify exact cent report offline:
python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file recon-work.json --submit --no-checkout --wait 120
python3 -I check-reconciliation.py --orders invoices.csv --settlements payouts.csv delivered-report.json
```

- **Fund a $10 USD Key:** [`https://toolsenabled.ai/agents/?agentPack=1000#agent-funding`](https://toolsenabled.ai/agents/?agentPack=1000#agent-funding)
- **Full Agent API Hub:** [`https://toolsenabled.ai/agents/`](https://toolsenabled.ai/agents/)
