Skip to content

Show Leaderboard by Affiliate

POST
/api/analytics/leaderboard
curl --request POST \
--url https://api.wink.travel/api/analytics/leaderboard \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "currencyCode": "USD", "ownerIdentifier": "" }'

Show leaderboard for a specific affiliate.

Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json
object
currencyCode
required

Display leaderboard values in this currency

string
default: USD >= 1 characters
Example
USD
ownerIdentifier
required

The company you wish to track on a leaderboard

string format: uuid
"" >= 1 characters
Example
company-1

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"
}
}

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
{}