Show Perks
GET
/reference-data/perk/list
const url = 'https://api.wink.travel/reference-data/perk/list';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/reference-data/perk/list \ --header 'Wink-Version: 2.0'Retrieve list of perks
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
Array<object>
object
identifier
required
Enum identifier identifier for this perk. Makes the persistent version backwards compatible.
string
guaranteed
Whether perk is guaranteed or not.
boolean
level
The platform value of this perk.
integer format: int32
descriptions
required
Localized description for this perk
Array<object>
object
name
required
Use as title or short text description
string
description
required
Longer text description
string
language
required
Indicate which language this description is written in.
string
sort
This is how perks get sorted when in a list
integer format: int32
Example
[ { "identifier": "", "guaranteed": false, "level": "", "descriptions": "", "sort": "" }]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
{}