nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a German (DE) identity or tax document.

      Parameters

      • code: "DE_STEUER_ID" | "DE_STEUERNUMMER" | "DE_USTID" | ShortCode

        Document type, either fully-qualified (DE_STEUER_ID, DE_STEUERNUMMER, DE_USTID) or short (STEUER_ID, IDNR, STEUERNUMMER, USTID, UST_ID, VAT).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes DE-specific validation rules.

      import { validate } from "nationid/de";
      validate("DE_STEUER_ID", "65 929 970 489"); // true
      validate("USTID", "DE123456788");