{"uid":"cap_3jRRarSzznwHhprZ_qU5N","slug":"eu-invoice-pre-check-vat-iban-due-date-fb27d549","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://es.redtapeapi.com/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_W4hN7SaeK_yNgJMog5yQt","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 cross-match, and optionally computes a business-day-adjusted invoice due date.","exampleAgentPrompt":"Before I pay this German supplier invoice, can you pre-check their VAT number DE811569869 and IBAN DE89370400440532013000, with an issue date of 2026-10-26 and 30-day payment terms, and tell me if everything looks valid and when it's due?","exampleUseCases":[{"title":"Accounts payable supplier onboarding check","prompt":"We just received a new supplier from France — their VAT number is FR40303265045 and IBAN is FR7630006000011234567890189. Can you validate both, check they match, and flag any issues before I add them to our system?"},{"title":"Invoice due date with regional holiday adjustment","prompt":"I have an invoice dated 2026-11-01 from a Catalan supplier with VAT ES08013524C and IBAN ES9121000418450200051332. With 60-day payment terms and the ES-CT region, what's the adjusted due date after skipping public holidays?"},{"title":"Cross-border VAT and IBAN mismatch detection","prompt":"Something looks off — a supplier claims to be Italian with VAT IT02043580242 but gave me a Spanish IBAN ES7921000813610123456789. Can you check if the countries match and whether both numbers are valid?"}],"resultDescription":"A JSON object with: VAT validation (VIES status, normalized number, country code, format validity, registered name/address if available), IBAN validation (valid flag, country, formatted IBAN), country cross-match between VAT and IBAN countries, optional due date (nominal and adjusted, with skipped holidays and warnings), a list of issues, and an overall verdict string ('ok' or error codes).","failureModes":["VIES service temporarily unavailable — VAT status may return an error or timeout","Invalid VAT format — formatValid false, no VIES lookup attempted","IBAN checksum failure — valid:false returned","Country mismatch detected — countryMatch.match is false, issues array populated","issueDate missing when paymentTermDays supplied — due date not computed","Invalid date format for issueDate — 400-level error","paymentTermDays out of range (>365) — validation error"],"whenToPreferThis":"Use this endpoint when you need a single, combined pre-flight check on an EU supplier invoice covering VAT authenticity (live VIES), IBAN format/country, and due-date calculation in one call. Prefer it over separate VAT-only or IBAN-only validators when you need the country cross-match verdict and holiday-adjusted due date together. It is stateless, requires no account or API key (pay-per-call via USDC x402), and is well-suited for automated AP pipelines, supplier onboarding agents, or compliance bots that process EU invoices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:08:14.072Z","isFirstParty":false,"canonicalSlug":"eu-invoice-pre-check-vat-iban-due-date-fb27d549"}