{"uid":"cap_rxvoCJ2BXOyjfVwC3ILUe","slug":"schemalock-receipt-extractor-896b6afc","name":"SchemaLock Receipt Extractor","description":"SchemaLock — extract structured JSON data from a receipt PDF or image (merchant, items, subtotal, tax, tip, total, payment method). 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/receipt","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_ZJN0N2Sndp73pqAQGtSnA","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 from a receipt PDF or image, returning merchant, line items, subtotal, tax, tip, total, and payment method with per-field confidence scores.","exampleAgentPrompt":"Can you pull all the details out of this receipt — merchant, every line item, subtotal, tax, tip, total, and payment method — and give me a validated JSON breakdown with confidence scores for each field?","exampleUseCases":[{"title":"Expense report automation","prompt":"I have a pile of receipt images from my business trip — can you extract the merchant, date, line items, subtotal, tax, and total from each one as structured JSON so I can import them into my expense report?"},{"title":"Receipt validation for accounting","prompt":"I need to verify this restaurant receipt PDF is internally consistent — check that the line items add up to the subtotal, the tax looks right, and the total matches. Give me a JSON breakdown with confidence scores for each field."},{"title":"E-commerce return verification","prompt":"Can you parse this purchase receipt image and pull out the merchant name, items purchased, payment method, and total amount paid so I can verify the return request matches what was actually bought?"}],"resultDescription":"A structured JSON object containing: merchant name, transaction date, currency, individual line items (each with name and price), subtotal, tax amount, tip amount, grand total, and payment method. Each field includes a per-field confidence score. The schema is financially validated — line items are cross-checked against subtotal, tax, and total. An automatic retry is performed on parsing failure.","failureModes":["Unreadable or low-quality image results in low confidence scores or extraction failure","Handwritten or non-standard receipts may produce incomplete or inaccurate field extraction","PDF with scanned images rather than embedded text may reduce accuracy","Receipt in an unsupported language or currency format may cause validation errors","Network or worker timeout if file is too large","Missing required file input returns an error"],"whenToPreferThis":"Choose this endpoint when you need financially-validated structured JSON from a receipt file (PDF or image), not just raw OCR text. It is specifically optimized for receipt documents — it cross-validates line items against subtotals, tax, and totals, includes per-field confidence scores, and performs automatic retries. Prefer it over generic OCR when downstream accuracy and field-level trust signals matter, such as in expense management, accounting automation, or fraud detection workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:23.518Z","isFirstParty":false}