---
title: "disambiguations"
method: GET
path: "/disambiguations/{gid}"
tags: ["Suggestions"]
---

# disambiguations

`GET /disambiguations/{gid}`

## Path parameters

- `gid` string, required

## Query parameters

- `country` string, required
- `flow_type` 'FLIGHT_HOTEL' | 'FLIGHT_MULTIPLE_HOTEL' | 'HOTEL' | 'FLIGHT' | 'MULTIPLE_FLIGHT'
- `from_date` string, date
- `to_date` string, date
- `origin` string
- `range` number
- `alternative_airport` boolean

## Response `200`

Successful response

- object
  - `selected` object — The destination determined to be the best option.
    - `location` object — Contains the details of the recommended place.
      - `oid` number — Place identifiers.
      - `iata` string — Place identifiers.
      - `gid` string — Place identifiers.
      - `type` 'CITY' | 'AIRPORT' | 'COUNTRY'
    - `distance` integer — The distance in kilometers from the provided destination gid to this selected destination. If the recommended destination is the same city you searched for, the distance will be 0.
    - `cause` 'RESOLVED: It means there was no forced disambiguation, so the same destination that was sent is returned.' | 'FORCED / SILENTLY_FORCED:  A forced rule was applied to change the destination.' | 'CLOSED_AIRPORT: The main airport of the original destination is closed on the trip dates.' | 'DAYS_AVAILABILITY: The destination has no flights on the weekdays of the specified dates.'
  - `alternatives` object — A list of airports within the distance from the destination specified by the range parameter.
    - `location` object
      - `oid` number
      - `iata` string
      - `gid` string
      - `type` string
    - `distance` number

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/despegar/apis/decolar-booking-api.md) · [All operations](https://skmtc.net/despegar/apis/decolar-booking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/despegar/decolar-booking-api/revisions/2fb15f2434ea/schema)
