{"uid":"cap_sFirXjAngpfgQ54Sk854S","slug":"schemalock-invoice-extractor-1299389f","name":"SchemaLock Invoice Extractor","description":"SchemaLock — extract structured JSON data from an invoice PDF or image (vendor, line items, subtotal, tax, total, dates, payment terms). Unlike generic OCR (raw text) or text-only extraction APIs, this takes the raw file directly and validates against source math: line items checked against subtotal/tax/total, dates and currency checked, one automatic retry. If it still fails after that, you aren't charged — settlement is skipped, not just flagged.","url":"https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/invoice","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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":"unknown","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__Hhf9AOt3QT7ZwIWri_6y","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, financially-validated JSON (vendor, line items, subtotal, tax, total, dates, payment terms) from an invoice PDF or image file.","exampleAgentPrompt":"Can you extract all the structured data from this invoice PDF — vendor name, every line item, subtotal, tax, and total — and validate that the numbers actually add up?","exampleUseCases":[{"title":"Accounts payable automation pipeline","prompt":"I have a batch of vendor invoices coming in as PDFs — can you extract the vendor name, all line items, subtotal, tax, and total from each one and flag any where the numbers don't add up?"},{"title":"Invoice audit for expense reconciliation","prompt":"Pull the structured data out of this invoice image — I need the vendor, date, payment terms, every line item, and the final total, with confidence scores so I know which fields to double-check."},{"title":"Finance bot ingesting supplier invoices","prompt":"Parse this supplier invoice and give me the full breakdown: line items, subtotal, taxes, total amount due, currency, and payment due date — I need it as structured JSON I can plug into our accounting system."}],"resultDescription":"A financially-validated JSON object containing: vendor details, an array of line items (description, quantity, unit price, line total), subtotal, tax amount, grand total, invoice date, due date, payment terms, currency, and per-field confidence scores. Totals are cross-checked against line items; the service performs one automatic retry on failure.","failureModes":["Unreadable or heavily degraded image/PDF may result in low-confidence or missing fields","Unsupported file format or corrupt file returns extraction failure","Handwritten or non-standard invoice layouts may produce inaccurate line item parsing","Math validation failure flagged when invoice totals don't reconcile with line items","Network timeout on very large files","Payment not received or insufficient USDC balance returns 402 error"],"whenToPreferThis":"Choose SchemaLock when you need financially-validated structured JSON from an invoice — not just raw OCR text — and require cross-checked totals, validated dates and currency, per-field confidence scores, and automatic retry logic. Prefer this over generic OCR or text-extraction APIs when the downstream system needs machine-readable invoice data with arithmetic validation built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:03.253Z","isFirstParty":false}