latestOpenAPI 3.1.02026-08-10390815.4 KB
e5f3dccae7ca
Common/locations
Districts
This endpoint returns a list of districts with translations in the selected languages. The districts returned may be filtered by a location id. For example, you can get the list of districts in Amsterdam by passing: {"city":-2140479}. <br/><br/>To get the full list call the endpoint passing an empty body. The district ids returned are what is used as input and output for other endpoints.<br/><br/> This endpoint implements pagination of the results.
post/common/locations/districts
Headers
X-Affiliate-Idinteger required
Include here your Affiliate identifier number
Request body
Example request
{
"airport": "AMS",
"country": "nl",
"languages": [
"en-us"
]
}Response
Successful response.