Peru

Validate tax registration numbers as per Peru's validation rule. All businesses in Peru are assigned a 11 -digit global unique identifier called Peru PE VAT.

Ensure that the following details are correct for Peru AT VAT:

  • Validation Type: ORA_PE_RUC

  • Description: Peru RUC Validation for Company, Regular Person, and Foreigner

  • Number of digits: 11

  • Format: Only numeric characters are allowed

    • The first 2 digits of the 11-digit RUC determines the type of entity

    • First 2 digits is "10", the entity is a regular person

    • First 2 digits is "20", it entity is a company

    • First 2 digit is "16", it used to be a valid number, but no longer used

    • First 2 digit is "17", it's either an old RUC from 1993-2000 OR the entity is a foreigner/others

    • The next 8 are considered theDocumento Nacional de Identidad "DNI" (identity number)

  • Check digits: Yes, 11th digit (last digit)

  • Check Digit Validation: The RUC is validated using the "Module 11" rule.

    1. Each number of the RUC is multiplied starting from left to right with 5, 4, 3, 2, 7, 6, 5, 4, 3, 2.

    2. Then sum all the results.

    3. The result has to be divided by 11 (the name of the Module)

    4. After the division, the remaining is subtracted by 11 (11- remaining of the division)

      • If the result is over 0 and less than 10, that's the verifying number we are looking for

      • If the result is 0 or 10, the verifying digit is 1

  • Default Validation: ORA_PE_RUC

Example:

Good:

  • 20503644968

Bad:

  • ARF%34567(Invalid format - only numbers are allowed)

  • 20503644961 (Invalid check digit)