{"name":"receipt-to-ledger","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.","price":"$0.05","method":"POST","input_schema":{"properties":{"image_url":{"type":"string","description":"URL of the receipt photo to parse. Must be http or https. Provide this or 'file'."},"file":{"type":"string","description":"Alias for image_url — a http/https URL to the receipt photo. Provide this or 'image_url'."},"target_currency":{"type":"string","description":"3-letter ISO 4217 code to normalize the receipt total into, e.g. 'USD'. Optional, default 'USD'."}},"required":[]},"input_example":{"image_url":"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png","target_currency":"USD"},"output_example":{"input":{"image_url":"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png","target_currency":"USD"},"ocr":{"model":"qwen3-5-9b","raw_text":"Corner Cafe\n1 Market St\nCoffee 4.50\nTotal 4.50","vendor_name":"Corner Cafe","vendor_address":"1 Market St","vendor_phone":null,"receipt_date":"2026-07-01","receipt_time":null,"payment_method":null,"receipt_number":null},"line_items":[{"description":"Coffee","qty":1,"unit_price":4.5,"total":4.5}],"entities":{"entities":{"organizations":["Corner Cafe"],"dates":["2026-07-01"]},"total_entities":2},"totals":{"subtotal":4.5,"tax":0,"tip":0,"total":4.5,"currency":"EUR","target_currency":"USD","converted":{"amount":4.86,"currency":"USD","rate":1.08,"rate_date":"2026-07-05"}},"composed_of":["receipt-parser","extract-entities","exchange-rates"],"components":[{"name":"receipt-parser","ok":true,"ms":3200},{"name":"extract-entities","ok":true,"ms":900},{"name":"exchange-rates","ok":true,"ms":180}],"degraded":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}