Cities

This Endpoint use GET method to fetch all cities of Booking CTS, this is important because you will need the city id for fetch availability. Request headers have to include the token on the authentication key.

Endpoint
GET https://{{base_url}}/api-v2/city/
Headers
{
    ...
    "authentication": "token {{YOUR_NEW_TOKEN}}"
    ...
}

Response format and explanation of every field

Response
[
      {
          "id": 1,
          "name": "Arica",
          "display_name": "Arica",
          "region": "Región de Arica y Parinacota",
          "region_number": "XV"
      }
]
KeyTypeDescription
idnumberid of the city on Booking CTS
namestringName of the city on Booking CTS
display_namestringAlternative name on Booking CTS
regionstringName of the Region that the city Belongs
region_numberstringNumber of the region