nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Paraguayan (PY) identity or tax document.

      Parameters

      • code: "PY_CI" | "PY_RUC" | "PY_PASAPORTE" | ShortCode

        Document type, either fully-qualified (PY_CI, PY_RUC) or short (CI, RUC, PASAPORTE).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes PY-specific validation rules.

      import { validate } from "nationid/py";
      validate("PY_CI", "1234567");
      validate("RUC", "80012345-6");