List every registered document of purpose, across all countries, in locale.
purpose
locale
Useful for global filters such as "show me every tax ID we support".
Filter, e.g. "tax", "personal".
"tax"
"personal"
Display locale (default "en").
"en"
Read-only array of DocumentInfo matching purpose.
DocumentInfo
import { listDocumentsByPurpose } from "nationid/catalog";const taxIds = listDocumentsByPurpose("tax", "en");// [{ code: "BR_CNPJ", … }, { code: "MX_RFC_PM", … }, …] Copy
import { listDocumentsByPurpose } from "nationid/catalog";const taxIds = listDocumentsByPurpose("tax", "en");// [{ code: "BR_CNPJ", … }, { code: "MX_RFC_PM", … }, …]
List every registered document of
purpose, across all countries, inlocale.Useful for global filters such as "show me every tax ID we support".