{
  "openapi": "3.0.1",
  "info": {
    "title": "EU VAT Number Validator – Bulk VIES Check, Name & Address",
    "description": "Validate EU VAT numbers in bulk against the official EC VIES service: valid/invalid, registered company name and address, request date and VIES consultation number. Free local format + checksum pre-check, retries on member-state outages. $1 per 1,000 checks.",
    "version": "0.1",
    "x-build-id": "MsTda7jO9Rf0HqULV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~eu-vat-validator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-eu-vat-validator",
        "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/gazidev~eu-vat-validator/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-eu-vat-validator",
        "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/gazidev~eu-vat-validator/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-eu-vat-validator",
        "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": {
          "vatNumbers": {
            "title": "VAT numbers",
            "type": "array",
            "description": "VAT numbers of your customers or suppliers, with country prefix: `IE6388047V`, `DE 811 569 869`, `ATU13585627`, `EL094014201` (Greece = EL), `XI...` (Northern Ireland). Spaces, dots and dashes are ignored. Numbers without prefix use the default country below.",
            "default": [
              "IE6388047V"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste numbers or CSV)",
            "type": "string",
            "description": "Paste one VAT number per line, or a whole CSV/TSV export with a header row (the VAT column is detected automatically: vat, vat_id, ust_idnr, tva, iva, btw, tax_id...)."
          },
          "sourceFileUrl": {
            "title": "CSV / TXT file URL",
            "type": "string",
            "description": "Public URL of a .csv or .txt file (e.g. Google Sheets 'Publish to web' CSV link)."
          },
          "datasetId": {
            "title": "Apify dataset ID",
            "type": "string",
            "description": "Check VAT numbers stored in an Apify dataset (e.g. your CRM export or an invoice parser). Set the field name below (default `vatNumber`, dot paths like `company.vat` work)."
          },
          "vatColumn": {
            "title": "VAT column / field name",
            "type": "string",
            "description": "CSV column or dataset field holding the VAT number. Empty = auto-detect for CSV, `vatNumber` for datasets."
          },
          "defaultCountry": {
            "title": "Default country (VIES code)",
            "type": "string",
            "description": "Two-letter VIES code (DE, FR, IT, ES, NL, EL, XI...) for numbers written without a country prefix. A `country` column in your CSV overrides it per row."
          },
          "keepFields": {
            "title": "Copy these columns to the output",
            "type": "array",
            "description": "CSV columns or dataset fields to copy into each result under `record` (e.g. `customer_id`, `invoice`) so you can join results back.",
            "items": {
              "type": "string"
            }
          },
          "requesterVatNumber": {
            "title": "Your own VAT number (for consultation numbers)",
            "type": "string",
            "description": "Optional. If you enter YOUR company's EU VAT number, VIES returns a unique consultation number for every check - keep it as proof for your tax administration that you verified the customer on that date."
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Keep only the first occurrence of each number (after normalisation, so `de811569869` and `DE 811 569 869` are the same). Duplicates are never charged; with this off they are copied from the first check for free.",
            "default": true
          },
          "includeInvalid": {
            "title": "Include values that fail the local format check",
            "type": "boolean",
            "description": "Show numbers with a wrong length, characters or check digit (they are not sent to VIES and not charged).",
            "default": true
          },
          "verifyChecksumFailures": {
            "title": "Send checksum failures to VIES anyway",
            "type": "boolean",
            "description": "By default a number whose check digit is wrong is reported as INVALID_FORMAT without a VIES call (free). Turn on to ask VIES as well (charged like any check).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel VIES requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "VIES limits concurrent requests per member state. 4 is fast and polite; lower it if you see many busy errors.",
            "default": 4
          },
          "maxRetries": {
            "title": "Retries on VIES busy / unavailable",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries with exponential backoff on MS_MAX_CONCURRENT_REQ, MS_UNAVAILABLE, TIMEOUT etc. Rows that still fail are saved with status ERROR and not charged.",
            "default": 4
          },
          "maxItems": {
            "title": "Max numbers",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many input values (0 = no limit).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}