Generate Wink Extranet report for property
const url = 'https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/report/csv';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"reportName":"","reportDataType":"PROPERTY","fieldNames":"","state":""}'};
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/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/report/csv \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "reportName": "", "reportDataType": "PROPERTY", "fieldNames": "", "state": "" }'Generates a CSV report filtered to show only bookings associated with the specified property (hotel). The report excludes failed bookings and shows inventory-specific metrics.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique identifier for the property (hotel) managing entity
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Name of the report for the generated CSV file
Example
booking-summaryType of data source to query from: PROPERTY (hotel inventory), USER (guest profiles), BOOKING (reservations), ACCOUNT (managing entity data)
Example
BOOKINGList of field definitions specifying which data fields to include and their display titles
object
Display name for the report column
Example
Property NameJSON path to the field in the data object (dot-notation)
Example
hotel.nameQuery state with sorting, filtering, and pagination criteria to retrieve the report data
object
Number of records to be skipped by the pager.
Example
0Number of records to take.
Example
10Descriptors used for sorting result set.
object
Descriptors used for sorting result set
Example
ascData set field to sort on
Example
hotel.nameDescriptors used for filtering result set
object
Whether to filter inclusively or exclusively
Example
andDescriptors used for filtering the result set
object
Field name to filter on
Example
hotel.nameFilter operator to use on field
Example
startsWithValue to filter dataset against
Example
Happy ResMake filter comparison case insensitive. Default: Case sensitive
Example
trueDescriptors to group result sets by.
object
Field to group data set on
Example
createdDateGroup sort direction
Example
ascPrimitive aggregate data points
object
Field to run aggregate function on
Example
hotel.bookingsAggregate function
Example
countResponses
Section titled “ Responses ”CSV report generated successfully and returned as a file download
Invalid report query (missing required fields or invalid data type)
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
User does not have BOOKING:READ permission for the specified property
object
object
Internal Server Error
object
Example generated
{}object
object
object
object
Service Unavailable