Skip to content

Mexico Address Standard

Overview

A Mexican address carries two things a generic address model has no obvious place for: the neighbourhood, the colonia, and a second number, the número interior, that identifies the unit behind the street number. Both are part of the postal address. The state is written as a postal abbreviation, such as NL or CDMX, and that abbreviation is neither the ISO code nor, in most cases, the key an SAP system uses.

This article describes the Mexican address format, how CDQ represents it in the CDQ address model, how the state is resolved and the interior number delivered, and which reference data CDQ maintains for Mexico. It is the reference for anyone mapping Mexican business partner data into CDQ, or consuming curated Mexican addresses from CDQ.

In this article, you will understand:

  • How a Mexican address is structured, and which of its parts the post office actually uses
  • Why the colonia and the número interior belong in the address, and where each goes
  • How each Mexican level maps to a concept in the CDQ address model, and which SAP field it reaches
  • Which state abbreviations CDQ resolves today, and which it does not yet
  • Which reference data CDQ maintains for Mexico, and what the published values look like
  • Where the current CDQ coverage for Mexico is incomplete

Available in:


How a Mexican address is built

A Mexican address has a familiar shape: a street and a number, a post code, a city and a state. What is specific to Mexico is where integrations go wrong:

Specific to MexicoWhy it matters
The colonia is part of the postal addressit has its own line on the envelope, a post code can cover several colonias, and a model with no place for it either drops it or pushes it into the street or the city
A building has an exterior and an interior numberReforma 222, Int. 1204 holds two numbers, and the interior one arrives inside the street or the house number, where it corrupts every comparison on that field
The state is written as a postal abbreviationNL, CDMX and Q. ROO are the post office's abbreviations, while the ISO codes are MX-NLE, MX-CMX and MX-ROO, so the abbreviation cannot be turned into the code by adding a prefix
Mexico City changed its name and its status in 2016data entered earlier says Distrito Federal or DF, its sixteen delegaciones are alcaldías since 2018, and the ISO code changed from MX-DIF to MX-CMX
México names three different thingsthe country, the State of Mexico that surrounds the capital, and, in everyday use, the capital itself
The post code has five digits and can start with a zeroevery post code in Mexico City starts with 0 or 1, and a spreadsheet that stores it as a number turns 06600 into 6600

The administrative levels

Mexico has two administrative levels below the country that appear on an address, and one sub-municipal level that the post office relies on.

LevelSpanishWhat it isUsed to address mailExample
1estado, entidad federativa31 states and Mexico Cityyes, as the postal abbreviationCDMX
2municipio, alcaldía in Mexico Citymunicipality, nearly 2,500 of them, and the 16 alcaldías of the capitalsometimes, as its own line or together with the cityCuauhtémoc
localityciudad, localidadthe city, town or villageyesCiudad de México
sub-municipalcolonianeighbourhood inside a municipality, also fraccionamiento, barrio or unidad habitacionalyesJuárez
postalcódigo postal (C.P.)the post code, issued for one colonia or a group of themyes06600

The municipality and the city are two different things in Mexico. A municipality can hold several towns, and a city can spread over several municipalities: Monterrey's metropolitan area covers San Pedro Garza García, Guadalupe and others, each a municipality of its own. The city on the address is where the colonia lies, not the seat of the municipality.

The postal address

Empresa Ejemplo S.A. de C.V.
Av. Paseo de la Reforma 222, Piso 12, Int. 1204
Col. Juárez
06600 CIUDAD DE MÉXICO, CDMX

The street type and name come first, then the número exterior, then the floor and the número interior. The colonia has its own line, usually written with Col. in front. The last line holds the post code, the locality and the state abbreviation. The alcaldía or municipality, here Cuauhtémoc, is often added on a line of its own or after the colonia.

The interior

Everything after the exterior number identifies the unit inside the building. It is free text with a common vocabulary:

WrittenSpanishMeans
Int. 1204, Interior 1204número interiorthe unit number behind the street number
Piso 12pisothe floor
Depto. 3, Dpto. 3departamentoa flat
Desp. 1204despachoan office
Local 5locala shop or commercial unit
Edif. B, Torre Bedificio, torreone building of several on the same plot

So Av. Paseo de la Reforma 222, Piso 12, Int. 1204 reads: number 222 on Paseo de la Reforma, twelfth floor, unit 1204.

Some forms are easy to misread:

WrittenWhat it isWhat to watch
S/Nsin número, no exterior numberA deliberate statement that there is no number. It is not a missing value and not a number
Mz. 3 Lt. 12, Super Manzana 3manzana and lote, block and plotUsed in planned towns such as Cancún and in many housing developments. The block and the plot locate a building where there is no street number
Calle 60 No. 491 x 55 y 57a numbered street with its two cross streets, in Mérida60 is the street name, 491 the number, and x 55 y 57 the cross streets. None of the other numbers is a house number
entre Calle A y Calle Bthe cross streetsA delivery hint, not part of the street name
Carretera Federal 57 Km 12.5a property on a highwayThe kilometre mark stands in for the exterior number, and 57 is the road
Parque Industrial ...an industrial parkWritten where the colonia would be, and treated as the colonia by the post office
The interior is not part of the street name

Piso 12, Int. 1204 describes where inside the building the partner sits. Left in the street field, it turns Paseo de la Reforma into Paseo de la Reforma 222 Piso 12 Int. 1204, which matches nothing, and two tenants of the same tower become two different streets. The floor and the interior number belong in premises fields.

The post code

The código postal has five digits. The first two identify the state, or the capital: Mexico City's post codes run from 01000 to 16999. The third identifies a municipality or a zone, and the last two the colonia or group of colonias.

FormExampleStatus
Five digits06600the written form
With the prefixC.P. 06600common on letterheads, the same post code
Four digits6600the leading zero lost in a spreadsheet, the same post code

The post code matters beyond delivery: on an electronic invoice, a CFDI 4.0, the post code of the customer's tax address is mandatory and must match the one the tax authority holds.

Properties that regularly cause integration errors

The colonia has no obvious field. Systems built on a street, city and post code shape put the colonia in the second street line, in the city, or nowhere. A colonia in the city field makes the city unmatched against any list of municipalities.

The interior number shares a field with the exterior number. 222-1204, 222 Int. 1204 and 222 int 1204 all arrive in the house number field of source systems that have only one. Split out, the exterior number identifies the building and the interior number the unit.

The state arrives as an abbreviation, a name, or both. NL, N.L., Nuevo León and Nuevo Leon all mean the same state. Several abbreviations exist side by side: the post office writes Q. ROO, others QR or QROO.

Mexico City arrives under its old names. Distrito Federal, D.F., México, D.F. and delegación Cuauhtémoc are still common in master data entered before 2016.

Numbers in street names are common. Av. 5 de Mayo, Calle 16 de Septiembre, and the numbered streets of Mérida and other cities. A parser that takes the first number it sees as the house number will take the date or the street.

México on its own is ambiguous

México can be the country, the State of Mexico (MX-MEX) or Mexico City (MX-CMX), and a company in Naucalpan, in the State of Mexico, is a short drive from one in Mexico City. Supply the state as its own value, and for the capital use Ciudad de México or CDMX rather than México.


How CDQ models a Mexican address

The CDQ address model has two parallel hierarchies. Administrative areas represent the political containers, typed REGION and COUNTY. Localities represent the places themselves, typed CITY, DISTRICT, QUARTER or BLOCK. Streets are held as thoroughfares with the number in its own field, and the position inside the building as typed premises.

Mexico maps as follows:

Mexican levelCDQ conceptTypeSAP field
estadoadministrative area, level 1REGIONregion
municipio, alcaldíaadministrative area, level 2COUNTYcounty
ciudad, localidadlocality, level 1CITYcity
colonialocality, level 2DISTRICTdistrict
parque industrialthoroughfareINDUSTRIAL_ZONEappended to district
street type and namethoroughfareSTREETstreet
número exterior, or the kilometre markthoroughfare numbern/ahouse number, HOUSE_NUM1
piso, the floorpremiseLEVELfloor
número interiorpremiseDOORhouse number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER, when no room is present
despacho, localpremiseROOMhouse number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER
departamentopremiseAPARTMENThouse number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER, when no room or door is present
edificio, torrepremiseBUILDINGbuilding
Apartado Postalpostal delivery pointPOST_OFFICE_BOXPO box
código postalpost codeREGULARpost code

What reaches each SAP field

SAP reserves a second house number field, HOUSE_NUM2, for the Iberian and Latin American supplement to the house number. Mexico is one of the five countries for which CDQ fills it, and in Mexico it is where the número interior belongs. What goes there is the unit: the interior number, the office or shop, or the flat. The floor goes to the dedicated floor field, and the edificio or torre to the building field.

The delivery to SAP is a fixed selection from the typed premises of the address:

SAP fieldTakesSeveral present
HOUSE_NUM1the thoroughfare numbern/a
HOUSE_NUM2room, door and apartment, for Mexico, Spain, Portugal, Brazil and Argentina onlyall of them, joined with a comma and a space, in the order room, door, apartment
FLOORthe level premisethe first
ROOM_NUMBERroom, else door, else apartmentthe first one present, in that order
BUILDINGbuilding, else factory, else warehousethe first

So 222, Piso 12, Int. 1204 is delivered as:

Output fieldValue
house number, HOUSE_NUM1222
floor12
house number supplement, HOUSE_NUM21204
room number, ROOM_NUMBER1204, a repeat of the supplement, see below

A unit is delivered twice: it reaches HOUSE_NUM2 and, because ROOM_NUMBER takes the first of room, door and apartment, ROOM_NUMBER as well. A customer reviewing an SAP load for duplicated content will see the unit in both fields for Mexico, and should read HOUSE_NUM2 as the authoritative one.

The municipality, when the address carries it, goes to the county field and not to the city. In Mexico City the alcaldía is the municipality-level unit, so Cuauhtémoc is the county and Ciudad de México the city.

Why not keep the interior number in the house number

222 Int. 1204 answers two different questions in one field: which building on the street, and which unit inside it. Splitting them is what makes either question answerable on its own. An exact comparison on street and number stops recognising that two tenants of Paseo de la Reforma 222 share a building, which is what site consolidation and hierarchy detection look for.

Rejected alternatives

Rejected alternativeWhy
Put the colonia in the second street lineIt is where many systems put it, and it hides an area inside a street field, where it can no longer be compared with other addresses in the same colonia. SAP has a district field, and it takes the colonia.
Put the municipality in the city fieldA city is not always its municipality, and in Mexico City the alcaldía is not the city at all. SAP has a county field, and it takes the municipality.
Store the post code as a numberA number drops the leading zero of every post code in Mexico City and the states whose codes start with 0. The post code is a five-character value.

Mapping the state to an SAP region key

CDQ delivers the state with its ISO 3166-2 code, for example MX-NLE. An SAP system does not validate against ISO: it validates the region field against its own region key table, T005S, which is part of a customer's configuration. That key exists for tax and jurisdiction purposes, which is why the level it sits at differs from one country to the next.

The region key is customer-specific configuration, so this standard does not define one. What this standard fixes is the ISO 3166-2 code. For Mexico, three sets of short codes are in use, and they differ: the ISO code suffix (NLE), the post office abbreviation (NL), and the key in an SAP configuration, which is conventionally a two- or three-letter abbreviation close to the postal one. The mapping from the ISO code to your key is therefore a lookup, not a transformation. CDQ carries a default SAP key for 14 of the 32 states; for the others the default is empty.

Treat the ISO code as the value CDQ guarantees and the SAP key as a mapping you own.

Worked example

Av. Paseo de la Reforma 222, Piso 12, Int. 1204, Col. Juárez, Alcaldía Cuauhtémoc, 06600 Ciudad de México, CDMX, in the CDQ address model:

FieldValue
CountryMX
Administrative area 1 (REGION)Ciudad de México
Administrative area 1 short nameMX-CMX
Administrative area 2 (COUNTY)Cuauhtémoc
Locality 1 (CITY)Ciudad de México
Locality 2 (DISTRICT)Juárez
Thoroughfare (STREET)Avenida Paseo de la Reforma
Thoroughfare number222
Premise (LEVEL)12
Premise (DOOR)1204
Post code06600

Reference data CDQ maintains for Mexico

These tables are extracts

The examples below show the shape of each dataset, not its full contents. The complete published lists for Mexico are on the CDQ Wiki page business partner metadata for Mexico, which also covers legal forms, identifier types and the integrated data sources.

States and Mexico City

32 entries: the 31 states and Mexico City. Each carries its ISO 3166-2 code and names in Spanish, with English, French, German and Chinese where these exist.

CodeSpanishAlso matched as
MX-CMXCiudad de MéxicoCMX, Mexico City, CIUDAD DE MEXICO
MX-MEXEstado de MéxicoMEX, State of Mexico, ESTADO DE MEXICO
MX-NLENuevo LeónNLE, NUEVO LEON
MX-JALJaliscoJAL, JALISCO
MX-QUEQuerétaroQUE, QRO, QUERETARO

A state is resolved from its name, from its ISO code with or without the MX- prefix, or from its default SAP key. Most states whose name carries a diacritic are also matched without it, so Nuevo Leon resolves to Nuevo León.

The post office abbreviations resolve where they coincide with the ISO suffix or with the default SAP key. That covers 20 of the 32:

Postal abbreviationsResolved today
AGS, BC, BCS, CAM, COL, GRO, JAL, MEX, MOR, NAY, OAX, PUE, QRO, SIN, SLP, SON, TAB, VER, YUC, ZACyes
CDMX, CHIH, CHIS, COAH, DGO, GTO, HGO, MICH, NL, Q. ROO, TAMPS, TLAXnot yet, see Current limitations

A special tax region, such as the northern border region with its reduced VAT rate, is a tax regime and not a territory: a company in it has an ordinary address in its state.

Post code format

Five digits: 06600 is recognised as a regular post code, with spaces, dots or hyphens between the digits tolerated. A post code that is numeric but not five digits long is normalised: leading zeros are restored, so 6600 becomes 06600, and surplus leading zeros are removed, so 0006600 becomes 06600. A value with a C.P. prefix or another non-digit is carried as supplied.

What CDQ standardises

The state is standardised against reference data: whether it arrives as JAL, MX-JAL or Jalisco, the canonical name and the ISO code are written back.

Where administrative area enrichment is enabled, the state and the levels below it are looked up from the post code in CDQ reference data, so a Mexican address with a valid post code and no state receives one. Mexico is one of the few countries where this lookup is available.

Post codes that lost or gained leading zeros are restored to five digits.

The city and the colonia are preserved as submitted. Where an address provider is enabled, it can enrich and complete them.


Current limitations

These are the gaps worth knowing about before designing an integration.

LimitationWhat it means for an integration
There is no Mexican street or premise vocabulary yetCDQ holds no Mexican street terms, so Av., Calz., Blvd. and Priv. are not recognised or standardised, and Avenida and Av. produce different delivered values. Piso, interior, departamento, despacho and local have no premise term for Mexico either. Only the generic English words (floor, level, apartment, room, suite, building) are premise terms that apply to Mexico. The floor and the interior number arriving inside the street or the house number can therefore stay there: they are never discarded, but the floor field and the house number supplement can be empty for an address that clearly has both. Where the source holds them in their own fields, they reach the right output fields.
Twelve postal state abbreviations are not resolvedCDMX, NL, Q. ROO, TAMPS and eight others do not resolve to a state, and neither do Distrito Federal and DF. A state supplied only this way stays unresolved. Supply the name or the ISO code where you have it.
The default SAP key covers 14 of 32 statesFor the other 18 the default SAP region key is empty. This does not affect the ISO code, which is always delivered; map your SAP key from the ISO code.
The unit is delivered twiceHOUSE_NUM2 joins room, door and apartment, and ROOM_NUMBER takes the first of them. For Mexico an interior number therefore appears in both. The standard expects it once, in HOUSE_NUM2.
The colonia is preserved, and not derivedA colonia supplied as its own locality reaches the district field. One that arrives inside the street or the city value is not separated out, and a missing colonia is not filled from the post code, even though the post office publishes the list of colonias per post code.
Manzana, lote and highway addresses are not modelledMz. 3 Lt. 12 and the kilometre mark of a highway address have no fields of their own. Both are preserved as submitted.
Check the state and the street before you load Mexico

Before an SAP load, check that your Mexican records carry the state as a name or an ISO code rather than as CDMX, NL or DF, and that the floor and the interior number are not trailing in the street or the house number. Supply the colonia as its own value rather than in a street line. Where your source already holds the interior number and the colonia in their own fields, supply them that way and they will reach the right output fields, with the interior number in both HOUSE_NUM2 and ROOM_NUMBER.


Summary

A Mexican address writes the street and the exterior number first, then the floor and the número interior. The colonia has its own line, and the last line carries the five-digit post code, the locality and the postal abbreviation of the state.

The state and the municipality are the administrative levels. The state is always on the address, the municipality or alcaldía often. The colonia is not administrative, and the post office still relies on it; the post code identifies one colonia or a small group of them.

CDQ places the state in administrative area level 1, the municipality in level 2, the city in locality level 1 and the colonia in locality level 2. The exterior number goes to the house number, the floor to the floor field, the building to the building field, and the interior number, office or flat to the house number supplement, which is the field SAP reserves for this in Mexico. The post code stays one five-digit value, with its leading zero.

The 32 states are maintained as CDQ reference data, and the state can be derived from the post code. The Mexican vocabulary is where the current coverage is weakest: there are no Mexican street or premise terms yet, so the floor and the unit usually stay inside the street value, and twelve of the postal state abbreviations, CDMX and NL among them, are not yet resolved.



Your opinion matters!

We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!