Leaderboard by owner
POST
/api/analytics/leaderboard
const url = 'https://api.wink.travel/api/analytics/leaderboard';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"currencyCode":"USD","ownerIdentifier":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 '{ "currencyCode": "USD", "ownerIdentifier": "" }'Return the single leaderboard entry for one specific affiliate owner.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
currencyCode
required
Display leaderboard values in this currency
string
Example
USD ownerIdentifier
required
The company you wish to track on a leaderboard
string format: uuid
Example
company-1Responses
Section titled “ Responses ”OK
Media type application/json
object
ownerIdentifier
string
ownerName
string
continent
string
country
string
countryGeoNameId
string
city
string
cityGeoNameId
string
bookings
integer format: int64
totalPriceAmount
number
averageBookingAmount
number
currencyCode
string
Example generated
{ "ownerIdentifier": "example", "ownerName": "example", "continent": "example", "country": "example", "countryGeoNameId": "example", "city": "example", "cityGeoNameId": "example", "bookings": 1, "totalPriceAmount": 1, "averageBookingAmount": 1, "currencyCode": "example"}Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}