# taxid.validate

Validate batches of up to 100 tax IDs, IBANs and company numbers locally for format and available checksums. Bills supported entries and returns official lookup links. Format-only results require review.

- REST: `POST https://api.kanagu.dev/v1/taxid/validate`
- MCP: `call_operation` with `operation: "taxid.validate"` at https://api.kanagu.dev/mcp
- Price: $0.002 USD per identifier, on successful calls only.
- Auth: `Authorization: Bearer <key>` for REST and `call_operation`. Retries: reuse `Idempotency-Key` (MCP: `idempotencyKey`).

## Compliance coverage

- Domain: International
- Jurisdictions: AD, AE, AL, AT, AU, AZ, BA, BE, BG, BH, BI, BR, BY, CA, CH, CR, CY, CZ, DE, DJ, DK, DO, EE, EG, ES, FI, FK, FO, FR, GB, GE, GI, GL, GR, GT, HN, HR, HU, IE, IL, IN, IQ, IS, IT, JO, JP, KW, KZ, LB, LC, LI, LT, LU, LV, LY, MC, MD, ME, MK, MN, MR, MT, MU, MX, NI, NL, NO, NZ, OM, PK, PL, PS, PT, QA, RO, RS, RU, SA, SC, SD, SE, SG, SI, SK, SM, SO, ST, SV, TL, TN, TR, UA, US, VA, VG, YE
- Standard: SWIFT IBAN Registry Release 103 (2026-09-17) — https://www.swift.com/swift-resource/9606/download
- Standard: ISO 13616-1 2020 (2020-09-29) — https://www.iso.org/standard/81090.html
- Standard: ISO/IEC 7064 2003 (2003-03-07) — https://www.iso.org/standard/31531.html
- Standard: Statistics Estonia Intrastat manual, section 3.4.5 2025 — https://www.stat.ee/sites/default/files/2024-12/kasiraamat_en_2025.pdf
- Standard: Skatteverket VAT number formats and country notes Unversioned — https://www.skatteverket.se/skatter/mervardesskattmoms/momsregistreringsnummer.4.18e1b10334ebe8bc80002649.html
- Standard: SPF Finances Biztax manual, company number Unversioned — https://finances.belgium.be/sites/default/files/downloads/manuel-biztax.pdf
- Standard: HMRC Enquiry Manual EM3058 EM3058 (manual revision) (2026-11-18) — https://www.gov.uk/hmrc-internal-manuals/enquiry-manual/em3058
- Standard: Companies House URI Customer Guide, Company Number v1.1 (May 2012) — https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/426891/uniformResourceIdentifiersCustomerGuide.pdf
- Standard: FCA Mutuals Public Register registration number glossary Unversioned — https://mutuals.fca.org.uk/home/glossary
- Standard: IRS Instructions for Form SS-4 Rev. December 2025 — https://www.irs.gov/instructions/iss4
- Standard: IRS Valid EINs prefix table 2026-11-04 revision (2026-11-04) — https://www.irs.gov/businesses/small-businesses-self-employed/valid-eins
- Standard: CRA Business number and program accounts Unversioned — https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/business-registration/business-number-program-account.html
- Standard: Service Canada Report on Hirings user guide, Business Number validation Unversioned — https://www.canada.ca/en/employment-social-development/programs/ei/ei-list/reports/hiring-guide-form.html
- Standard: CRA Confirming a GST/HST account number Unversioned — https://www.canada.ca/en/revenue-agency/services/e-services/digital-services-businesses/confirming-a-gst-hst-account-number.html
- Standard: CRA RC4022 General Information for GST/HST Registrants RC4022 — https://www.canada.ca/en/revenue-agency/services/forms-publications/publications/rc4022/general-information-gst-hst-registrants.html
- Standard: ATO Standard GST registration Unversioned — https://www.ato.gov.au/businesses-and-organisations/international-tax-for-business/gst-for-non-resident-businesses/gst-registration-for-non-resident-businesses/standard-gst-registration
- Standard: Australian Business Register ABN format 9.9.7 — https://abr.business.gov.au/Help/AbnFormat
- Standard: ASIC Datastream Messages Specification, Appendix B 2.71 (2017-03-07) — https://web.archive.org/web/20241222140838/https://download.asic.gov.au/media/4287740/messspec.pdf
- Standard: Inland Revenue Payday Filing File Upload Specification, section 5.8 2026–2027 (2026-04-01) — https://www.ird.govt.nz/-/media/project/ir/home/documents/digital-service-providers/iir-file-upload-specification/payday-filing-file-upload-specification-2026-2027.pdf?modified=20260331214037
- Standard: StudyLink Student Allowance application, question 7 Unversioned — https://www.studylink.govt.nz/documents/forms/student-allowance-application.pdf
- Standard: Inland Revenue Register for GST Unversioned — https://www.ird.govt.nz/gst/registering-for-gst/register-for-gst
- Standard: Federal Statistical Office UIDV commentary, articles 5 and 8 January 2011 — https://dam-api.bfs.admin.ch/hub/api/dam/assets/241934/master
- Standard: Brønnøysund Register Centre organisation number specification 2023 revision (2023-12-13) — https://www.brreg.no/om-oss/registrene-vare/om-enhetsregisteret/organisasjonsnummeret/
- Standard: Tesouro Nacional Protocolo de Arrecadação da GRU, section IV(a) Section IV(a) — https://cdn.tesouro.gov.br/sistemas-internos/apex/producao/sistemas/thot/arquivos/publicacoes/31906_1049829/Protocolo_arrecadacao_GRU.pdf?v=3983
- Standard: Receita Federal Cálculo do DV do CNPJ Alfanumérico Alphanumeric CNPJ (July 2026 rollout) — https://www.gov.br/receitafederal/pt-br/centrais-de-conteudo/publicacoes/documentos-tecnicos/cnpj/manual-dv-cnpj.pdf
- Standard: SAT Anexo 20, CFDI 4.0, t_RFC CFDI 4.0 (2022-01-01) — https://wwwmat.sat.gob.mx/consultas/35025/formato-de-factura-electronica-%28anexo-20%29
- Standard: CBIC GST Registration Rules, section 3(1) Section 3(1) — https://cbic-gst.gov.in/gst-registration-rules.html
- Standard: Income Tax Department Permanent Account Number format and holder codes Unversioned — https://wmstatic-prd.incometaxindia.gov.in/documents/d/guest/1-permanent-account-number-pan-pdf
- Standard: python-stdnum GSTIN checksum reference 2.1 (2025-05-17) — https://arthurdejong.org/python-stdnum/doc/2.1/stdnum.in_.gstin
- Standard: National Tax Agency Corporate Number check digit Corporate Number calculation — https://www.houjin-bangou.nta.go.jp/documents/checkdigit.pdf
- Standard: IRAS Partnership Allocation Template FAQ, A2a Technical FAQ — https://www.iras.gov.sg/docs/default-source/uploadedfiles/pdf/partnership-allocation-template-technical-faq.pdf
- Standard: IRAS Check GST Register API Services Interface Specification Check GST Register — https://apisandbox.iras.gov.sg/iras/devportal/sb/system/files/2025-02/IRAS%20Check%20GST%20Register%20API%20Services%20Interface%20Specification.pdf
- Verification: Check national formats against published tax authority references and SWIFT Release 103, and evaluate available checksums locally.
- Last reviewed: 2026-11-26

## Request body

- `identifiers` (array of object, required)
- `identifiers[].country` (string, required): ISO 3166-1 alpha-2 country code. For IBAN, use its SWIFT registry prefix. Use XI for Northern Ireland VAT.
- `identifiers[].type` ("vat" | "iban" | "company-number" | "ein" | "bn" | "gst" | … (17 values), required)
- `identifiers[].value` (string (max 128 chars), required)

## Response

- `results` (array of object, required)
- `results[].row` (integer (≤ 9007199254740991), required): One-based position in identifiers.
- `results[].country` (string, required)
- `results[].type` ("vat" | "iban" | "company-number" | "ein" | "bn" | "gst" | … (17 values), required)
- `results[].normalized` (string, required)
- `results[].status` ("valid" | "invalid" | "needs_review", required): Outcome of offline checks.
- `results[].format` ("valid" | "invalid" | "unsupported", required)
- `results[].checksum` ("valid" | "invalid" | "unavailable" | "not_checked", required)
- `results[].sources` (array of object, required)
- `results[].sources[].name` (string, required)
- `results[].sources[].version` (string, required)
- `results[].sources[].date` (string (date) | null, required)
- `results[].sources[].retrievedAt` (string (date), required)
- `results[].sources[].url` (string (uri), required)
- `results[].registry` (object | null, required): Official lookup service or format registry. Confirm IBAN account details with the beneficiary's bank.
- `results[].findings` (array of object, required)
- `results[].findings[].rule` (string, required)
- `results[].findings[].expected` (string, required)
- `results[].findings[].actual` (string, required)
- `results[].findings[].sources` (array of object, required)
- `results[].findings[].sources[].name` (string, required)
- `results[].findings[].sources[].version` (string, required)
- `results[].findings[].sources[].date` (string (date) | null, required)
- `results[].findings[].sources[].retrievedAt` (string (date), required)
- `results[].findings[].sources[].url` (string (uri), required)
- `registryChecks` ("not_performed", required)

## Example

```sh
curl https://api.kanagu.dev/v1/taxid/validate \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"identifiers":[{"country":"DE","type":"iban","value":"DE89 3704 0044 0532 0130 00"},{"country":"AU","type":"abn","value":"51 824 753 556"},{"country":"JP","type":"corporate-number","value":"8700110005901"}]}'
```

```ts
const res = await fetch("https://api.kanagu.dev/v1/taxid/validate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "identifiers": [
      {
        "country": "DE",
        "type": "iban",
        "value": "DE89 3704 0044 0532 0130 00"
      },
      {
        "country": "AU",
        "type": "abn",
        "value": "51 824 753 556"
      },
      {
        "country": "JP",
        "type": "corporate-number",
        "value": "8700110005901"
      }
    ]
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
```

## Errors

JSON `{"error":{"code","message"}}`.

- 400 `invalid_input`: The body does not match the request schema. The message names each field.
- 400 `invalid_json`: The body is missing or is not valid JSON.
- 400 `invalid_idempotency_key`: Idempotency-Key must be 1–128 visible ASCII characters.
- 401 `invalid_api_key`: The Bearer key is missing, malformed, invalid or inactive.
- 402 `free_allowance_exhausted`: This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.
- 404 `not_found`: No operation at this path.
- 409 `idempotency_conflict`: The Idempotency-Key was already used with a different body.
- 413 `payload_too_large`: JSON bodies may be at most 64 KiB.
- 500 `internal_error`: The call failed on our side. It is not billed; retry with the same Idempotency-Key.

## JSON Schema

Request:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "identifiers": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "pattern": "^[A-Za-z]{2}$",
            "description": "ISO 3166-1 alpha-2 country code. For IBAN, use its SWIFT registry prefix. Use XI for Northern Ireland VAT."
          },
          "type": {
            "type": "string",
            "enum": [
              "vat",
              "iban",
              "company-number",
              "ein",
              "bn",
              "gst",
              "abn",
              "acn",
              "ird",
              "uid",
              "org-number",
              "cpf",
              "cnpj",
              "rfc",
              "gstin",
              "corporate-number",
              "uen"
            ]
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "country",
          "type",
          "value"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "identifiers"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "identifiers": [
        {
          "country": "DE",
          "type": "iban",
          "value": "DE89 3704 0044 0532 0130 00"
        },
        {
          "country": "AU",
          "type": "abn",
          "value": "51 824 753 556"
        },
        {
          "country": "JP",
          "type": "corporate-number",
          "value": "8700110005901"
        }
      ]
    }
  ]
}
```

Response:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "One-based position in identifiers."
          },
          "country": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "vat",
              "iban",
              "company-number",
              "ein",
              "bn",
              "gst",
              "abn",
              "acn",
              "ird",
              "uid",
              "org-number",
              "cpf",
              "cnpj",
              "rfc",
              "gstin",
              "corporate-number",
              "uen"
            ]
          },
          "normalized": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "valid",
              "invalid",
              "needs_review"
            ],
            "description": "Outcome of offline checks."
          },
          "format": {
            "type": "string",
            "enum": [
              "valid",
              "invalid",
              "unsupported"
            ]
          },
          "checksum": {
            "type": "string",
            "enum": [
              "valid",
              "invalid",
              "unavailable",
              "not_checked"
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "version": {
                  "type": "string"
                },
                "date": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "retrievedAt": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "name",
                "version",
                "date",
                "retrievedAt",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "registry": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": [
                  "name",
                  "url"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Official lookup service or format registry. Confirm IBAN account details with the beneficiary's bank."
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rule": {
                  "type": "string"
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": "string"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      },
                      "date": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "retrievedAt": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "required": [
                      "name",
                      "version",
                      "date",
                      "retrievedAt",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "rule",
                "expected",
                "actual",
                "sources"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "row",
          "country",
          "type",
          "normalized",
          "status",
          "format",
          "checksum",
          "sources",
          "registry",
          "findings"
        ],
        "additionalProperties": false
      }
    },
    "registryChecks": {
      "type": "string",
      "const": "not_performed"
    }
  },
  "required": [
    "results",
    "registryChecks"
  ],
  "additionalProperties": false
}
```
