Shipping to Guatemala
Ship to Guatemala: the department code, the city from a closed list, and what error 1100 really means.
In Guatemala, city must be a municipality from a list the API holds but does not publish, and state is a two-digit department code. When a city is rejected, the department is usually what is wrong.
At a glance
| Postal code | Required but not checked. Send the zone code, such as 01001 |
| Department | A two-digit code, in state: 01 to 22. Guatemala City is 01 |
| City | A municipality name: Guatemala, Quetzaltenango. Accents are accepted |
| House number | number, required to create a label. Send S/N if there is none |
| Tax ID | Not used |
| Currency | Quote in GTQ. The label is charged in your account's currency |
| In sandbox | Cargo Expreso runs the full cycle |
What an address to Guatemala needs
The fields of a Guatemalan address. Where the address form (GET /generic-form?country_code=GT&form=address_info) differs, the table says so:
| Field | Required | What goes in it |
|---|---|---|
street | yes | 6a Avenida 1-20, Zona 10 |
state | yes | A two-digit department code, 01 to 22. Numeric, and the leading zero matters |
city | yes | A municipality name from a list the API holds and does not publish |
postalCode | yes | Required by the API, although the form hides it. Its value is not checked |
number | yes, for the label | The building number. The form calls it streetNumber; the API takes number. Send S/N if there is none |
reference | no | Free text for the carrier |
1100 means the city is not in that department
1100 means the city is not in that departmentWhen a city does not match its department, the API answers:
{ "meta": "error", "error": { "code": 1100, "message": "City was not found" } }It usually means the municipality is not in that department, not that the name is wrong. Sent with state: "01", these municipalities fail; sent with their own department, they quote:
With state: "01" | With its own department |
|---|---|
Quetzaltenango → 1100 | 09 → quotes |
Cobán → 1100 | 16 → quotes |
Huehuetenango → 1100 | 13 → quotes |
Puerto Barrios → 1100 | 18 → quotes |
Mazatenango → 1100 | 10 → quotes |
When a city is rejected, check its department code first. The name is usually right.
The twenty-two departments
API reference → Get states by country
curl https://queries.envia.com/state?country_code=GTNo token needed. Send the code — 09, not Quetzaltenango.
All 22 departments and their codes
| Send | Also in the catalog | Name |
|---|---|---|
01 | GUA | Guatemala |
02 | EPR | El Progreso |
03 | SAC | Sacatepequez |
04 | CMT | Chimaltenango |
05 | ESC | Escuintla |
06 | SRO | Santa Rosa |
07 | SOL | Solola |
08 | TOT | Totonicapan |
09 | QUE | Quetzaltenango |
10 | SUC | Suchitepequez |
11 | RET | Retalhuleu |
12 | SMA | San Marcos |
13 | HUE | Huehuetenango |
14 | QUI | Quiche |
15 | BVE | Baja Verapaz |
16 | AVE | Alta Verapaz |
17 | PET | Peten |
18 | IZA | Izabal |
19 | ZAC | Zacapa |
20 | CQM | Chiquimula |
21 | JAL | Jalapa |
22 | JUT | Jutiapa |
The list comes from GET /state?country_code=GT.
Do not use
GET /provinces/{state_code}for Guatemala. It searches every country at once: Guatemala's numeric codes return an empty list, and letter codes return other countries' places.
City names that work
Each of these quotes with the department shown. The list is a starting point, not the whole catalog:
Guatemala · Guatemala City · Ciudad de Guatemala · Villa Nueva · Amatitlán · San Miguel Petapa (all 01) · Antigua Guatemala (03) · Chimaltenango (04) · Escuintla (05) · Quetzaltenango (09) · Mazatenango (10) · Retalhuleu (11) · Huehuetenango (13) · Cobán (16) · Puerto Barrios (18) · Jalapa (21)
The capital accepts three spellings. Accents are accepted — Cobán works.
Flores (Petén, 17) is not in the list under that name. When a real municipality is rejected with its correct department, try the neighboring municipality a carrier delivers through.
postalCode is required, but not checked
postalCode is required, but not checked"postalCode": "01001"Without it, no carrier quotes: 400 Required property missing: postalCode, as in Colombia. Its value is not checked — 99999 quotes the same as 01001 — so send the zone code if you have one.
A complete address
{
"name": "María López",
"email": "[email protected]",
"phone": "+502 0000 0000",
"street": "6a Avenida 1-20, Zona 10",
"number": "S/N",
"city": "Guatemala",
"state": "01",
"postalCode": "01001",
"country": "GT",
"reference": "Oficina 501, Edificio Géminis, torre norte"
}Carriers
Check which carriers your account has for Guatemala with Carriers by country.
1140 Price plan requested not found is a pricing setting on your account, not something you can fix in the request. Contact support to enable the lane.
Ship it, end to end
One shipment from start to finish: Quetzaltenango → Guatemala City, with Cargo Expreso. Every request runs as written in sandbox, with the address above as the destination; only the tracking number is a placeholder.
Find the carriers that serve the lane
API reference → Get Carriers With Services
curl https://queries.test.envia.com/available-carrier/GT/0/1 \
--header "Authorization: Bearer $ENVIA_TOKEN"GT/0/1 reads: from Guatemala, domestic (0), parcel (1). Each carrier comes with the services you can pass when you create the label.
Quote
API reference → Get Shipping Rates
curl --request POST \
--url https://api-test.envia.com/ship/rate/ \
--header "Authorization: Bearer $ENVIA_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"origin": {
"name": "Bodega Xela",
"company": "Tienda Demo",
"email": "[email protected]",
"phone": "+502 7700 0000",
"street": "4a Calle 12-30, Zona 1",
"number": "S/N",
"city": "Quetzaltenango",
"state": "09",
"postalCode": "09001",
"country": "GT"
},
"destination": {
"name": "María López",
"email": "[email protected]",
"phone": "+502 0000 0000",
"street": "6a Avenida 1-20, Zona 10",
"number": "S/N",
"city": "Guatemala",
"state": "01",
"postalCode": "01001",
"country": "GT",
"reference": "Oficina 501, Edificio Géminis, torre norte"
},
"packages": [
{
"content": "Ropa",
"amount": 1,
"type": "box",
"weight": 1,
"insurance": 0,
"declaredValue": 0,
"weightUnit": "KG",
"lengthUnit": "CM",
"dimensions": {
"length": 20,
"width": 20,
"height": 10
}
}
],
"shipment": {
"carrier": "cargoExpreso",
"type": 1
},
"settings": {
"currency": "GTQ"
}
}'shipment.carrier takes one carrier per request; call it once per carrier to compare. Prices come back in settings.currency.
{
"meta": "rate",
"data": [
{
"carrier": "cargoExpreso",
"service": "ground",
"serviceDescription": "CargoExpreso NextDay",
"deliveryEstimate": "Día siguiente",
"totalPrice": 25.89,
"currency": "GTQ"
}
]
}deliveryEstimate is text for a person, in Spanish as the carrier sends it. Show it as is.
Create the label
API reference → Generate a Shipping Label
curl --request POST \
--url https://api-test.envia.com/ship/generate/ \
--header "Authorization: Bearer $ENVIA_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"origin": {
"name": "Bodega Xela",
"company": "Tienda Demo",
"email": "[email protected]",
"phone": "+502 7700 0000",
"street": "4a Calle 12-30, Zona 1",
"number": "S/N",
"city": "Quetzaltenango",
"state": "09",
"postalCode": "09001",
"country": "GT"
},
"destination": {
"name": "María López",
"email": "[email protected]",
"phone": "+502 0000 0000",
"street": "6a Avenida 1-20, Zona 10",
"number": "S/N",
"city": "Guatemala",
"state": "01",
"postalCode": "01001",
"country": "GT",
"reference": "Oficina 501, Edificio Géminis, torre norte"
},
"packages": [
{
"content": "Ropa",
"amount": 1,
"type": "box",
"weight": 1,
"insurance": 0,
"declaredValue": 0,
"weightUnit": "KG",
"lengthUnit": "CM",
"dimensions": {
"length": 20,
"width": 20,
"height": 10
}
}
],
"shipment": {
"carrier": "cargoExpreso",
"service": "ground",
"type": 1
},
"settings": {
"currency": "GTQ",
"printFormat": "PDF",
"printSize": "STOCK_4X6"
}
}'{
"meta": "generate",
"data": [
{
"carrier": "cargoExpreso",
"service": "ground",
"trackingNumber": "7000000001",
"trackUrl": "https://envia.com/rastreo?label=7000000001&cntry_code=gt",
"label": "https://…/cargoExpreso/7000000001.pdf",
"totalPrice": 60.5,
"currency": "MXN"
}
]
}The label is charged in your account's currency. The quote above is GTQ 25.89; a Mexican account is charged MXN 60.50.
Track it
API reference → Track Shipments
curl --request POST \
--url https://api-test.envia.com/ship/generaltrack/ \
--header "Authorization: Bearer $ENVIA_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"trackingNumbers": [
"7000000001"
]
}'A label you just created answers "status": "Created". For anything at volume, subscribe to webhooks instead of polling.
Cancel it, if it does not ship
API reference → Cancel a Shipment
curl --request POST \
--url https://api-test.envia.com/ship/cancel/ \
--header "Authorization: Bearer $ENVIA_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"carrier": "cargoExpreso",
"trackingNumber": "7000000001"
}'The response includes refundedAmount and balanceReturned: the charge returns to your balance.
International, into and out of Guatemala
A shipment that crosses the Guatemalan border is an ordinary international shipment: see International Shipping & Customs. A Guatemalan address has no tax ID field.
Testing in sandbox
Which Guatemalan carriers work in sandbox
- Cargo Expreso is the only carrier that quotes domestic parcels, and it runs the full cycle.
- packexpress, deliver and Telomando answer with no coverage, and swiftbox with
1125. - cpsLastMile, dhl and forzaDelivery answer with an internal error.
- Prices are the same for every destination: GTQ 25.89 to Puerto Barrios and to Villa Nueva alike. The address check is real, so a quote that succeeds does mean the city and department match.
trackUrlopens a tracking page that does not know sandbox shipments. It works for labels created in production.
In production you use the carriers enabled on your account.
Next steps
Ship to Colombia with the DANE municipal code, which takes the place of the postal code.
Crossing a border adds three things: a declaration of the contents, a code that classifies them, and who pays the duties.
What an address needs in each country, where each value comes from, and five rules that apply everywhere.
Updated 18 days ago