{"uid":"cap_-wWyzj2LZllfyg9ACVk17","slug":"mart402-invoice-document-pipeline-639c352b","name":"Mart402 Invoice Document Pipeline","description":"Invoice pipeline in one call: PDF to structured Markdown (hallucination-guarded OCR), invoice field extraction, arithmetic verification, optional issuer enrichment. Flat 0.05/document (text PDFs to 20 pages, scans to 3).","url":"https://mart402.com/v1/document-pipeline?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"},"enrich":{"type":"boolean"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eKNNKQFeaOgXluQ4nQ2W_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an invoice PDF URL into structured Markdown via OCR, extracts invoice fields, verifies arithmetic, and optionally enriches issuer data — all in a single call.","exampleAgentPrompt":"Process this invoice PDF for me — extract all the fields like vendor, invoice number, line items, and totals, verify the math checks out, and enrich the issuer details: https://example.com/invoices/invoice-2024-001.pdf","exampleUseCases":[{"title":"Accounts payable invoice ingestion","prompt":"I just received a supplier invoice as a PDF — can you parse out the vendor name, invoice number, line items, amounts, and due date, and also double-check that the totals add up correctly? Here's the URL: https://acme-corp.com/invoices/inv-00452.pdf"},{"title":"Audit trail with issuer enrichment","prompt":"Pull all the structured fields from this invoice PDF and also enrich the issuer details so I know more about the company that sent it — I need to verify it before approving payment. The PDF is at https://storage.mycompany.com/uploads/vendor-invoice-march.pdf, and yes please do the enrichment."},{"title":"Automated invoice verification bot","prompt":"Check this scanned invoice PDF for me: https://bills.example.org/scan-invoice-99.pdf — extract the invoice fields and tell me if the arithmetic on the line items and totals is correct, so I can flag any discrepancies before we pay it."}],"resultDescription":"Returns structured Markdown of the invoice content, extracted invoice fields (vendor, invoice number, date, line items, subtotals, tax, total, due date), arithmetic verification indicating whether the numbers reconcile, and optionally enriched issuer/company information. Covers text PDFs up to 20 pages and scanned PDFs up to 3 pages.","failureModes":["PDF URL is unreachable or returns a non-PDF response","Scanned PDF exceeds 3-page limit causing rejection","Text PDF exceeds 20-page limit causing rejection","Low-quality scans may degrade OCR accuracy despite hallucination guards","Issuer enrichment may return partial data if company is not findable","Invalid or malformed URL input returns a 4xx error","Network timeout if PDF download is slow"],"whenToPreferThis":"Choose this endpoint when you need a single-call solution for full invoice processing — OCR, field extraction, arithmetic validation, and optional issuer enrichment — rather than stitching together separate OCR and parsing tools. Ideal for accounts payable automation, invoice auditing, or any workflow where you receive invoice PDFs at a URL and need structured, verified data output at low per-document cost ($0.05). Best for documents up to 20 pages (text) or 3 pages (scanned).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:44:10.523Z","isFirstParty":false,"canonicalSlug":"mart402-invoice-document-pipeline-639c352b"}