Skip to content

Leaderboard by owner

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

Return the single leaderboard entry for one specific affiliate owner.

Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Owner identifier used to look up the specific affiliate’s leaderboard entry

Media type application/json

Request to retrieve the leaderboard position for a specific managing entity, displaying values in the specified currency.

object
currencyCode
required

Display leaderboard values in this currency

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

Managing entity identifier to track on a leaderboard

string format: uuid
"" >= 1 characters
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69
Example
{
"currencyCode": "USD",
"ownerIdentifier": "d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69"
}

Leaderboard entry for the specified affiliate owner

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