List saved charts
const url = 'https://api.wink.travel/api/chart/list';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
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/api/chart/list \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns a list of all analytics charts saved by the authenticated user, sorted by sort priority.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
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.
Owner of this chart
Chart name as named by creator
Sort a list of charts by this sort value.
Chart settings
object
Time series granularity for data aggregation
Number of time-series units to visualize (e.g., last 12 months). Required if startDate and endDate are not provided.
Inclusive start of the analysis period. Required if timeSeriesUnits is not provided.
Inclusive end of the analysis period. Required if timeSeriesUnits is not provided.
Filter analytics to a single property by identifier and name
object
The value that should be persisted.
English readable text of the value.
Filter by affiliate channel type (e.g., direct booking engine, OTA, travel agent)
Filter by affiliate/seller identifier and name
object
The value that should be persisted.
English readable text of the value.
Filter by the customization’s origin country (GeoName ID and name)
object
The value that should be persisted.
English readable text of the value.
Filter by the customization’s origin city (GeoName ID and name)
object
The value that should be persisted.
English readable text of the value.
Filter by the customization’s origin continent
object
The value that should be persisted.
English readable text of the value.
Filter by a specific customization/booking engine (identifier and name)
object
The value that should be persisted.
English readable text of the value.
Filter by booker’s country of origin (GeoName ID and name)
object
The value that should be persisted.
English readable text of the value.
Filter by booker’s city of origin (GeoName ID and name)
object
The value that should be persisted.
English readable text of the value.
Filter by booker’s continent of origin
object
The value that should be persisted.
English readable text of the value.
Filter to a specific authenticated booker by user identifier
object
The value that should be persisted.
English readable text of the value.
Include property page view count in results
Include map marker interaction count in results
Include property card interaction count in results
Include booking count metric in results
Include cancellation count metric in results
Include total room nights booked in results
Include meeting room booking count in results
Include meeting room revenue in results
Include restaurant booking count in results
Include restaurant revenue in results
Include spa booking count in results
Include spa revenue in results
Include activity booking count in results
Include activity revenue in results
Include attraction booking count in results
Include attraction revenue in results
Include place booking count in results
Include place revenue in results
Include room package count in results
Include room package revenue in results
Include add-on item count in results
Include add-on revenue in results
Include total room/lodging revenue in results
Include average room rate (revenue per room night) in results
Include combined ancillary revenue (packages and add-ons) in results
Include total net revenue (room + ancillaries after commissions) in results
Include cancelled room night count in results
Include cancelled meeting room count in results
Include cancelled meeting room revenue in results
Include cancelled restaurant count in results
Include cancelled restaurant revenue in results
Include cancelled spa count in results
Include cancelled spa revenue in results
Include cancelled activity count in results
Include cancelled activity revenue in results
Include cancelled attraction count in results
Include cancelled attraction revenue in results
Include cancelled place count in results
Include cancelled place revenue in results
Include cancelled package count in results
Include cancelled package revenue in results
Include cancelled add-on count in results
Include cancelled add-on revenue in results
Include cancelled lodging revenue in results
Include combined cancelled ancillary revenue in results
Include total cancelled net revenue in results
Group results by affiliate channel type (e.g., direct vs. OTA)
Group results by affiliate/seller
Group results by customization’s origin country
Group results by customization’s origin city
Group results by customization’s origin continent
Group results by specific customization/booking engine
Group results by booker’s country of origin
Group results by booker’s city of origin
Group results by booker’s continent of origin
Group results by property
Group results by individual booker
Currency code for revenue display (e.g., USD, EUR, GBP, THB)
Example
[ { "id": "", "createdDate": "", "lastUpdate": "", "version": "", "ownerIdentifier": "", "name": "", "sort": -1, "details": "" }]Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}