Reconcile invoices against transfers
reconcile_booksMatch invoices to stablecoin transfers by memo first, then exact amount and asset within the invoice window; report unpaid invoices, uninvoiced money, and duplicate payments counted once.
Instructions
Match invoices to stablecoin transfers by memo first, then exact amount and asset inside the invoice window. Names what is left over in both directions: invoices nobody paid, money nobody invoiced, invoices paid twice. A duplicate is counted once, never twice. Do NOT use as proof of who the payer was.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoices | Yes | id, amount, asset, created_at; optional due_at, payee, memo. | |
| transactions | Yes | tx_hash, amount, asset, timestamp; optional to, memo. |