{"uid":"cap_KYVp8KjcY2GibSgLaMgs0","slug":"invoice-receipt-extraction-api-e92fc4b1","name":"Invoice & Receipt Extraction API","description":"Evidence-backed npm package upgrade decisions for coding agents.","url":"https://x402-safe-upgrade-api.onrender.com/v1/invoice-receipt-extraction?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"documentText":{"type":"string","maxLength":200000,"description":"Content supplied by the caller only; it is processed in memory and not retained."},"documentType":{"enum":["auto","invoice","receipt"],"type":"string"}}},"responseSchema":{"type":"json","example":{"extracted":{"referenceNumber":"INV-100"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qzMXD1kdRvbIS6NrFxvHC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured fields (reference numbers, amounts, dates, line items) from invoice or receipt document text.","exampleAgentPrompt":"I have the full text of an invoice here — can you extract the structured fields from it, like the reference number, amounts, and dates? The document type is 'invoice'.","exampleUseCases":[{"title":"Automated accounts payable intake","prompt":"I just received this invoice as plain text — extract the reference number, vendor, line items, and total so I can log it into our system. Document type is invoice."},{"title":"Expense report receipt parsing","prompt":"Here's the text from a restaurant receipt I need to expense. Can you pull out the date, total amount, and any itemized charges from it? Set the document type to receipt."},{"title":"Auto-detect and extract billing document","prompt":"I'm not sure if this is an invoice or a receipt — just set the type to auto and extract whatever structured fields you can find, like amounts, dates, and reference numbers."}],"resultDescription":"A JSON object containing an 'extracted' field with structured data pulled from the document, such as referenceNumber, amounts, dates, line items, vendor names, and other relevant billing fields found in the input text.","failureModes":["Document text too long (exceeds 200,000 character limit) — request rejected","Malformed or unparseable document text — extracted fields may be empty or incomplete","Ambiguous document format when using 'auto' type — may misclassify document","Invalid documentType enum value — schema validation error","Payment failure via x402 protocol — 402 response, no extraction performed"],"whenToPreferThis":"Use this endpoint when you have raw invoice or receipt text and need structured field extraction without storing the document. Ideal for automated accounts payable pipelines, expense automation, or any agent workflow that ingests billing documents as text. Prefer this over OCR services when the document text is already available; prefer over general LLM extraction when you want a cost-predictable, purpose-built API at $0.02/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T21:26:07.589Z","isFirstParty":false,"canonicalSlug":"invoice-receipt-extraction-api-e92fc4b1"}