idnumbers
    Preparing search index...

    The Tax Identity Number of Greece. This page is generated from the registry metadata of the library.

    Property Value
    Country code GRC, GR
    ID type Tax Identity Number
    Official name ΑΦΜ (Αριθμός Φορολογικού Μητρώου)
    Also known as Tax Identity Number; AFM; ΑΦΜ; Αριθμός Φορολογικού Μητρώου
    Display format #########
    Input masks #########
    Length 9
    Example 094014250
    Checksum yes
    Checksum algorithm Weighted sum mod 11 (powers of two: 256..2)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('GRC', '094014250').isValid; // true

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

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

    register(country);
    validateNationalId('GRC', '094014250').isValid; // true