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:
- CDQ Wiki: business partner metadata for Mexico: browse the published Mexican metadata
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 Mexico | Why it matters |
|---|---|
| The colonia is part of the postal address | it 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 number | Reforma 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 abbreviation | NL, 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 2016 | data 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 things | the 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 zero | every post code in Mexico City starts with 0 or 1, and a spreadsheet that stores it as a number turns 06600 into 6600 |
Mexico has two administrative levels below the country that appear on an address, and one sub-municipal level that the post office relies on.
| Level | Spanish | What it is | Used to address mail | Example |
|---|---|---|---|---|
| 1 | estado, entidad federativa | 31 states and Mexico City | yes, as the postal abbreviation | CDMX |
| 2 | municipio, alcaldía in Mexico City | municipality, nearly 2,500 of them, and the 16 alcaldías of the capital | sometimes, as its own line or together with the city | Cuauhtémoc |
| locality | ciudad, localidad | the city, town or village | yes | Ciudad de México |
| sub-municipal | colonia | neighbourhood inside a municipality, also fraccionamiento, barrio or unidad habitacional | yes | Juárez |
| postal | código postal (C.P.) | the post code, issued for one colonia or a group of them | yes | 06600 |
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.
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, CDMXThe 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.
Everything after the exterior number identifies the unit inside the building. It is free text with a common vocabulary:
| Written | Spanish | Means |
|---|---|---|
Int. 1204, Interior 1204 | número interior | the unit number behind the street number |
Piso 12 | piso | the floor |
Depto. 3, Dpto. 3 | departamento | a flat |
Desp. 1204 | despacho | an office |
Local 5 | local | a shop or commercial unit |
Edif. B, Torre B | edificio, torre | one 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:
| Written | What it is | What to watch |
|---|---|---|
S/N | sin número, no exterior number | A deliberate statement that there is no number. It is not a missing value and not a number |
Mz. 3 Lt. 12, Super Manzana 3 | manzana and lote, block and plot | Used 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 57 | a numbered street with its two cross streets, in Mérida | 60 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 B | the cross streets | A delivery hint, not part of the street name |
Carretera Federal 57 Km 12.5 | a property on a highway | The kilometre mark stands in for the exterior number, and 57 is the road |
Parque Industrial ... | an industrial park | Written where the colonia would be, and treated as the colonia by the post office |
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 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.
| Form | Example | Status |
|---|---|---|
| Five digits | 06600 | the written form |
| With the prefix | C.P. 06600 | common on letterheads, the same post code |
| Four digits | 6600 | the 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.
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 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.
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 level | CDQ concept | Type | SAP field |
|---|---|---|---|
| estado | administrative area, level 1 | REGION | region |
| municipio, alcaldía | administrative area, level 2 | COUNTY | county |
| ciudad, localidad | locality, level 1 | CITY | city |
| colonia | locality, level 2 | DISTRICT | district |
| parque industrial | thoroughfare | INDUSTRIAL_ZONE | appended to district |
| street type and name | thoroughfare | STREET | street |
| número exterior, or the kilometre mark | thoroughfare number | n/a | house number, HOUSE_NUM1 |
| piso, the floor | premise | LEVEL | floor |
| número interior | premise | DOOR | house number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER, when no room is present |
| despacho, local | premise | ROOM | house number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER |
| departamento | premise | APARTMENT | house number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER, when no room or door is present |
| edificio, torre | premise | BUILDING | building |
| Apartado Postal | postal delivery point | POST_OFFICE_BOX | PO box |
| código postal | post code | REGULAR | post code |
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 field | Takes | Several present |
|---|---|---|
HOUSE_NUM1 | the thoroughfare number | n/a |
HOUSE_NUM2 | room, door and apartment, for Mexico, Spain, Portugal, Brazil and Argentina only | all of them, joined with a comma and a space, in the order room, door, apartment |
FLOOR | the level premise | the first |
ROOM_NUMBER | room, else door, else apartment | the first one present, in that order |
BUILDING | building, else factory, else warehouse | the first |
So 222, Piso 12, Int. 1204 is delivered as:
| Output field | Value |
|---|---|
house number, HOUSE_NUM1 | 222 |
| floor | 12 |
house number supplement, HOUSE_NUM2 | 1204 |
room number, ROOM_NUMBER | 1204, 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.
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 alternative | Why |
|---|---|
| Put the colonia in the second street line | It 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 field | A 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 number | A 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. |
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.
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:
| Field | Value |
|---|---|
| Country | MX |
Administrative area 1 (REGION) | Ciudad de México |
| Administrative area 1 short name | MX-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 number | 222 |
Premise (LEVEL) | 12 |
Premise (DOOR) | 1204 |
| Post code | 06600 |
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.
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.
| Code | Spanish | Also matched as |
|---|---|---|
MX-CMX | Ciudad de México | CMX, Mexico City, CIUDAD DE MEXICO |
MX-MEX | Estado de México | MEX, State of Mexico, ESTADO DE MEXICO |
MX-NLE | Nuevo León | NLE, NUEVO LEON |
MX-JAL | Jalisco | JAL, JALISCO |
MX-QUE | Querétaro | QUE, 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 abbreviations | Resolved today |
|---|---|
AGS, BC, BCS, CAM, COL, GRO, JAL, MEX, MOR, NAY, OAX, PUE, QRO, SIN, SLP, SON, TAB, VER, YUC, ZAC | yes |
CDMX, CHIH, CHIS, COAH, DGO, GTO, HGO, MICH, NL, Q. ROO, TAMPS, TLAX | not 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.
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.
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.
These are the gaps worth knowing about before designing an integration.
| Limitation | What it means for an integration |
|---|---|
| There is no Mexican street or premise vocabulary yet | CDQ 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 resolved | CDMX, 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 states | For 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 twice | HOUSE_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 derived | A 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 modelled | Mz. 3 Lt. 12 and the kilometre mark of a highway address have no fields of their own. Both are preserved as submitted. |
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.
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.
- Business partner metadata for Mexico
- Spain Address Standard
- Brazil Address Standard
- United States Address Standard
We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!