Locate a city (Colombia)

Resolve a Colombian city name to its 8-digit DANE municipal code and validated postal code — required for all Colombian carriers (Coordinadora, ServiEntrega, TCC, etc.).

When to use: Call this endpoint before /ship/rate or /ship/generate when shipping within Colombia. Colombian carriers require the DANE code in the city field of origin and destination addresses, not the human-readable city name.

Key behaviors:

  • Full-text search against the official DANE municipality catalog
  • Returns the DANE code (city), normalized name (name), and department code (state)
  • No authentication required
  • Colombia only (country: "CO")
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Required Inputs

  • city, state and country are all required — the request fails if any of them is missing.
  • country must always be CO; this endpoint only resolves Colombian cities.
  • state is the 2-letter Colombian department code (e.g. AT, CN), not the full department name.

Notes

  • If a required field is missing, the response returns meta: "error" with error.code: 1149 and a message naming the missing field(s) (e.g. "Missing required field(s): country."). Check the request body against the schema above before retrying.
  • If city/state/country are all present but no DANE municipality matches, the response returns the same error code with the message "Address cannot be validated." — double-check the spelling of the city and the department code.
Body Params
string
required

City name to search. Accepts partial or full city name.

string
required

2-letter Colombian department code (e.g. AT for Atlántico, CN for Cundinamarca).

string
required

ISO country code. Must be CO (Colombia).

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json