{"uid":"cap_772aYBqAqraNd6e9A8N8U","slug":"strale-invoice-process-5f520f3d","name":"Strale Invoice Process","description":"End-to-end invoice verification: extract structured data from the invoice, validate the vendor's VAT number, verify the payment IBAN, and convert currency if needed. Returns everything an AP automation agent needs.","url":"https://api.strale.io/x402/solutions/invoice-process","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Invoice text or OCR output"},"target_currency":{"type":"string","description":"Convert amounts to this currency (optional)"}}},"responseSchema":null,"example":{"request":{"text":"Invoice #1042, Vendor: Acme BV, Date: 2024-06-01, Item: Consulting Services, Qty: 10hrs, Unit Price: €120, Total: €1200, VAT: €252, Grand Total: €1452.","target_currency":"USD"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.54,"settlement_id":"0x0d0f80c574b7c2ba79ba790b19a79fcbe64af86c40d2467f49714fac89ea19e4"},"solution":"invoice-process","latency_ms":10,"step_count":4},"steps":{"vat-validate":{"reason":"All required inputs were not provided","skipped":true},"iban-validate":{"reason":"All required inputs were not provided","skipped":true},"invoice-extract":{"error":"'url' or 'base64' is required. Provide a URL to an invoice image/PDF or a base64-encoded file."},"currency-convert":{"to":"USD","date":"2026-06-12","from":"USD","rate":1,"amount":1,"converted_amount":1}},"errors":["invoice-extract: 'url' or 'base64' is required. Provide a URL to an invoice image/PDF or a base64-encoded file."],"solution":"invoice-process"}},"exampleRequest":{"text":"Invoice #1042, Vendor: Acme BV, Date: 2024-06-01, Item: Consulting Services, Qty: 10hrs, Unit Price: €120, Total: €1200, VAT: €252, Grand Total: €1452.","target_currency":"USD"},"tags":["x402"],"displayCostAmount":"0.54","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.54/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.54","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.54","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OmuDwM9R1EXKXoXmxgSns","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.54","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and extracts structured data from invoice text or OCR output, with optional currency conversion and audit trail","exampleAgentPrompt":"Can you process this invoice text I got from OCR and extract all the structured data — line items, amounts, totals — and convert everything to USD? Here's the text: 'Invoice #1042, Vendor: Acme BV, Date: 2024-06-01, Item: Consulting Services, Qty: 10hrs, Unit Price: €120, Total: €1200, VAT: €252, Grand Total: €1452.'","exampleUseCases":[{"title":"Accounts payable batch processing automation","prompt":"I need to process a batch of supplier invoices from our European vendors. Can you extract all the invoice data, parse out the line items and totals, and convert everything to USD so our accounting system can ingest it properly? We also need to keep audit trails for compliance."},{"title":"Scanned invoice data validation workflow","prompt":"Our scanning system just OCR'd a stack of invoices from different vendors. Can you take the raw OCR text and turn it into clean structured JSON with all the invoice details organized? Make sure to validate that the amounts add up correctly and flag anything that looks inconsistent."},{"title":"Multi-currency expense reconciliation reports","prompt":"We have invoices coming in from vendors across multiple countries in different currencies. Can you extract the structured data from each invoice, convert all the monetary amounts to our reporting currency, and give me the audit trail so our finance team can verify what was processed?"}],"resultDescription":"Structured JSON containing parsed invoice fields (invoice number, vendor details, line items, quantities, unit prices, subtotals, tax amounts, grand total), optionally with all monetary amounts converted to the target currency, plus an audit trail of the extraction process.","failureModes":["Unreadable or garbled OCR text may result in incomplete or missing fields","Unsupported or ambiguous currency codes may cause conversion errors","Missing required 'text' field returns a 400 validation error","Non-invoice text (e.g. contracts, receipts) may produce low-confidence or incorrect structured output","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need to turn raw invoice text (manual entry or OCR-extracted) into validated, structured JSON with an audit trail, especially within a financial automation or accounts payable workflow. It is particularly valuable when currency conversion is needed alongside extraction, or when compliance audit trails are required for processed invoices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:04.550Z","isFirstParty":false}