nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Belgian (BE) identity or VAT document.

      Parameters

      • code: "BE_NRN" | "BE_BTW" | ShortCode

        Document type, either fully-qualified (BE_NRN, BE_BTW) or short (NRN, RRN, BTW, TVA, VAT).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes BE-specific validation rules.

      import { validate } from "nationid/be";
      validate("BE_NRN", "93.05.18-223.61"); // true
      validate("VAT", "BE 0123.456.749");