$ man receipt-to-ledger
/receipt-to-ledger
PRICE / CALL
$0.05
USDC · base mainnet · scheme: exact
──────────────────────────────────────────────────────────────────────────────
NAME
receipt-to-ledger — turn a receipt photo into a ledger entry in one call: line items, merchant and date entities, and a currency-normalized total, ready for…
SYNOPSIS
POST https://x402.agentutility.ai/receipt-to-ledger
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION
Turn a receipt photo into a ledger entry in one call: line items, merchant and date entities, and a currency-normalized total, ready for a bookkeeping or expense system. Composite: one call runs receipt-parser first, then extract-entities and exchange-rates in parallel off the OCR output, merging into { ocr, line_items, entities, totals }. Covers receipt to ledger conversion, receipt parsing, expense extraction, and receipt ocr structured output for accounting and expense-tracking agents. Send image_url or file (receipt photo URL) and an optional target_currency (default USD); totals.converted carries the same-day FX-normalized amount. Use it as a receipt parsing API, expense automation tool, or receipt-to-ledger pipeline for finance agents.
INPUT — request schema
| property | type | description | req? |
|---|
| image_url | string | URL of the receipt photo to parse. Must be http or https. Provide this or 'file'. | optional |
| file | string | Alias for image_url — a http/https URL to the receipt photo. Provide this or 'image_url'. | optional |
| target_currency | string | 3-letter ISO 4217 code to normalize the receipt total into, e.g. 'USD'. Optional, default 'USD'. | optional |
OUTPUT — response shape
| field | type | description |
|---|
| input | string | — |
| ocr | string | — |
| line_items | string | — |
| entities | string | — |
| totals | string | — |
| composed_of | string | — |
| components | string | — |
| degraded | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/receipt-to-ledger \
-H 'Content-Type: application/json' \
-d '{ }'first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>
# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...
# Then call the receipt-to-ledger tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- composereceipttoledgerreceipt-to-ledger
- methods
- POST
- cluster
- compose
- price
- $0.05 USDC per call
ADJACENT — other endpoints in compose
| endpoint | description | price |
|---|
| claim-corroborate | Fact check a claim and see exactly who agrees and who disagrees. | $0.05 |
| commodity-brief | Market brief for a commodity: recency-scoped web search headlines on price/supply/demand plus a structured research brief with overview,… | $0.05 |
| company-dossier | Builds a company research dossier in one call: firmographic profile, domain intelligence, WHOIS registration, TLS, and tech stack. | $0.05 |
| content-trust-check | Trust screen for a block of text in one call: is it AI-generated, is it safe (content moderation), and is it a near-duplicate of a refere… | $0.05 |
| contract-terms-brief | Pull SLA terms, named entities, PII flags, and a plain-language summary out of a contract or policy document in one call. | $0.05 |
| course-study-kit | Turn a course syllabus into a study kit in one call: a parsed outline, a sequenced reading/study plan, flashcards, and a bullet summary. | $0.05 |
| cross-border-ops-brief | Cross-border operating brief for a country: the FX rate, country profile, visa requirements, upcoming public holidays, and current local… | $0.05 |
| crypto-signal-scan | Structured, informational signal brief for a token or crypto topic: X/Twitter sentiment, recent web coverage, and (when a fiat quote curr… | $0.05 |