Destinations

  1. List destinations
  2. Get a single destination

Parameters

Name Type Read/Write Description
id Integer Read Destination’s id.
aliases Object Read Destination’s aliases, list of locales described in enums section.
ancestor_ids Array Read Array of destination’s ancestor destinations ids.
counter Integer Read Destination’s use counter for rentals.
fullname Object Read Destination’s fullname, list of locales described in enums section.
name Object Read Destination’s name, list of locales described in enums section.
permalink Object Read Destination’s permalink, list of locales described in enums section.

List destinations

List all destinations for a given account(s).

GET /destinations

Response

{
  "destinations": [
    {
      "id": 3212,
      "aliases": {
      },
      "ancestor_ids": [
        1
      ],
      "counter": 1,
      "fullname": {
        "en": "Europe, World"
      },
      "name": {
        "en": "Europe"
      },
      "permalink": {
        "en": "world/europe"
      }
    }
  ],
  "meta": {
  }
}

Get a single destination

Returns a single destination identified by ID.

GET /destinations/:destination_id

Response

{
  "destinations": [
    {
      "id": 3212,
      "aliases": {
      },
      "ancestor_ids": [
        1
      ],
      "counter": 1,
      "fullname": {
        "en": "Europe, World"
      },
      "name": {
        "en": "Europe"
      },
      "permalink": {
        "en": "world/europe"
      }
    }
  ],
  "meta": {
  }
}