till_export
ACCOUNTING EXPORT: turn the verified receipts into an accountant-ready CSV that QuickBooks / Xero / Excel import (the export finance teams need to adopt). Every row carries its own txHash + Basescan link, so the accountant re-verifies each amount on Base themselves — the export is a POINTER to the chain, never a book to trust. Non-custodial (BIII moved no funds). Columns: date, receipt_no, reference, description, payer, gross_usdc, tip_usdc, charged_usdc, token, chain, tx_hash, basescan_url, status. Dedup by txHash; optional block-time window; brand slugs the filename. WINDOW HONESTY: a receipt with no on-chain block time cannot be proven to fall inside a dated window, so it is excluded from one — and summary.undatedExcluded reports HOW MANY were, with the same warning prepended to disclosure. If that count is non-zero the CSV is short by those rows: re-run with no window to see them all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | WHITE-LABEL: a partner brand (string or {name}) — slugs the download filename; the non-custodial disclosure stays regardless. | |
| receipts | Yes | the verified receipt objects (from till_receipt), each carrying a txHash | |
| toBlockTime | No | optional — only export receipts settled at/before this unix block time | |
| fromBlockTime | No | optional — only export receipts settled at/after this unix block time |