Reference
Output
The JSON spendyard read prints for each document, field by field.
One object per document. Money is always a decimal string, never a number. Each release publishes the JSON Schema, and meta.schema_version changes whenever the shape does.
{
"document": {
"type": "invoice",
"is_receipt": true,
"is_invoice": true,
"status": "paid",
"source": "attachment:Invoice-2291.pdf",
"confidence": 0.97
},
"vendor": {
"id": "cursor.com",
"name": "Cursor",
"processor": "stripe",
"account": { "email": "billing@example.com", "workspace": "Example Inc" }
},
"payments": [{ "method": "card", "brand": "visa", "last4": "4242", "amount": "112.40" }],
"amount": { "total": "112.40", "subtotal": "92.00", "tax": "20.40", "currency": "USD" },
"billing": {
"model": "mixed",
"interval": "month",
"period": { "start": "2026-10-19", "end": "2026-11-18" },
"next_renewal": "2026-11-19"
},
"lines": [
{ "kind": "seat", "product": "Cursor", "plan": "Pro", "quantity": 4, "unit": "seat", "unit_price": "20.00", "amount": "80.00", "interval": "month" },
{ "kind": "usage", "product": "Cursor", "description": "Premium requests over quota", "quantity": 300, "unit": "request", "unit_price": "0.04", "amount": "12.00" }
],
"evidence": {
"amount.total": { "quote": "Amount paid $112.40", "part": 1, "checked": true }
},
"flags": [],
"meta": {
"extractor": "anthropic/claude-haiku-5-5",
"decider": "clef-flash",
"cost_usd": "0.0061",
"ms": 2140
}
}
Fields
| Field | |
|---|---|
document.type, status |
What it is and where it stands. Most vendors send a “paid invoice”, so the two together carry the meaning; is_receipt and is_invoice are shortcuts |
vendor.id |
The vendor’s domain from the catalog, so the same vendor groups together however it’s spelled |
vendor.processor |
Set when Stripe, Paddle or another processor sent the receipt for the real vendor |
vendor.account |
What tells two subscriptions to the same vendor apart: the billing email, workspace or customer ID |
payments |
How it was paid: the card’s brand and last four digits, or another method |
amount |
Total, subtotal and tax, with the currency |
billing.model |
subscription, usage or mixed, worked out from the lines |
billing.interval, period, next_renewal |
Monthly or yearly, the period paid for, and when it renews |
lines[].kind |
seat, plan, usage, addon, discount, credit, tax or other |
lines[].unit_price |
On a seat line, the price per seat |
evidence |
For each value, the quote it came from and whether it was found in the document |
flags |
What didn’t add up, for a person to check |
meta |
The models, the tokens and cost, and how long it took |
Nothing is logged: neither the document nor the result, unless you pass --debug.