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 codeRequired but not checked. Send the zone code, such as 01001
DepartmentA two-digit code, in state: 01 to 22. Guatemala City is 01
CityA municipality name: Guatemala, Quetzaltenango. Accents are accepted
House numbernumber, required to create a label. Send S/N if there is none
Tax IDNot used
CurrencyQuote in GTQ. The label is charged in your account's currency
In sandboxCargo 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:

FieldRequiredWhat goes in it
streetyes6a Avenida 1-20, Zona 10
stateyesA two-digit department code, 01 to 22. Numeric, and the leading zero matters
cityyesA municipality name from a list the API holds and does not publish
postalCodeyesRequired by the API, although the form hides it. Its value is not checked
numberyes, for the labelThe building number. The form calls it streetNumber; the API takes number. Send S/N if there is none
referencenoFree text for the carrier

1100 means the city is not in that department

When 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 → 110009 → quotes
Cobán → 110016 → quotes
Huehuetenango → 110013 → quotes
Puerto Barrios → 110018 → quotes
Mazatenango → 110010 → 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=GT

No token needed. Send the code — 09, not Quetzaltenango.

All 22 departments and their codes
SendAlso in the catalogName
01GUAGuatemala
02EPREl Progreso
03SACSacatepequez
04CMTChimaltenango
05ESCEscuintla
06SROSanta Rosa
07SOLSolola
08TOTTotonicapan
09QUEQuetzaltenango
10SUCSuchitepequez
11RETRetalhuleu
12SMASan Marcos
13HUEHuehuetenango
14QUIQuiche
15BVEBaja Verapaz
16AVEAlta Verapaz
17PETPeten
18IZAIzabal
19ZACZacapa
20CQMChiquimula
21JALJalapa
22JUTJutiapa

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": "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.
  • trackUrl opens 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


Did this page help you?