{
  "openapi": "3.0.1",
  "info": {
    "title": "EU & UK VAT Number Validator & VIES Verifier Pro",
    "description": "Bulk validate EU & UK VAT numbers or company domains with official VIES consultation proof numbers, VIES prerequisite tiers, unmasked DE/ES legal names, 4-column ERP addresses & SHA-256 verification reports — no API keys, $0 start fee, $2.20/1k base PPE.",
    "version": "1.3",
    "x-build-id": "vMaH0rbXeUTzZVMjz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voxatools~eu-vat-vies-company-verifier/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voxatools-eu-vat-vies-company-verifier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/voxatools~eu-vat-vies-company-verifier/runs": {
      "post": {
        "operationId": "runs-sync-voxatools-eu-vat-vies-company-verifier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/voxatools~eu-vat-vies-company-verifier/run-sync": {
      "post": {
        "operationId": "run-sync-voxatools-eu-vat-vies-company-verifier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "resultType": {
            "title": "1. Output Mode (Bulk VAT Verification Records vs. Consolidated B2B Entity KYB Profiles)",
            "enum": [
              "verifications",
              "entities"
            ],
            "type": "string",
            "description": "Select 'verifications' (default — $2.20/1k checks) for line-by-line EU/UK VAT verification records with VIES prerequisite tiers, optional requester consultation proof numbers, and 4-column ERP addresses. Select 'entities' ($3.80/1k companies) to consolidate records that share a verified GLEIF LEI code or identical VAT/domain+registration identity into B2B KYB legal entity profiles.",
            "default": "verifications"
          },
          "vatNumbers": {
            "title": "2. EU & UK VAT Numbers, National Registration Numbers, or Company Legal Names",
            "type": "array",
            "description": "List of EU (27 Member States + Northern Ireland XI) or UK (GB) VAT identification numbers to validate in bulk (e.g., 'IE6388047V', 'DE260543043', 'NL805734958B01', 'SE556703748501'). Note: Great Britain (GB) left the EU VIES system post-Brexit and is validated via 0ms UK HMRC Mod-97-55 mathematical check digit plus optional GLEIF ISO-17442 corporate registry lookup, while Northern Ireland (XI) is checked live in EU VIES. Also supports GLEIF legal entity lookup by company name or UK CRN (returns viesStatus='GLEIF_ENTITY_LOOKUP_ONLY_NO_VAT_ID').",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "3. Public Company Website Domains (Optional Domain Imprint-to-VAT & KYB Discovery)",
            "type": "array",
            "description": "Optional list of public B2B company website domains (e.g., 'sipgate.de', 'ionos.de') when you do not yet have the counterparty's VAT number or when VIES masks legal names (DE/ES) and you need the public legal notice (Impressum / Mentions légales / Legal) registration number (HRB/SIREN/KVK) to link GLEIF identity. Enforces strict public-domain SSRF protection.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "defaultCountry": {
            "title": "4. Default ISO Country Prefix (For Raw VAT Numbers Missing a 2-Letter Country Code)",
            "enum": [
              "AUTO",
              "DE",
              "FR",
              "NL",
              "IE",
              "BE",
              "IT",
              "ES",
              "SE",
              "FI",
              "DK",
              "PL",
              "AT",
              "PT",
              "EL",
              "CZ",
              "RO",
              "HU",
              "BG",
              "SK",
              "HR",
              "LT",
              "SI",
              "LV",
              "EE",
              "CY",
              "LU",
              "MT",
              "XI",
              "GB"
            ],
            "type": "string",
            "description": "Select 'AUTO' (default) when your VAT numbers already include a 2-letter country prefix (such as DE260543043 or IE6388047V), or select a specific EU/UK ISO country code (e.g., 'DE', 'FR', 'NL', 'GB') to automatically prepend when validating raw domestic numbers without prefixes.",
            "default": "AUTO"
          },
          "requesterVatNumber": {
            "title": "5. Your Own Requester EU VAT Number (Optional — Required Only for Requester-Linked VIES Consultation Proof #)",
            "type": "string",
            "description": "Optional: Supply YOUR OWN company's valid EU/XI VAT number if you want the European Commission VIES system to issue a requester-linked Consultation Proof Identifier (requestIdentifier / consultationNumber). Defaults to empty (\"\") so another company's VAT number is never submitted on your behalf.",
            "default": ""
          },
          "includeRegistryDetails": {
            "title": "6. 🏛️ Deep Corporate Registry & GLEIF LEI KYB Enrichment (+$1.80 / 1,000 verified records)",
            "type": "boolean",
            "description": "Note: VIES validation and 4-column parsed ERP addresses are ALREADY included in base mode! Enable 'includeRegistryDetails' when you also need live GLEIF ISO-17442 LEI records, commercial registration numbers (HRB/SIREN/KVK/CRO/CRN), legal form, and incorporation date. Billed ONLY for records where GLEIF registry enrichment succeeds (registryVerified === true).",
            "default": false
          },
          "onlyValid": {
            "title": "7. ✅ Only Output Active & Valid VAT Numbers (Filter Out Invalid / Deregistered)",
            "type": "boolean",
            "description": "When enabled, filters out syntax-invalid or deregistered VAT numbers and only outputs verified active records ('valid: true'). When combined with 'onlyChangedStatus: true', newly revoked VAT transitions (previously 'valid: true' -> now 'valid: false') are still emitted so revocation alerts are never missed.",
            "default": false
          },
          "deduplicateEntities": {
            "title": "8. 📈 Deduplicate Identical VAT Numbers & Multi-Branch ERP Rows (Zero Double-Charging)",
            "type": "boolean",
            "description": "When enabled (default true), normalizes dirty ERP strings (e.g., 'DE 260 543 043', 'de-260.543.043', 'DE260543043') in 0ms and merges duplicate rows into 1 single verification record while counting 'invoiceOrBranchScaleCount' so you never pay twice for the same supplier or customer.",
            "default": true
          },
          "maxResults": {
            "title": "9. Maximum Records to Output (maxResults)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of verified VAT or corporate entity records to output in this run (1 to 10,000 records per batch).",
            "default": 100
          },
          "maxItems": {
            "title": "10. Maximum Items Alias (maxItems — MCP / Apify Standard Alias for maxResults)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional alias for 'maxResults' (1 to 10,000 records per batch) for MCP and Apify CLI callers."
          },
          "onlyChangedStatus": {
            "title": "11. 📡 Scheduled Delta Compliance Radar: Only Output Changed VAT Statuses, Names, or Addresses",
            "type": "boolean",
            "description": "When enabled on scheduled compliance runs, stores an isolated scope-keyed baseline snapshot of partner VAT status, legal name, address, and registry identity in Key-Value Store and only outputs and bills for newly added partners or partners whose intrinsic record fingerprint changed ($0.00 cost when 0 records change).",
            "default": false
          },
          "generateAuditCertificates": {
            "title": "12. 📜 Generate & Archive Content-Addressed SHA-256 Verification Reports (+$0.80 / 1,000 reports)",
            "type": "boolean",
            "description": "When enabled, generates an application-created JSON and printable HTML Verification Report (with UTC timestamp, observed VIES status, optional consultationNumber, 4-column address, unassessed Article 138 conditions, and content SHA-256 integrity hash) and saves it to your Apify Key-Value Store and Dataset item for export into your long-term ERP archive.",
            "default": false
          },
          "downloadAssets": {
            "title": "13. 💾 Archive Printable HTML/JSON Verification Reports Alias (downloadAssets, +$0.80 / 1,000 reports)",
            "type": "boolean",
            "description": "Optional alias for 'generateAuditCertificates': saves printable HTML and JSON Verification Reports with content SHA-256 integrity hashes into your Apify Key-Value Store so you can export and archive them in your ERP.",
            "default": false
          },
          "checkMemberStateHealth": {
            "title": "14. 🩺 Pre-Check EU VIES Member-State Gateway Availability (checkMemberStateHealth)",
            "type": "boolean",
            "description": "Optional diagnostic pre-check: queries the official European Commission VIES '/rest-api/check-status' availability endpoint before running batch verifications and attaches 'memberStatesHealthReport' to COMPETITOR_AD_SUMMARY.json ($0.00 extra cost).",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}