Skip to content

Leaderboard by region

POST
/api/analytics/leaderboard/list
curl --request POST \
--url https://api.wink.travel/api/analytics/leaderboard/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Return a paged sales leaderboard scoped to a geographic level such as continent, country or city.

Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Leaderboard filter criteria including geographic scope (continent, country or city), pagination and sort settings

Media type application/json

Request parameters for retrieving a paginated booking leaderboard, filtered by currency and geographic grouping.

object
page
required

Which page to access in the record set

integer format: int32
0
Example
0
size
required

Number of result set to retrieve

integer format: int32
default: 100 <= 100
Example
20
currencyCode
required

Display leaderboard values in this currency

string
default: USD >= 1 characters /^[A-Z]{3}$/
Example
USD
type
required

The type of leaderboard to display

string
default: GLOBAL
Allowed values: GLOBAL CONTINENT COUNTRY CITY
Example
GLOBAL
groupingIdentifier

Can be continent, country.geoNameId or city.geoNameId

string
""
Example
654321
Example
{
"page": 0,
"size": 20,
"currencyCode": "USD",
"type": "GLOBAL",
"groupingIdentifier": "654321"
}

Paginated leaderboard entries for the requested region. Pagination metadata (total, page, size) is in the Page wrapper.

Media type application/json

A single entry on the booking leaderboard, representing a managing entity’s booking performance including volume and revenue metrics.

object
ownerIdentifier
required

Unique identifier of the managing entity (owner) on the leaderboard.

string format: uuid
""
ownerName
required

Display name of the managing entity.

string
""
continent

Continent of the managing entity.

string
""
country

Country of the managing entity.

string
""
countryGeoNameId

GeoName ID for the country.

string
""
city

City of the managing entity.

string
""
cityGeoNameId

GeoName ID for the city.

string
""
bookings
required

Total number of bookings for this entity.

integer format: int64
""
totalPriceAmount
required

Total revenue from bookings in the display currency.

number
""
averageBookingAmount
required

Average booking value in the display currency.

number
""
currencyCode
required

Currency code for the monetary amounts.

string
"" /^[A-Z]{3}$/
key
additional properties
""
Example
{
"ownerIdentifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51",
"ownerName": "The Siam Residences",
"continent": "Asia",
"country": "Thailand",
"countryGeoNameId": "1605651",
"city": "Bangkok",
"cityGeoNameId": "1609350",
"bookings": 42,
"totalPriceAmount": 63000,
"averageBookingAmount": 1500,
"currencyCode": "THB"
}

Bad Request — missing or invalid request parameter or body

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unauthorized — authentication is required or the session has expired

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Forbidden — authenticated but lacking the required permission or scope

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Not Found — the requested resource does not exist

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Method Not Allowed — the HTTP verb is not supported on this endpoint

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unsupported Media Type — use application/json

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Internal Server Error — an unexpected failure occurred on the server

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Service Unavailable — a downstream dependency is unreachable

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example