Skip to content

Create Chart

POST
/api/chart
curl --request POST \
--url https://api.wink.travel/api/chart \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "name": "", "sort": -1, "details": "" }'

Creates a new chart request.

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

Chart name as named by creator

string
"" >= 1 characters
Example
My First Chart
sort

Sort a list of charts by this sort value.

integer format: int32
default: -1
Example
1
details
required

Chart settings

object
series
required

The time series to visualize

string
""
Allowed values: HOUR DAY MONTH YEAR
Example
HOUR
timeSeriesUnits

How many units of the time series type to visualize. Only required if start / end date not populated.

integer format: int64
""
Example
24
startDate

Fixed date to start visualizations on

string format: date-time
""
Example
2017-12-22T03:07:58.742+0000
endDate

Fixed date to end visualizations on

string format: date-time
""
Example
2017-12-23T03:07:58.742+0000
filterOnHotelIdentifier

Filter on hotel identifier

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnChannelSubType

Filter on channel sub type. What channel sub-type helped make the booking.

string
""
Allowed values: TRIP_PAY FACILITATOR DIRECT APPLICATION HOTEL TRAVELIKO CORPORATE TRAVEL_AGENT INFLUENCER BLOGGER DESTINATION CHANNEL_MANAGER PROPERTY_MANAGEMENT_SYSTEM CENTRAL_RESERVATION_SYSTEM GOOGLE_HOTEL_API MANAGEMENT_COMPANY CHAIN BRAND EVENT_ORGANIZER OTHER
Example
APPLICATION
filterOnOwnerIdentifier

Filter on seller identifier. What affiliate helped make this booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnEngineCountryGeoNameId

Filter on customization country geoNameId. Which country is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnEngineCityGeoNameId

Filter on city geoNameId. Which city is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnEngineContinentCode

Filter on continent. Which city is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnEngineConfigurationIdentifier

Filter on customization. Which customization made this booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnCountryGeoNameId

Filter on country geoNameId. Which country is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnCityGeoNameId

Filter on city geoNameId. Which city is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnContinentCode

Filter on continent. Which continent is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
filterOnUserIdentifier

Filter on user identifier. Which authenticated user made the booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
Example
id-1
label
required

English readable text of the value.

string
"" >= 1 characters
Example
Readable text label
includePageVisits

Include page visits

boolean
Example
false
includeMapMarkerVisits

Include map marker visits

boolean
Example
false
includeCardVisits

Include card visits

boolean
Example
false
includeBookings

Include bookings

boolean
Example
false
includeCancellations

Include cancellations

boolean
Example
false
includeRoomNights

Include room nights

boolean
Example
false
includeMeetingRooms

Include meeting rooms

boolean
Example
false
includeMeetingRoomsRevenue

Include meeting rooms revenue

boolean
Example
false
includeRestaurants

Include restaurants

boolean
Example
false
includeRestaurantsRevenue

Include restaurants revenue

boolean
Example
false
includeSpas

Include spas

boolean
Example
false
includeSpasRevenue

Include spas revenue

boolean
Example
false
includeActivities

Include activities

boolean
Example
false
includeActivitiesRevenue

Include activities revenue

boolean
Example
false
includeAttractions

Include attractions

boolean
Example
false
includeAttractionsRevenue

Include attractions revenue

boolean
Example
false
includePlaces

Include places

boolean
Example
false
includePlacesRevenue

Include places revenue

boolean
Example
false
includeRoomTypeAncillaries

Include room type ancillaries

boolean
Example
false
includeRoomTypeAncillariesRevenue

Include packages revenue

boolean
Example
false
includeAddOns

Include add-ons

boolean
Example
false
includeAddOnsRevenue

Include add-ons revenue

boolean
Example
false
includeTotalRoomRevenue

Include total room revenue

boolean
Example
false
includeAverageRoomRate

Include average room rate

boolean
Example
false
includeTotalAncillariesRevenue

Include combined packages and add-os revenue

boolean
Example
false
includeTotalNetRevenue

Include total net revenue

boolean
Example
false
includeCancelledRoomNights

Include cancelled room nights

boolean
Example
false
includeCancelledMeetingRooms

Include cancelled meeting rooms

boolean
Example
false
includeCancelledMeetingRoomsRevenue

Include cancelled meeting rooms revenue

boolean
Example
false
includeCancelledRestaurants

Include cancelled restaurants

boolean
Example
false
includeCancelledRestaurantsRevenue

Include cancelled restaurants revenue

boolean
Example
false
includeCancelledSpas

Include cancelled spas

boolean
Example
false
includeCancelledSpasRevenue

Include cancelled spas revenue

boolean
Example
false
includeCancelledActivities

Include cancelled activities

boolean
Example
false
includeCancelledActivitiesRevenue

Include cancelled activities revenue

boolean
Example
false
includeCancelledAttractions

Include cancelled attractions

boolean
Example
false
includeCancelledAttractionsRevenue

Include cancelled attractions revenue

boolean
Example
false
includeCancelledPlaces

Include cancelled places

boolean
Example
false
includeCancelledPlacesRevenue

Include cancelled places revenue

boolean
Example
false
includeCancelledRoomTypeAncillaries

Include cancelled packages

boolean
Example
false
includeCancelledRoomTypeAncillariesRevenue

Include cancelled packages revenue

boolean
Example
false
includeCancelledAddOns

Include cancelled add-ons

boolean
Example
false
includeCancelledAddOnsRevenue

Include cancelled add-ons revenue

boolean
Example
false
includeCancelledTotalRoomRevenue

Include cancelled total room revenue

boolean
Example
false
includeCancelledTotalAncillariesRevenue

Include combined cancelled package and add-on revenue

boolean
Example
false
includeCancelledTotalNetRevenue

Include cancelled total net revenue

boolean
Example
false
groupOnChannelSubType

Group on channel sub type

boolean
Example
false
groupOnOwnerIdentifier

Group on owner identifier

boolean
Example
false
groupOnEngineCountryGeoNameId

Group on application country geoNameId

boolean
Example
false
groupOnEngineCityGeoNameId

Group on application city geoNameId

boolean
Example
false
groupOnEngineContinentCode

Group on application continent code

boolean
Example
false
groupOnEngineConfigurationIdentifier

Group on customization identifier

boolean
Example
false
groupOnCountryGeoNameId

Group on country geoNameId

boolean
Example
false
groupOnCityGeoNameId

Group on city geoNameId

boolean
Example
false
groupOnContinentCode

Group on continent code

boolean
Example
false
groupOnHotelIdentifier

Group on hotel identifier

boolean
Example
false
groupOnUserIdentifier

Group on user identifier

boolean
Example
false
currencyCode

Currency code

string
default: USD
Example
EUR

Created

Media type application/json
object
id

Document UUID

string
""
createdDate

Datetime this record was first created

string format: date-time
""
lastUpdate

Datetime this record was last updated

string format: date-time
""
version

Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.

integer format: int64
""
ownerIdentifier
required

Owner of this chart

string format: uuid
"" >= 1 characters
name
required

Chart name as named by creator

string
"" >= 1 characters
sort

Sort a list of charts by this sort value.

integer format: int32
default: -1
details
required

Chart settings

object
series
required

The time series to visualize

string
""
Allowed values: HOUR DAY MONTH YEAR
timeSeriesUnits

How many units of the time series type to visualize. Only required if start / end date not populated.

integer format: int64
""
startDate

Fixed date to start visualizations on

string format: date-time
""
endDate

Fixed date to end visualizations on

string format: date-time
""
filterOnHotelIdentifier

Filter on hotel identifier

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnChannelSubType

Filter on channel sub type. What channel sub-type helped make the booking.

string
""
Allowed values: TRIP_PAY FACILITATOR DIRECT APPLICATION HOTEL TRAVELIKO CORPORATE TRAVEL_AGENT INFLUENCER BLOGGER DESTINATION CHANNEL_MANAGER PROPERTY_MANAGEMENT_SYSTEM CENTRAL_RESERVATION_SYSTEM GOOGLE_HOTEL_API MANAGEMENT_COMPANY CHAIN BRAND EVENT_ORGANIZER OTHER
filterOnOwnerIdentifier

Filter on seller identifier. What affiliate helped make this booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnEngineCountryGeoNameId

Filter on customization country geoNameId. Which country is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnEngineCityGeoNameId

Filter on city geoNameId. Which city is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnEngineContinentCode

Filter on continent. Which city is this application from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnEngineConfigurationIdentifier

Filter on customization. Which customization made this booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnCountryGeoNameId

Filter on country geoNameId. Which country is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnCityGeoNameId

Filter on city geoNameId. Which city is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnContinentCode

Filter on continent. Which continent is the traveler from.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
filterOnUserIdentifier

Filter on user identifier. Which authenticated user made the booking.

object
value
required

The value that should be persisted.

string
"" >= 1 characters
label
required

English readable text of the value.

string
"" >= 1 characters
includePageVisits

Include page visits

boolean
includeMapMarkerVisits

Include map marker visits

boolean
includeCardVisits

Include card visits

boolean
includeBookings

Include bookings

boolean
includeCancellations

Include cancellations

boolean
includeRoomNights

Include room nights

boolean
includeMeetingRooms

Include meeting rooms

boolean
includeMeetingRoomsRevenue

Include meeting rooms revenue

boolean
includeRestaurants

Include restaurants

boolean
includeRestaurantsRevenue

Include restaurants revenue

boolean
includeSpas

Include spas

boolean
includeSpasRevenue

Include spas revenue

boolean
includeActivities

Include activities

boolean
includeActivitiesRevenue

Include activities revenue

boolean
includeAttractions

Include attractions

boolean
includeAttractionsRevenue

Include attractions revenue

boolean
includePlaces

Include places

boolean
includePlacesRevenue

Include places revenue

boolean
includeRoomTypeAncillaries

Include room type ancillaries

boolean
includeRoomTypeAncillariesRevenue

Include packages revenue

boolean
includeAddOns

Include add-ons

boolean
includeAddOnsRevenue

Include add-ons revenue

boolean
includeTotalRoomRevenue

Include total room revenue

boolean
includeAverageRoomRate

Include average room rate

boolean
includeTotalAncillariesRevenue

Include combined packages and add-os revenue

boolean
includeTotalNetRevenue

Include total net revenue

boolean
includeCancelledRoomNights

Include cancelled room nights

boolean
includeCancelledMeetingRooms

Include cancelled meeting rooms

boolean
includeCancelledMeetingRoomsRevenue

Include cancelled meeting rooms revenue

boolean
includeCancelledRestaurants

Include cancelled restaurants

boolean
includeCancelledRestaurantsRevenue

Include cancelled restaurants revenue

boolean
includeCancelledSpas

Include cancelled spas

boolean
includeCancelledSpasRevenue

Include cancelled spas revenue

boolean
includeCancelledActivities

Include cancelled activities

boolean
includeCancelledActivitiesRevenue

Include cancelled activities revenue

boolean
includeCancelledAttractions

Include cancelled attractions

boolean
includeCancelledAttractionsRevenue

Include cancelled attractions revenue

boolean
includeCancelledPlaces

Include cancelled places

boolean
includeCancelledPlacesRevenue

Include cancelled places revenue

boolean
includeCancelledRoomTypeAncillaries

Include cancelled packages

boolean
includeCancelledRoomTypeAncillariesRevenue

Include cancelled packages revenue

boolean
includeCancelledAddOns

Include cancelled add-ons

boolean
includeCancelledAddOnsRevenue

Include cancelled add-ons revenue

boolean
includeCancelledTotalRoomRevenue

Include cancelled total room revenue

boolean
includeCancelledTotalAncillariesRevenue

Include combined cancelled package and add-on revenue

boolean
includeCancelledTotalNetRevenue

Include cancelled total net revenue

boolean
groupOnChannelSubType

Group on channel sub type

boolean
groupOnOwnerIdentifier

Group on owner identifier

boolean
groupOnEngineCountryGeoNameId

Group on application country geoNameId

boolean
groupOnEngineCityGeoNameId

Group on application city geoNameId

boolean
groupOnEngineContinentCode

Group on application continent code

boolean
groupOnEngineConfigurationIdentifier

Group on customization identifier

boolean
groupOnCountryGeoNameId

Group on country geoNameId

boolean
groupOnCityGeoNameId

Group on city geoNameId

boolean
groupOnContinentCode

Group on continent code

boolean
groupOnHotelIdentifier

Group on hotel identifier

boolean
groupOnUserIdentifier

Group on user identifier

boolean
currencyCode

Currency code

string
default: USD
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"ownerIdentifier": "",
"name": "",
"sort": -1,
"details": ""
}

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