Skip to content
Fulfillment & ShippingGeo

Resolve area by source code

Resolves a source-specific geographic code to its canonical area.

GET/v1/geo/resolve
No token

Query Parameters

countryCode*string

ISO 3166-1 alpha-2 country code, for example PE.

source*string

Source of the geographic codes, such as inei for Peru.

code*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.ecomiq.pe/api/v1/geo/resolve?countryCode=PE&source=inei&code=150122"
{  "id": "7204558912004326387",  "countryCode": "PE",  "type": "level1",  "code": "150122",  "name": "Miraflores",  "parentId": "7204558912004329210",  "source": "inei"}