{"uid":"cap_zrUaePbA4hSwz4LTtmKIt","slug":"eu-invoice-precheck-batch-dd4a4a87","name":"EU Invoice Precheck Batch","description":"Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.","url":"https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/eu/invoice/precheck/batch?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["vatNumber","iban"],"properties":{"iban":{"type":"string","description":"Supplier IBAN, spaces allowed"},"region":{"type":"string","description":"Optional ISO 3166-2 region for regional holidays, e.g. DE-BY, ES-CT"},"country":{"type":"string","description":"Optional ISO country whose holidays apply to the due date (default: VAT country)"},"issueDate":{"type":"string","description":"Optional invoice date YYYY-MM-DD; enables the due-date calculation"},"vatNumber":{"type":"string","description":"EU VAT number with country prefix (VIES: EL for Greece, XI for Northern Ireland), e.g. DE811569869"},"spanishTaxId":{"type":"string","description":"Optional Spanish NIF/NIE/CIF to validate (and match against an ES VAT number)"},"paymentTermDays":{"type":"integer","description":"Optional payment term in calendar days (0-365, default 30 when issueDate is given)"}}},"maxItems":50,"minItems":1}}},"responseSchema":{"type":"json","example":{"count":2,"results":[{"index":0,"verdict":"ok"},{"index":1,"issues":["VAT number is not registered/active in VIES (not valid for intra-EU supplies)."],"verdict":"fail"}],"summary":{"ok":1,"fail":1,"review":0},"distinctVatNumbers":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ytvUH8LO66r2S5c9iSy2M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a batch of up to 50 EU supplier invoices by checking VAT numbers against live VIES, validating IBANs, Spanish tax IDs, and computing payment due dates with holiday awareness.","exampleAgentPrompt":"I have 3 supplier invoices to check before we process payment — can you batch-validate their EU VAT numbers and IBANs for me? Supplier 1: VAT DE811569869, IBAN DE89370400440532013000, issued 2024-06-01 with 30-day terms. Supplier 2: VAT ES12345678A, IBAN ES9121000418450200051332, region ES-CT. Supplier 3: VAT FR40303265045, IBAN FR7630006000011234567890189.","exampleUseCases":[{"title":"Accounts payable batch pre-flight check","prompt":"Before we run this week's payment batch, please validate these 5 supplier invoices — check their EU VAT numbers against VIES and verify the IBANs are valid: Supplier A (VAT IT00743110157, IBAN IT60X0542811101000000123456, issued 2024-07-15, 30-day terms), Supplier B (VAT DE811569869, IBAN DE89370400440532013000), and three more I'll paste. Flag any that fail."},{"title":"Spanish NIF and VAT cross-check","prompt":"We've got two Spanish suppliers whose NIF and VAT numbers don't seem to match — can you verify: first one has NIF B12345678 and VAT ES12345678A, IBAN ES9121000418450200051332; second has NIF A58818501 and VAT ESA58818501, IBAN ES6000491500051234567892? Tell me if either has a mismatch or an inactive VAT."},{"title":"Intra-EU invoice due date computation","prompt":"I need to know the exact due dates for these invoices accounting for public holidays — invoice 1: VAT DE811569869, IBAN DE89370400440532013000, issued 2024-12-20, 30-day terms, region DE-BY; invoice 2: VAT FR40303265045, IBAN FR7630006000011234567890189, issued 2024-12-18, 60-day terms, country FR. Are the VAT numbers still active in VIES?"}],"resultDescription":"A JSON object containing a count of processed items, a per-item results array with an index, a verdict ('ok', 'fail', or 'review'), and a list of specific issues for failing items (e.g. VIES registration failure, IBAN format error), plus a summary with counts per verdict category and the number of distinct VAT numbers checked.","failureModes":["VIES service temporarily unavailable — returns error or degrades to offline check","Invalid or malformed VAT number format — item verdict 'fail' with descriptive issue","IBAN fails checksum validation — item verdict 'fail'","Spanish NIF/CIF does not match the ES VAT number — item verdict 'fail' with mismatch message","Batch exceeds 50 items — request rejected with validation error","Missing required fields (vatNumber or iban) — request rejected","Payment via x402 fails or insufficient USDC — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need to pre-validate multiple EU supplier invoices in a single call before initiating payments or uploading to an ERP — especially when you need live VIES VAT status checks combined with IBAN validation, Spanish NIF/CIF cross-matching, and holiday-aware due-date computation, all without registering an account or managing API keys. Prefer it over single-item validation endpoints when processing batches of 2–50 invoices to minimise cost and latency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:45:02.926Z","isFirstParty":false,"canonicalSlug":"eu-invoice-precheck-batch-dd4a4a87"}