{"uid":"cap_6m4C7-KrK07xQpy4zhSBE","slug":"eu-invoice-pre-check-vat-iban-due-date-81782971","name":"EU Invoice Pre-Check (VAT + IBAN + Due Date)","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?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"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)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"vat":{"vies":{"name":null,"status":"valid","address":null,"requestDate":"2026-10-26+01:00"},"normalized":"DE811569869","countryCode":"DE","formatValid":true},"iban":{"valid":true,"country":"DE","formatted":"DE89 3704 0044 0532 0130 00"},"issues":[],"dueDate":{"dueDate":"2026-12-02","skipped":[],"adjusted":false,"warnings":[],"nominalDueDate":"2026-12-02"},"verdict":"ok","countryMatch":{"match":true,"vatCountry":"DE","ibanCountry":"DE"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MnuQNmsPOSVCplds3TUCT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an EU VAT number via live VIES, validates an IBAN, checks country match between supplier VAT and bank account, and optionally computes a payment due date adjusted for public holidays.","exampleAgentPrompt":"Before I pay this invoice, can you pre-check it — the supplier VAT number is DE811569869, their IBAN is DE89 3704 0044 0532 0130 00, the invoice date is 2026-10-26, and payment terms are 30 days? I want to know if the VAT is active on VIES, if the IBAN country matches, and when the due date falls.","exampleUseCases":[{"title":"Supplier onboarding compliance check","prompt":"I'm onboarding a new Italian supplier. Can you verify that their VAT number IT12345678901 is active on VIES and that their IBAN IT60 X054 2811 1010 0000 0123 456 is consistent with their VAT country before we add them to our system?"},{"title":"Invoice due date calculation with holidays","prompt":"We received an invoice dated 2026-11-15 with 60-day payment terms from a Spanish supplier (VAT ES-B12345678, IBAN ES91 2100 0418 4502 0005 1332). What is the adjusted due date taking Catalonia regional holidays into account? Region code is ES-CT."},{"title":"Pre-payment VAT and bank account validation","prompt":"Before we wire payment, please check this invoice: supplier VAT is FR40303265045 and their bank IBAN is FR76 3000 6000 0112 3456 7890 189. Are both valid, do they match countries, and are there any issues I should know about?"}],"resultDescription":"A JSON object containing: VAT validation details (VIES status, normalized number, country code, format validity, registered name/address if available), IBAN validity and formatted form, a country-match result comparing VAT and IBAN countries, an optional due date object (nominal and adjusted due date, skipped holidays, warnings), a list of issues found, and an overall verdict (ok or issues present).","failureModes":["VIES service unavailable — VAT status may be returned as unknown or error","Invalid VAT format — formatValid returns false with no VIES call made","IBAN checksum failure — valid returns false","Mismatched VAT and IBAN countries — countryMatch.match returns false, flagged in issues","Invalid issue date format — server returns a 400-level error","Payment term days out of range (0-365) — rejected with validation error","VIES timeout — request may take longer than usual or return a transient error"],"whenToPreferThis":"Choose this endpoint when you need to validate a complete EU invoice pre-payment — specifically when you need VAT liveness checked against the live EU VIES registry, IBAN structural validation, country consistency between supplier tax ID and bank account, and optionally a holiday-adjusted due date — all in a single stateless call with no account setup. Prefer this over standalone VAT or IBAN checkers when you need the combined compliance verdict and due-date computation in one step. It is especially suited for AI agents automating accounts payable or supplier onboarding workflows within EU/Spain contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:34:58.657Z","isFirstParty":false,"canonicalSlug":"eu-invoice-pre-check-vat-iban-due-date-81782971"}