{"uid":"cap_Ite3-eOB1UHnfAJhuRh6N","slug":"eu-invoice-pre-check-batch-spain-agent-toolkit-5a02232a","name":"EU Invoice Pre-Check Batch (Spain Agent Toolkit)","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://es.redtapeapi.com/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_a66znb_6WJSrf28WNvTm2","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 up to 50 EU VAT numbers via VIES, verifies IBANs, and optionally calculates invoice due dates with regional holiday awareness in a single batch call.","exampleAgentPrompt":"Before we process this week's payment run, can you batch-check these 5 supplier invoices — VAT numbers DE811569869, ES12345678A, FR40303265045, IT12345678901, and BE0123456749 — with their IBANs, all issued on 2025-07-01 with 30-day payment terms, and flag any that fail VIES or have IBAN problems?","exampleUseCases":[{"title":"Accounts payable pre-payment validation","prompt":"We have 12 supplier invoices queued for payment this Friday — can you check all their VAT numbers against VIES and validate their IBANs? Issue dates are all 2025-07-10, payment terms are 30 days, suppliers are based in Germany, Spain, and France."},{"title":"Spanish vendor onboarding compliance check","prompt":"Before I add these 8 new Spanish suppliers to our system, can you validate each one's CIF and IBAN, and confirm their ES VAT numbers are active in VIES? I also need to know the due date if we invoice them on 2025-07-15 with 60-day payment terms."},{"title":"EU cross-border invoice audit","prompt":"We've received 20 invoices from EU suppliers this month and I need to flag any where the VAT number isn't registered in VIES or the IBAN doesn't match — can you run them all through a batch check and give me a summary of which ones pass and which ones fail?"}],"resultDescription":"A JSON object containing: a count of items processed, a results array where each entry has an index, a verdict (ok/fail/review), and a list of specific issues if any; plus a summary with counts per verdict category and the number of distinct VAT numbers checked.","failureModes":["VIES service temporarily unavailable causing VAT check failure","Invalid VAT number format causing rejection before VIES lookup","IBAN checksum failure returning issue detail for that item","Batch exceeds 50 items returning 400 validation error","Invalid date format for issueDate causing parsing error","paymentTermDays out of 0-365 range causing rejection","Network timeout on VIES external call returning partial results"],"whenToPreferThis":"Use this endpoint when you need to validate multiple EU supplier invoices in one shot — combining VIES VAT number verification, IBAN validation, optional Spanish NIF/CIF checking, and due-date calculation with regional holiday awareness. Prefer it over single-item checks when processing payment batches or onboarding multiple suppliers. It requires no account setup and is paid per-call via x402/USDC, making it ideal for agentic workflows that need compliance checks without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:11:43.378Z","isFirstParty":false,"canonicalSlug":"eu-invoice-pre-check-batch-spain-agent-toolkit-5a02232a"}