Fluxir DocsFluxir Docs

Get the most frequent destination countries

GET/api/app/travel-services/top-destinations

Returns the precomputed top destination countries of the caller’s tenant, in rank order, topped up to 10 with overall countries the tenant list does not contain. Anonymous callers get the top countries across all tenants.

Header Parameters

X-Tenantstring

Tenant ID

Response

OK

idinteger<int64>
codeAlpha2string
codeAlpha3string
codeNumericinteger<int32>
titlestring
dialCodestring

Bad Request

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Unauthorized

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Forbidden

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Found

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Internal Server Error

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]

Not Implemented

errorobject
Show error properties
codestring
messagestring
detailsstring
dataobject
validationErrorsobject[]
Show validationErrors properties
messagestring
membersstring[]
Request
curl -X GET "https://api.example.com/api/app/travel-services/top-destinations" \
  -H "X-Tenant: <X-Tenant>"
Response
[
  {
    "id": 0,
    "codeAlpha2": "string",
    "codeAlpha3": "string",
    "codeNumeric": 0,
    "title": "string",
    "dialCode": "string"
  }
]