BETA

Returns the list of zones, in hierarchy (state > county > city), where the customer has properties. customerId is resolved from the access token.

Resource information
AuthenticationRequired (API Token, Bearer)
HTTP MethodGET
ResponseJSON
Version1
Cache1 day

Resource URL

https://mapaprop.app/api/action/mapaprop-chat-ai-v1/zones

Parameters

This endpoint does not receive parameters.

Sample code

GET /api/action/mapaprop-chat-ai-v1/zones HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer {access_token}

Response

ObjectFieldTypeRequiredDescription
ResponsestatesArray of StateyesThe list of states where the customer has properties
StatedescriptionstringyesState/province description
idintyesState/province ID (zone1)
countiesArray of CountynoCounties (or second geographic division) within the state
CountydescriptionstringyesCounty description
idintyesCounty ID (zone2)
citiesArray of CitynoCities/neighborhoods within the county
CitydescriptionstringyesCity/neighborhood description
idintyesCity/neighborhood ID (zone3)

Sample response

{
    "states": [
        {
            "description": "Capital Federal",
            "id": 1,
            "counties": [
                { "description": "Palermo", "id": 46 },
                { "description": "Belgrano", "id": 93 }
            ]
        },
        {
            "description": "Buenos Aires",
            "id": 2,
            "counties": [
                {
                    "description": "San Isidro",
                    "id": 300,
                    "cities": [
                        { "description": "Boulogne", "id": 2896 }
                    ]
                }
            ]
        }
    ]
}