API reference
List districts
Lists the districts of a province. Last step of a Peruvian address form, and the level shipping rates are calculated from.
GET
/v1/geo/districtsLists the districts of a province. Last step of a Peruvian address form, and the level shipping rates are calculated from.
Query Parameters
countryCode?string
ISO 3166-1 alpha-2 country code, for example PE.
provinceId?null|string
provinceCode?string
source?string
search?string
Free-text filter. Which fields it covers depends on the resource.
limit?integer
Maximum number of results to return.
Format
int32Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/geo/districts"[ { "id": "string", "countryCode": "string", "type": "level1", "code": "string", "name": "string", "parentId": null, "source": "string" }]