{"success":true,"data":{"id":"svc_invoice_extract_01","slug":"invoice-extract","name":"Invoice Data Extraction (EU e-invoice)","description":"Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Factur-X XML to JSON (number, dates, seller and buyer with VAT ID, line items, tax per rate, totals, IBAN, payment terms). E-invoices are read exactly from the embedded XML, without AI; plain PDFs and photos by Claude Haiku 5.5. Every result is checked: totals add up, seller VAT ID in EU VIES, IBAN and BIC. Says whether the file is a real EN 16931 e-invoice. Up to 15 MB.","category":"data","endpoint":"https://agentsvc.io/api/v1/proxy/invoice-extract","price_usdc":0.02,"latency_p99_ms":8000,"input_schema":{"type":"object","properties":{"pdf_url":{"type":"string","description":"PDF URL; or send one of the other inputs"},"pdf_base64":{"type":"string","description":"PDF as base64"},"xml":{"type":"string","description":"XRechnung/ZUGFeRD XML text"},"xml_url":{"type":"string","description":"XML URL"},"image_url":{"type":"string","description":"Photo or scan URL"},"image_base64":{"type":"string","description":"Photo as base64"},"validate":{"type":"boolean","default":true,"description":"Check VAT ID and IBAN"}}},"output_schema":{"type":"object","properties":{"source":{"type":"string"},"e_invoice":{"type":"object","properties":{"is_e_invoice":{"type":"boolean"},"format":{"type":"string"},"specification":{"type":"string"},"note":{"type":"string"}}},"invoice_number":{"type":"string"},"type":{"type":"string"},"type_code":{"type":"string"},"issue_date":{"type":"string"},"due_date":{"type":"string"},"delivery_date":{"type":"string"},"service_period":{},"currency":{"type":"string"},"order_reference":{},"buyer_reference":{"type":"string"},"seller":{"type":"object","properties":{"name":{"type":"string"},"street":{"type":"string"},"postal_code":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"vat_id":{"type":"string"},"tax_number":{"type":"string"},"email":{"type":"string"}}},"buyer":{"type":"object","properties":{"name":{"type":"string"},"street":{"type":"string"},"postal_code":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"vat_id":{"type":"string"},"tax_number":{},"email":{"type":"string"}}},"lines":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"quantity":{"type":"number"},"unit":{"type":"string"},"unit_price":{"type":"number"},"net_amount":{"type":"number"},"tax_rate":{"type":"integer"},"tax_category":{"type":"string"}}}},"tax_breakdown":{"type":"array","items":{"type":"object","properties":{"rate":{"type":"integer"},"base":{"type":"number"},"amount":{"type":"number"},"category":{"type":"string"},"exemption_reason":{}}}},"totals":{"type":"object","properties":{"net":{"type":"number"},"tax":{"type":"number"},"gross":{"type":"number"},"prepaid":{},"payable":{"type":"number"}}},"payment":{"type":"object","properties":{"iban":{"type":"string"},"bic":{"type":"string"},"account_name":{"type":"string"},"reference":{"type":"string"},"terms":{"type":"string"},"means":{"type":"string"}}},"notes":{"type":"array","items":{"type":"string"}},"checks":{"type":"object","properties":{"arithmetic":{"type":"object","properties":{"ok":{"type":"boolean"},"issues":{"type":"array"}}},"seller_vat_id":{"type":"object","properties":{"checked":{"type":"boolean"},"valid":{"type":"boolean"},"registered_name":{},"source":{"type":"string"}}},"iban":{"type":"object","properties":{"checked":{"type":"boolean"},"valid":{"type":"boolean"},"bank":{"type":"string"},"bic_matches":{"type":"boolean"},"reason":{}}}}},"warnings":{"type":"array","items":{"type":"string"}},"model":{},"extracted_at":{"type":"string"}},"required":["source","e_invoice","invoice_number","seller","lines","totals","checks","warnings"],"example":{"source":"pdf_embedded_xml","e_invoice":{"is_e_invoice":true,"format":"ZUGFeRD / Factur-X EN 16931","specification":"urn:cen.eu:en16931:2017","note":"Structured e-invoice (EN 16931). Amounts were read exactly from the XML, no AI involved."},"invoice_number":"RE-2026-0001","type":"invoice","type_code":"380","issue_date":"2026-10-10","due_date":"2026-10-24","delivery_date":"2026-10-08","service_period":null,"currency":"EUR","order_reference":null,"buyer_reference":"RE-2026-0001","seller":{"name":"Malerbetrieb Muster GmbH","street":"Hauptstraße 12","postal_code":"20095","city":"Hamburg","country":"DE","vat_id":"DE123456789","tax_number":"22/815/08150","email":"rechnung@maler-muster.de"},"buyer":{"name":"Bauträger Nord GmbH & Co. KG","street":"Am Hafen 5","postal_code":"28195","city":"Bremen","country":"DE","vat_id":"DE987654321","tax_number":null,"email":"buchhaltung@bautraeger-nord.de"},"lines":[{"description":"Malerarbeiten Treppenhaus: Wände und Decken, 2x gestrichen","quantity":12.5,"unit":"HUR","unit_price":58,"net_amount":725,"tax_rate":19,"tax_category":"S"},{"description":"Wandfarbe weiß 10 l","quantity":3,"unit":"C62","unit_price":49.99,"net_amount":149.97,"tax_rate":19,"tax_category":"S"},{"description":"Fachbuch Farbenlehre","quantity":1,"unit":"C62","unit_price":24.3,"net_amount":24.3,"tax_rate":7,"tax_category":"S"}],"tax_breakdown":[{"rate":19,"base":874.97,"amount":166.24,"category":"S","exemption_reason":null},{"rate":7,"base":24.3,"amount":1.7,"category":"S","exemption_reason":null}],"totals":{"net":899.27,"tax":167.94,"gross":1067.21,"prepaid":null,"payable":1067.21},"payment":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_name":"Malerbetrieb Muster GmbH","reference":"Rechnung RE-2026-0001","terms":"Zahlbar innerhalb von 14 Tagen ohne Abzug.","means":"SEPA credit transfer"},"notes":["Vielen Dank für Ihren Auftrag & die gute Zusammenarbeit <3"],"checks":{"arithmetic":{"ok":true,"issues":[]},"seller_vat_id":{"checked":true,"valid":false,"registered_name":null,"source":"EU VIES"},"iban":{"checked":true,"valid":true,"bank":"Deutsche Kreditbank Berlin","bic_matches":true,"reason":null}},"warnings":["Seller VAT ID is not valid in VIES"],"model":null,"extracted_at":"2026-10-10T19:59:48.740Z"}},"is_active":true,"provider":"agentsvc.io","tags":["invoice-parsing","e-invoice","xrechnung","zugferd","accounting"],"method":"POST","example_input":{"pdf_url":"https://agentsvc.io/samples/zugferd-invoice.pdf"},"price_atomic":"20000","price_display":"$0.02 USDC","try_url":"https://agentsvc.io/api/v1/try/invoice-extract","try_limit_per_day":3,"info_url":"https://agentsvc.io/api/v1/services/invoice-extract","page_url":"https://agentsvc.io/services/invoice-extract","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/invoice-extract -H \"Content-Type: application/json\" -d '{\"pdf_url\":\"https://agentsvc.io/samples/zugferd-invoice.pdf\"}'","status":{"ok":true,"latency_ms":201,"checked_at":"2026-10-10T22:19:08.752Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged.","also_accepted":[{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","network_v1":"solana","asset":"USDC","asset_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","pay_to":"5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg","note":"Solana option is accepts[1] in the 402. The facilitator pays the transaction fee (extra.feePayer); the payer needs only USDC, no SOL."}]},"links":{"catalog":"https://agentsvc.io/api/v1/services","payment_requirements":"https://agentsvc.io/api/v1/payment-requirements","credits":"https://agentsvc.io/api/v1/credits","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}