An address that is valid in Mexico is rejected in Chile.
You need this if you build an address form, import a customer list, or map your own order data onto a shipment. Get it wrong and nothing fails at save time — it fails at Labels, when the shipment is already paid for.
You can ship to 244 countries, and they use 12 different address forms. Everything below is generated from GET /generic-form against production, for every one of those 244, and re-checked on every change to this documentation — so it cannot quietly drift.
"Where Envia operates" is a different, smaller list.
GET /localereturns the 15 countries where you can hold an account and ship from. This page is about destinations, which is why it covers all 244: your buyer's address has to be right whether or not Envia has an office there.
This page is the address form. Addresses by Country is the address API.
They answer different questions, and the difference is not academic: the form has no
postal_codefield at all in 74 countries, and the Shipping API requirespostalCodein every one of the 244. Build your form from this page; build your requests from that one.Per-country walkthroughs — Chile, Colombia, Guatemala, Brazil, Peru, India, Hong Kong — live there too.
What each country requires
164 of the 244 countries use the same form. It is the one to build first:
street | number | postal_code | city | state | ID |
|---|---|---|---|---|---|
| ● | ○ | ● | ● | ● | ○ |
● required · ○ optional
The other 80 differ. Find your destination here — anything not listed uses the form above:
| Differs by | Countries |
|---|---|
no postal_code | AE AG AO BF BI BJ BQ BS BW BZ CD CF CG CI CK CM DJ DM ET FJ GA GD GM GN GQ GW GY KI KM KN KP LR LY MR MW NE NR OM PE PS QA RW SB SC SD SL SO SR ST SX SY TD TF TG TK TL TO TT TV UG VU YE ZM ZW |
no postal_code, adds district | AW BO CL HK PA |
postal_code is optional | IN LB |
adds district | MX NZ |
number becomes required, adds district, ID becomes required | BR |
no number, no postal_code, no city, adds city_select required | CO |
no postal_code, no state | CW |
no number, adds streetNumber, no postal_code, no ID | GT |
no number, no postal_code, adds district required | HN |
no number, no postal_code | MO |
number becomes required, postal_code is optional | UY |
Four things that will break your integration
All four are about the form. What the API does with what you send is a separate page.
1. 74 countries have no postal code — and the API still demands one
postal_code is required in 167 countries, optional in 3 — India, Lebanon and Uruguay — and absent from the form entirely in 74, including Chile, Colombia, Guatemala, Hong Kong, Peru, Bolivia and Panama. The full list is in the table above, under no postal_code.
So do not make the field mandatory in your form everywhere — the normal thing to do when you build against Mexico or the United States first. Ask for it where the form asks for it.
But do not leave
postalCodeout of the request. This table is the form. The Shipping API's address schema markspostalCoderequired in every country, and omitting it fails before any carrier sees it:{ "meta": "error", "error": { "code": 400, "message": "Required property missing: postalCode" } }The same holds in all 244 countries. What to send where there is no postal code is in Addresses by Country — in Colombia it is the DANE municipal code, in Guatemala anything at all.
2. Sandbox does not match production
77 of the 244 countries return a different address form in sandbox than in production. Build against the production names — that is where the shipment is paid for.
| In production | In sandbox | Countries |
|---|---|---|
| (nothing) | postal_code | AG AO BF BI BJ BQ BS BW BZ CD CF CG CI CK CM DJ DM ET FJ GA GD GM GN GQ GW GY KI KM KN KP LR LY MR MW NE NR OM PS RW SB SC SD SL SO SR ST SX SY TD TF TG TK TL TO TT TV UG VU YE ZM ZW |
identification_number, number | streetNumber | AU CA LB NZ PA UY |
number | streetNumber | CW EC HK IN PE QA |
identification_number | (nothing) | HN MO |
district | postal_code | AW |
district, identification_number, number | (nothing) | BO |
Two of those rows are the ones that bite:
streetNumberin sandbox,numberin production — 13 countries. An integration built and tested in sandbox sendsstreetNumber, and production ignores it. In Uruguay the field is required on both sides under a different name, so production rejects the shipment for a missingnumber.postal_codein sandbox, nothing in production — 61 countries. Your sandbox form collects a postal code that the production form does not ask for. Keep sending it anyway: the Shipping API requirespostalCoderegardless (rule 1 above).
If you are testing in sandbox and a field name does not match this page, that is why. We are aligning the two; until then, build against the production names.
3. The house number is called streetNumber in Guatemala
streetNumber in GuatemalaIn production every country that has a house-number field calls it number — except Guatemala, which calls it streetNumber. Four countries have no house-number field at all: Colombia, Guatemala, Honduras and Macao.
One country, one exception, and it is where you would least expect it. (In sandbox thirteen more countries call it streetNumber — see rule 2.)
4. In Colombia and Guatemala the city is not free text
In most countries you type the city — Chile included: its city is free text, and the commune you type fills the district options. In these two it is chosen from a list the state determines, so you have to ask in order:
| Country | Order | Note |
|---|---|---|
| Colombia | state → city_select | The field is city_select, not city |
| Guatemala | state → city | city is a select, not a text box |
Colombia is the sharpest edge, and the form only tells half of it. The form field is city_select. What the API wants in city is the eight-digit DANE code, not a name — send Bogotá and Servientrega refuses the shipment with 1126. See Shipping to Colombia.
Read the options with States & Provinces, then Address Location to resolve the rest.
And one more: the tax ID is required in two countries, not one
identification_number is in 243 of the 244 production forms, and the form marks it required in Brazil only — the CPF or CNPJ, without which a shipment is not accepted. Brazil also carries a state_registration field no other country has.
Colombia is the second, and the form does not say so. Envia's own client libraries treat Colombia alongside Brazil as a country that needs the tax identifier on both origin and destination, every time. Send it. See Shipping to Colombia.
Note the spelling: the form calls it identification_number, the Shipping API schema calls it identificationNumber. The snake_case name is not rejected — it is ignored.
Guatemala is the only country whose form has no tax-ID field at all.
The house number, number, is required in exactly two countries: Brazil and Uruguay.
The same field means different things
The API field name never changes. What the person filling the form calls it does, and that matters when you label your own:
state is called | city is called | district is called |
|---|---|---|
| Región in Chile | Comuna in Chile | Barrio in Chile — the form labels it Neighborhood |
| Departamento in Colombia | Localidad in Argentina and Uruguay | Colonia in Mexico |
| Provincia in Argentina | Bairro in Brazil |
Always send the API field name. Show the local word.
Reading this live
The endpoint is public — no token, no account:
curl 'https://queries.envia.com/generic-form?country_code=CL&form=address_info'Each entry carries fieldName (the key you send), rules.required, fieldType, and on_change.set_options when choosing it populates another field. Pass form=billing_info for the billing variant.
Call it once per country at build time and cache it. It is a catalog, not live state.
Which countries we serve
The 20 above. Read the live list from Serviceable Countries rather than hardcoding this one — this table is the address shape, not the commercial coverage, and coverage changes more often.