Skip to content

Brazil Address Standard

Overview

A Brazilian address carries two things most address models treat as optional: the neighbourhood, the bairro, and the two-letter abbreviation of the state, the UF. Both are part of the postal address. Between the house number and the bairro sits the complemento, the floor, room, suite or apartment inside the building, written as free text on the same line as the street.

This article describes the Brazilian address format, how CDQ represents it in the CDQ address model, how the complemento is delivered, and which reference data CDQ maintains for Brazil. It is the reference for anyone mapping Brazilian business partner data into CDQ, or consuming curated Brazilian addresses from CDQ.

In this article, you will understand:

  • How a Brazilian address is structured, and which of its parts the post office actually uses
  • Why the bairro and the state abbreviation belong in the address, and where each goes
  • How each Brazilian level maps to a concept in the CDQ address model, and which SAP field it reaches
  • How the complemento splits into floor, room and apartment, and which one is the house number supplement
  • Which reference data CDQ maintains for Brazil, and what the published values look like
  • Where the current CDQ coverage for Brazil is incomplete

Available in:


How a Brazilian address is built

A Brazilian address has a familiar shape: a street type and name, a number, a post code and a city. What is specific to Brazil is where integrations go wrong:

Specific to BrazilWhy it matters
The bairro is part of the postal addressit has its own line on the envelope, and a model with no place for it either drops it or pushes it into the street or the city
The state is written as a two-letter abbreviation after the citySão Paulo / SP is a city and a state, and the state is also the ISO 3166-2 code without its prefix
The complemento is free text after the number12º andar, sala 1203 is a floor and a room, and it arrives inside the street value where it corrupts every comparison on that field
The post code, the CEP, has eight digits and is written 00000-000it is precise to a street or a single large recipient, and the hyphen is often dropped in master data
Planned areas are addressed by sector, quadra and blocoin Brasília and in many housing developments there is no street name to parse, and Quadra and Bloco are not street types

The administrative levels

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

LevelPortugueseWhat it isUsed to address mailExample
1estado, unidade federativa (UF)26 states and the Federal Districtyes, as the two-letter abbreviationSP
2municípiomunicipality, about 5,570 of themyes, as the citySão Paulo
sub-municipalbairroneighbourhood inside a municipalityyesBela Vista
postalCEPthe post code, issued against a street, part of a street or a large recipientyes01310-100

A municipality in Brazil is the city: there is no county or province between the state and the municipality, so a Brazilian address has no level 2 administrative area beyond the city itself.

The Federal District is a single municipality, Brasília. Its administrative regions take the place of bairros: where a region is not divided into bairros, the region is written as the bairro, and where it is, the bairro is followed by the region in brackets, as in Veredas (Brazlândia).

The postal address

Empresa Exemplo Ltda.
Avenida Paulista, 1000, 12º andar, sala 1203
Bela Vista
01310-100 São Paulo / SP

The street type comes first, then the name, a comma and the number, then the complemento. The bairro has its own line. The last line holds the CEP, the city and the state abbreviation; the post office also accepts the CEP alone on the last line below São Paulo / SP.

The complemento

The complemento identifies the unit inside the building. It is free text with a common vocabulary:

WrittenPortugueseMeans
12º andar, 12º and.andarthe floor
sala 1203, sl 1203salaan office room or suite
conj. 51, cj 51conjuntoan office suite, in a commercial building
apto 101, ap 101apartamentoa flat
bloco B, bl Bblocoone building of several on the same plot
loja 3, lj 3lojaa shop unit at street level
térreotérreoground floor
fundosfundosthe rear of the property

So Avenida Paulista, 1000, 12º andar, sala 1203 reads: number 1000 on Avenida Paulista, twelfth floor, room 1203.

Some forms are easy to misread:

WrittenWhat it isWhat to watch
s/nsem número, no house numberA deliberate statement that there is no number. It is not a missing value and not a number
Rodovia SP-330, km 98a property on a highwayThe kilometre mark stands in for the house number, and SP-330 is the road, not a post code
Conjunto Habitacional ...a housing developmentThe same word as the office suite conj. 51, with a different meaning: here it names an area, not a unit
SQS 308 Bloco Csector, quadra and bloco, in BrasíliaThere is no street. The sector and quadra are the location and the bloco is the building
Jardim ..., Vila ..., Parque ...usually the name of a bairroJardim Paulista is a neighbourhood, not a street type followed by a name
The complemento is not part of the street name

12º andar, sala 1203 describes where inside the building the partner sits. Left in the street field, it turns Avenida Paulista into Avenida Paulista 1000 12º andar sala 1203, which matches nothing, and two tenants of the same building become two different streets. The complemento belongs in premises fields.

The CEP

The CEP has eight digits written as five, a hyphen and three: 01310-100. It was five digits until 1992, when the three-digit suffix was added. The first five digits identify the region, sub-region, sector and subsector. The suffix identifies a street, a side or section of a long street, or a single recipient. Suffixes from 900 to 999 are reserved for special cases, such as post office boxes and large recipients.

FormExampleStatus
Eight digits with a hyphen01310-100the written form
Eight digits without a hyphen01310100common in master data, the same CEP
Five digits01310the pre-1992 format, incomplete

A five-digit CEP is not wrong, it is old, and it cannot be completed without the street.

Properties that regularly cause integration errors

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

The state arrives as an abbreviation, a name, or both. SP, São Paulo, Sao Paulo and São Paulo - SP all mean the same state. Since the city and the state of São Paulo and Rio de Janeiro share a name, a name on its own does not say which level it belongs to.

Numbers in street names are common. Rua 25 de Março, Avenida 9 de Julho, Rua XV de Novembro. A parser that takes the first number it sees as the house number will take the date.

Rodovia addresses carry two numbers that are not a house number. In Rodovia SP-330, km 98, the road code and the kilometre mark both look like numbers. Neither is a CEP.

Quadra, bloco and lote replace the street in planned areas. In Brasília and in many developments the address is a sequence of sector, quadra, bloco or conjunto, and lote. These locate a building rather than name a street.

The city and the state can share a name

São Paulo and Rio de Janeiro are both a state and its capital. Without the abbreviation, São Paulo on its own does not say whether it is the city, the state, or both. Keep the state as its own value and supply the abbreviation where you have it.


How CDQ models a Brazilian 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.

Brazil maps as follows:

Brazilian levelCDQ conceptTypeSAP field
estado (UF)administrative area, level 1REGIONregion
municípiolocality, level 1CITYcity
bairrolocality, level 2DISTRICTdistrict
zona industrialthoroughfareINDUSTRIAL_ZONEappended to district
street type and namethoroughfareSTREETstreet
number, or the kilometre markthoroughfare numbern/ahouse number, HOUSE_NUM1
andar, the floorpremiseLEVELfloor
sala, conjunto, lojapremiseROOMhouse number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER
apartamentopremiseAPARTMENThouse number supplement, HOUSE_NUM2, and the room number, ROOM_NUMBER, when no room is present
blocopremiseBUILDINGbuilding
Caixa Postalpostal delivery pointPOST_OFFICE_BOXPO box
CEPpost 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. Brazil is one of the five countries for which CDQ fills it. What goes there is the unit: the room, the suite or the apartment. The floor goes to the dedicated floor field, and the bloco to the building field.

This is why a sala or a conjunto is modelled as a room rather than as a suite. In an SAP system with the Brazilian localization, HOUSE_NUM2 is the master-data field the electronic invoice, the NF-e, takes its complemento from. A unit delivered anywhere else does not appear on the invoice. HOUSE_NUM2 holds ten characters, so the unit fits and the whole complemento usually does not, which is a second reason to keep the floor in its own 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 Brazil, Spain, Portugal, Mexico 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 1000, 12º andar, sala 1203 is delivered as:

Output fieldValue
house number, HOUSE_NUM11000
floor12º
house number supplement, HOUSE_NUM2sala 1203
room number, ROOM_NUMBERsala 1203, a repeat of the supplement, see below

A room, suite or apartment 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 Brazil, and should read HOUSE_NUM2 as the authoritative one.

Why not keep the complemento in the house number

1000 12º andar sala 1203 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 Avenida Paulista, 1000 share a building, which is what site consolidation and hierarchy detection look for, and office towers on a few avenues are exactly where many Brazilian business partners share one street and one number.

Rejected alternatives

Rejected alternativeWhy
Put the bairro 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 bairro. SAP has a district field, and it takes the bairro.
Put the floor in the house number supplement together with the roomThe supplement is one field, and packing two facts into it recreates the problem it exists to solve. SAP has a floor field, and it takes the floor.
Store the CEP without its hyphen as the canonical formEight digits with and without the hyphen are the same CEP. The written form carries the hyphen, and keeping it makes the value read the way the post office prints it.

Mapping the state to an SAP region key

CDQ delivers the state with its ISO 3166-2 code, for example BR-SP. 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 Brazil the key your configuration holds is conventionally the two-letter abbreviation, which is the part of the ISO code after BR-, so the mapping is a transformation rather than a lookup. CDQ also carries a default SAP key for all 27 states, and it is that same abbreviation.

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

Worked example

Avenida Paulista, 1000, 12º andar, sala 1203, Bela Vista, 01310-100 São Paulo / SP, in the CDQ address model:

FieldValue
CountryBR
Administrative area 1 (REGION)São Paulo
Administrative area 1 short nameBR-SP
Locality 1 (CITY)São Paulo
Locality 2 (DISTRICT)Bela Vista
Thoroughfare (STREET)Avenida Paulista
Thoroughfare number1000
Premise (LEVEL)12º
Premise (ROOM)sala 1203
Post code01310-100

Reference data CDQ maintains for Brazil

These tables are extracts

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

States and the Federal District

27 entries: the 26 states and the Federal District. Each carries its ISO 3166-2 code, the two-letter abbreviation as its default SAP key, and names in Portuguese, with English, French, German and Chinese where these exist.

CodePortugueseAlso matched as
BR-SPSão PauloSP, SAO PAULO
BR-RJRio de JaneiroRJ, RIO DE JANEIRO
BR-MGMinas GeraisMG, MINAS GERAIS
BR-DFDistrito FederalDF, Federal District
BR-AMAmazonasAM, AMAZONAS

A state is resolved from its name or from its two-letter abbreviation, with or without the BR- prefix, so SP, BR-SP and São Paulo all resolve to BR-SP. Most states whose name carries a diacritic are also matched without it, so Sao Paulo resolves to São Paulo and Goias to Goiás.

Fernando de Noronha is a district of Pernambuco (BR-PE) and has no code of its own. The Manaus Free Trade Zone is a customs and tax regime, not a territory: a company in it has an ordinary Amazonas address with the region BR-AM.

Address terms

56 entries, covering the Portuguese street vocabulary with its abbreviation, English equivalents, and the post office box.

TermAbbreviationWhat it is
RuaRstreet
AvenidaAVavenue
AlamedaALa tree-lined avenue
PraçaPÇsquare
LargoLGa small square
TravessaTVa cross street
BecoBCan alley
EstradaESTRa road
CaminhoCAMa lane
QuadraQa block, in planned areas
SetorSTa sector, in planned areas
LoteamentoLOTa subdivision
Caixa PostalCPpost office box

Where a term is recognised, the expanded form is written to the thoroughfare value and the abbreviated form to the thoroughfare short name, and the short name is what the SAP street line takes.

CEP format

Eight digits, with an optional hyphen after the fifth: both 01310-100 and 01310100 are recognised as a regular CEP. The value is carried as supplied, so a CEP without its hyphen is not rewritten to the hyphenated form. A five-digit CEP is not recognised as a regular post code.

What CDQ standardises

The state is standardised against reference data: whether it arrives as SP, BR-SP, São Paulo or Sao Paulo, the canonical name and the ISO code are written back.

Street terms are recognised in the street text and rewritten to the official abbreviation, so Avenida and AV produce the same delivered value.

CEPs are validated against the eight-digit format.

The municipality and the bairro 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
The Portuguese words of the complemento are not yet premise termsAndar, sala, conjunto, apartamento, loja and térreo have no premise term for Brazil, and bloco and conjunto are published as street terms. Only the generic English words (floor, level, apartment, room, suite, building) are premise terms that apply to Brazil. A complemento arriving inside the street value can therefore stay there: it is 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 the floor and the unit in their own fields, they reach the right output fields.
The unit is delivered twiceHOUSE_NUM2 joins room, door and apartment, and ROOM_NUMBER takes the first of them. For Brazil a room or an apartment therefore appears in both. The standard expects it once, in HOUSE_NUM2.
The bairro is preserved, and not derivedA bairro supplied as its own locality reaches the district field. One that arrives inside the street or the city value is not separated out, and one that is absent stays absent, because deriving it needs a published CEP to bairro table.
Planned-area and highway addresses are not modelledQuadra, setor and loteamento are published as street types, so SQS 308 Bloco C is carried as a street rather than as a sector and a building, and the kilometre mark of a rodovia address has no field of its own. Both are preserved as submitted.
The CEP is validated, and not normalisedA CEP without its hyphen is carried without it, and a five-digit CEP is not completed.
Check the street field before you load Brazil

Because the Portuguese complemento words are not yet premise terms, the floor and the room or apartment generally arrive in the street value and stay there. Before an SAP load, check the street values of your Brazilian records for a trailing complemento, and supply the bairro as its own value rather than in a street line. Where your source already holds the floor, the unit and the bairro in their own fields, supply them that way and they will reach the right output fields, with the unit in both HOUSE_NUM2 and ROOM_NUMBER.


Summary

A Brazilian address writes the street type first, the number after a comma, and then the complemento: the floor and the room, suite or apartment. The bairro has its own line, and the last line carries the eight-digit CEP, the city and the two-letter state abbreviation.

The state and the municipality are the only administrative levels, and both are written on the address: the municipality as the city, the state as its abbreviation. The bairro is not administrative, and the post office still uses it.

CDQ places the state in administrative area level 1, the municipality in locality level 1 and the bairro in locality level 2. The number goes to the house number, the floor to the floor field, the bloco to the building field, and the room or apartment to the house number supplement, which is the field SAP reserves for this in Brazil. The CEP stays one value.

The 27 states and the Brazilian street vocabulary are maintained as CDQ reference data, and the state is resolved from its abbreviation as well as its name. The complemento vocabulary is where the current coverage is weakest: its words are not yet premise terms, so the floor and the unit usually arrive inside the street value and stay there, and a unit that is delivered reaches two SAP fields.



Your opinion matters!

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