{
  "openapi": "3.0.1",
  "info": {
    "title": "ID & Tax Number Validator — IBAN, VAT, 85+ countries",
    "description": "Validate and format IBANs, VAT numbers, company IDs, tax IDs and national IDs from 85+ countries offline: check digits, length and structure, with a clear reason when invalid.",
    "version": "1.0",
    "x-build-id": "BTBrZsZxSSRt7MCed"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/msserendipity~id-tax-number-validator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-msserendipity-id-tax-number-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/msserendipity~id-tax-number-validator/runs": {
      "post": {
        "operationId": "runs-sync-msserendipity-id-tax-number-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/msserendipity~id-tax-number-validator/run-sync": {
      "post": {
        "operationId": "run-sync-msserendipity-id-tax-number-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",
        "required": [
          "numbers"
        ],
        "properties": {
          "numbers": {
            "title": "Numbers",
            "type": "array",
            "description": "Numbers to check. Strings use the default type/country below, or objects like {\"number\": \"FR40303265045\", \"type\": \"eu.vat\"} or {\"number\": \"390.533.447-05\", \"country\": \"BR\"}."
          },
          "type": {
            "title": "Default number type",
            "enum": [
              "auto",
              "bic",
              "bitcoin",
              "casrn",
              "cfi",
              "cusip",
              "ean",
              "eu.at_02",
              "eu.banknote",
              "eu.ecnumber",
              "eu.eic",
              "eu.excise",
              "eu.nace",
              "eu.oss",
              "eu.vat",
              "figi",
              "grid",
              "gs1_128",
              "iban",
              "imei",
              "imo",
              "imsi",
              "isan",
              "isbn",
              "isil",
              "isin",
              "ismn",
              "isni",
              "iso11649",
              "iso6346",
              "iso9362",
              "isrc",
              "issn",
              "lei",
              "mac",
              "meid",
              "vatin",
              "ad.nrt",
              "al.nipt",
              "ar.cbu",
              "ar.cuit",
              "ar.dni",
              "at.businessid",
              "at.postleitzahl",
              "at.tin",
              "at.uid",
              "at.vnr",
              "au.abn",
              "au.acn",
              "au.tfn",
              "az.voen",
              "be.bis",
              "be.eid",
              "be.iban",
              "be.nn",
              "be.ogm_vcs",
              "be.ssn",
              "be.vat",
              "bg.egn",
              "bg.pnf",
              "bg.vat",
              "br.cnpj",
              "br.cpf",
              "by.unp",
              "ca.bc_phn",
              "ca.bn",
              "ca.sin",
              "ch.esr",
              "ch.ssn",
              "ch.uid",
              "ch.vat",
              "cl.rut",
              "cn.ric",
              "cn.uscc",
              "co.nit",
              "cr.cpf",
              "cr.cpj",
              "cr.cr",
              "cu.ni",
              "cy.vat",
              "cz.bankaccount",
              "cz.dic",
              "cz.rc",
              "de.handelsregisternummer",
              "de.idnr",
              "de.leitweg",
              "de.stnr",
              "de.vat",
              "de.wkn",
              "dk.cpr",
              "dk.cvr",
              "do.cedula",
              "do.ncf",
              "do.rnc",
              "dz.nif",
              "ec.ci",
              "ec.ruc",
              "ee.ik",
              "ee.kmkr",
              "ee.registrikood",
              "eg.tn",
              "es.cae",
              "es.ccc",
              "es.cif",
              "es.cups",
              "es.dni",
              "es.iban",
              "es.nie",
              "es.nif",
              "es.postal_code",
              "es.referenciacatastral",
              "fi.alv",
              "fi.associationid",
              "fi.hetu",
              "fi.veronumero",
              "fi.ytunnus",
              "fo.vn",
              "fr.accise",
              "fr.nif",
              "fr.nir",
              "fr.rcs",
              "fr.siren",
              "fr.siret",
              "fr.tva",
              "gb.nhs",
              "gb.sedol",
              "gb.upn",
              "gb.utr",
              "gb.vat",
              "gh.tin",
              "gn.nifp",
              "gr.amka",
              "gr.vat",
              "gt.nit",
              "hr.oib",
              "hu.anum",
              "id.nik",
              "id.npwp",
              "ie.pps",
              "ie.vat",
              "il.hp",
              "il.idnr",
              "in.aadhaar",
              "in.epic",
              "in.gstin",
              "in.pan",
              "in.vid",
              "is.kennitala",
              "is.vsk",
              "it.aic",
              "it.codicefiscale",
              "it.iva",
              "jp.cn",
              "jp.in",
              "ke.pin",
              "kr.brn",
              "kr.rrn",
              "li.peid",
              "lt.asmens",
              "lt.pvm",
              "lu.tva",
              "lv.pvn",
              "ma.ice",
              "mc.tva",
              "md.idno",
              "me.iban",
              "me.pib",
              "mk.edb",
              "mt.vat",
              "mu.nid",
              "mx.curp",
              "mx.rfc",
              "my.nric",
              "mz.nuit",
              "nl.brin",
              "nl.bsn",
              "nl.btw",
              "nl.identiteitskaartnummer",
              "nl.onderwijsnummer",
              "nl.postcode",
              "no.fodselsnummer",
              "no.iban",
              "no.kontonr",
              "no.mva",
              "no.orgnr",
              "nz.bankaccount",
              "nz.ird",
              "pe.cui",
              "pe.ruc",
              "pk.cnic",
              "pl.nip",
              "pl.pesel",
              "pl.regon",
              "pt.cc",
              "pt.nif",
              "py.ruc",
              "ro.cf",
              "ro.cnp",
              "ro.cui",
              "ro.onrc",
              "rs.pib",
              "ru.inn",
              "ru.ogrn",
              "se.orgnr",
              "se.personnummer",
              "se.postnummer",
              "se.vat",
              "sg.uen",
              "si.ddv",
              "si.emso",
              "si.maticna",
              "sk.dph",
              "sk.rc",
              "sm.coe",
              "sn.ninea",
              "sv.nit",
              "th.moa",
              "th.pin",
              "th.tin",
              "tn.mf",
              "tr.tckimlik",
              "tr.vkn",
              "tw.ubn",
              "ua.edrpou",
              "ua.rntrc",
              "us.atin",
              "us.ein",
              "us.itin",
              "us.ptin",
              "us.rtn",
              "us.ssn",
              "us.tin",
              "uy.rut",
              "ve.rif",
              "vn.mst",
              "za.idnr",
              "za.tin"
            ],
            "type": "string",
            "description": "What kind of number to check, e.g. IBAN, EU VAT, a country's tax or company ID. Choose 'Auto (by country)' to try every format of the country below.",
            "default": "iban"
          },
          "country": {
            "title": "Default country (for Auto)",
            "type": "string",
            "description": "Two-letter country code (e.g. FR, MA, BR, IN) used when the type is 'Auto'."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}