Mexico

Here are the details to validate tax registration numbers as per Mexico's validation rules:

Country Code: MX

REPORTING_TYPE_CODE/ Validation Type

REPORTING_TYPE_NAME

No of Digits

Format

Check Digit

Check Digit Validation

Default Validation

Example TRN No

ORA_MX_RFC:COMPANY

Mexico RFC Validation for Companies

12

Only letters and numbers are allowed. No special characters.

  • Segment 1: Three letters for a short company name. These letters are assigned by SAT at company creation time.

  • Segment 2: Six numbers for company creation date; yymmdd.

  • Segment 3: Last three digits called "Homoclave"; it could contain letters and numbers. This segment provides uniqueness to Tax Registration Number.

No

No

Good:

  • OME910101TA3

Bad:

  • AR12%$34567 - Invalid format, only letters and numbers are allowed

  • OME910231TA3 -Invalid format -date yymmdd format is invalid

ORA_MX_RFC:INDIVIDUAL

Mexico RFC Validation for Professional Individuals

13

Only letters and numbers are allowed. No special characters.

  • Segment 1: Four letters for Name and last names: First two letters of last name, first letter of second last name and first letter of name.

  • Segment 2: Six numbers for date of birth, yymmdd.

  • Segment 3: Last three digits called "Homoclave"; it could contain letters and numbers. Like in the case of companies, this segment provides uniqueness to Tax Registration Number.

No

No

Good:

  • BOSF740624T74

Bad:

  • AR45%$34567 - Invalid format, only letters and numbers are allowed

  • BOSF740631T74 -Invalid format -date yymmdd format is invalid

ORA_MX_RFC:SAT

Mexico RFC Validation for SAT

20 or less

No Restriction on the characters

No

No

Good:

  • 34DF1234567#4

ORA_MX_RFC:CURP

Mexico RFC Validation for CURP

18

Only letters and numbers are allowed. No special characters.

  • Segment 1: Four letters for Name and last names: First two letters of last name, first letter of second last name and first letter of name.

  • Segment 2: Six numbers for date of birth, yymmdd.

  • Segment 3: One letter to specify gender; H = Male, M = Female.

  • Segment 4: Two letters for the Geographical State of birth inside Mexico.

  • Segment 5: One letter, first internal consonant from the first of the two last names.

  • Segment 6: One letter, first internal consonant from the second of the two last names.

  • Segment 7: One letter, first internal consonant from the first name.

  • Segment 8: One digit, 0-9 for dates of birth up to the year 1999, and A-Z for dates of birth from the year 2000 forward.

  • Segment 9: One digit to avoid duplicates.

No

No

Good:

  • BOSF740824HJCNVB09

Bad:

  • A#$5df%$34567 - Invalid format, only numbers are allowed

  • BOSF740630AJCNVB09 -Invalid format, 11th digit has to be H or M

ORA_MX_RFC:FOREIGN

Foreign Business Unit Entity for Mexico with Foreign Origin

20 or less

No Restriction on the characters

No

No

Good:

  • 3GRDF1234567#4