Validate a Portuguese (PT) identity or tax document.
Document type, either fully-qualified (PT_NIF, PT_CC) or short (NIF, NIPC, CC, PASAPORTE).
PT_NIF
PT_CC
NIF
NIPC
CC
PASAPORTE
Raw document string (formatting tolerated).
true if the value passes PT-specific validation rules.
true
import { validate } from "nationid/pt";validate("PT_NIF", "123456789");validate("CC", "12345678 9 ZZ4"); Copy
import { validate } from "nationid/pt";validate("PT_NIF", "123456789");validate("CC", "12345678 9 ZZ4");
Validate a Portuguese (PT) identity or tax document.