# EU Invoice Pre-Check (VAT + IBAN + Due Date)

> EU Invoice Pre-Check (VAT + IBAN + Due Date) is a paid API for AI agents from es.redtapeapi.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-11-18).

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.

## Facts

- Endpoint: GET https://es.redtapeapi.com/v1/eu/invoice/precheck?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-invoice-pre-check-vat-iban-due-date-fb27d549
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3jRRarSzznwHhprZ_qU5N

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability eu-invoice-pre-check-vat-iban-due-date-fb27d549
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-invoice-pre-check-vat-iban-due-date-fb27d549/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from es.redtapeapi.com](https://www.zero.xyz/host/es.redtapeapi.com/llms.txt)
