idnumbers
    Preparing search index...

    The Documento Personal de Identificación (DPI) of Guatemala. This page is generated from the registry metadata of the library.

    Property Value
    Country code GTM, GT
    ID type Documento Personal de Identificación (DPI)
    Official name Documento Personal de Identificación (DPI)
    Also known as DPI; CUI; Documento Personal de Identificación; Código Único de Identificación
    Display format NNNN NNNNN NNNN
    Input masks #### ##### ####
    Length 13
    Example 1912345670101
    Checksum yes
    Checksum algorithm Mod-11 weighted sum (weights 2..9) over the 8-digit correlative; plain remainder, not an 11-minus-remainder complement
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('GTM', '1912345670101').isValid; // true

    To bundle only this country, import its definition from idnumbers/countries/gtm and pass it to register():

    import { register, validateNationalId } from 'idnumbers/core';
    import { country } from 'idnumbers/countries/gtm';

    register(country);
    validateNationalId('GTM', '1912345670101').isValid; // true