{"uid":"cap_3El06RXjm_FwZ48gGeT7k","slug":"extract-invoice-data-c2ea3194","name":"Extract Invoice Data","description":"Extract Invoice Data: Extract structured data from an invoice: vendor, line items, amounts, dates, tax, payment terms.","url":"https://api.agentwonderland.com/x402/endpoints/extract-invoice-data","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"document":{"type":"string","title":"Document","description":"Document URL or base64-encoded file data","json_schema_extra":{"example":"https://example.com/contract.pdf"}},"fileExtension":{"type":"string","title":"Fileextension","default":".pdf","description":"File extension when providing base64 data (e.g. .pdf, .docx, .png)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UGzl9FS85cjG-jWD-YISd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured data from an invoice document, including vendor details, line items, amounts, dates, tax, and payment terms.","exampleAgentPrompt":"Can you extract all the structured data from this invoice PDF — I need the vendor name, line items, amounts, dates, tax, and payment terms: https://example.com/invoice-2024-Q1.pdf","exampleUseCases":[{"title":"Automate accounts payable data entry","prompt":"I need to pull all the details out of this invoice so I can enter it into our accounting system — vendor, line items, amounts, due date, and any tax. Here's the file: https://acme.com/invoices/vendor-april.pdf"},{"title":"Flag invoice discrepancies for review","prompt":"Can you extract the line items, totals, and tax from this invoice PDF so I can compare them against our purchase order? https://example.com/po-invoice-march.pdf"},{"title":"Digitize a base64-encoded invoice image","prompt":"I have a scanned invoice as a base64 PNG — can you pull out the vendor name, all line items with their amounts, the invoice date, and the payment terms from it? The file extension is .png."}],"resultDescription":"Returns structured JSON containing extracted invoice fields: vendor name and details, individual line items with descriptions and amounts, subtotal, tax amounts, total amount due, invoice date, due date, and payment terms.","failureModes":["Document URL is inaccessible or returns a non-200 status — extraction fails with a fetch error","File format is unsupported or corrupted — returns parsing error","Base64 data is malformed or truncated — returns decoding error","Invoice image is too low resolution to extract text reliably — returns partial or empty results","Document is not an invoice (e.g. a contract or report) — returns incorrect or empty structured fields"],"whenToPreferThis":"Choose this endpoint when you need to automatically parse invoice documents (PDF, DOCX, or image formats) into structured, machine-readable data for accounting, ERP, or accounts payable workflows. It is best suited for cases where you have a document URL or base64-encoded file and need vendor, line item, tax, and payment term fields extracted in one call. Prefer it over general-purpose OCR when you specifically need invoice-domain semantics and structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:44:27.775Z","isFirstParty":false}