Skip to main content

DestinationConnection

Destination connection wrapper with pagination

destinations object[]

List of destination records

  • Array [
  • codestring

    Unique destination identifier

    destinationCodestring

    Destination code

    typestring

    Destination type (e.g., city, region, country)

    namestring

    Destination name

    availableboolean

    Whether the destination is available

    destinationLeafstring[]

    Child destination codes

    closestDestinationsstring[]

    Nearby destination codes

    parentstring

    Parent destination code

    texts object[]

    Destination texts in different languages

  • Array [
  • typestring

    Type of text (e.g., description, shortDescription)

    languageCodestring

    ISO 639-1 language code

    textstring

    Text content

  • ]
  • createdAtstring<date-time>

    Record creation timestamp

    updatedAtstring<date-time>

    Record last update timestamp

  • ]
  • countinteger

    Total number of destinations matching the query

    tokenstring

    Pagination token for retrieving the next page

    DestinationConnection
    {
    "destinations": [
    {
    "code": "string",
    "destinationCode": "string",
    "type": "string",
    "name": "string",
    "available": true,
    "destinationLeaf": [
    "string"
    ],
    "closestDestinations": [
    "string"
    ],
    "parent": "string",
    "texts": [
    {
    "type": "string",
    "languageCode": "string",
    "text": "string"
    }
    ],
    "createdAt": "2024-07-29T15:51:28.071Z",
    "updatedAt": "2024-07-29T15:51:28.071Z"
    }
    ],
    "count": 0,
    "token": "string"
    }