Show Affiliates
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/sales/affiliate/grid';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"skip":0,"take":30,"sort":"","filter":"","group":""}'};
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/hotel-1/extranet/sales/affiliate/grid \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "skip": 0, "take": 30, "sort": "", "filter": "", "group": "" }'Retrieve page of affiliates.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Display affiliates to this specified property
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”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 ”OK
object
object
The company ID.
The company type
The company name
The company url slug
The company continent
The company country
The company country geo name ID
The company city
The company city geo name ID
The company image ID
Online presence of account.
object
List of all active accounts that could be used for selling or seeing a company’s reach.
The url, account name or phone number that identifies this user with the specified network.
The type of audience you have on this network.
The size of your audience.
How you would like to order your accounts.
Whether to disable this entry temporarily.
How much user or company spends on travel per year.
object
object
object
object
Example
{ "content": [ { "ownerIdentifier": "", "type": "TRIP_PAY", "ownerName": "", "urlName": "", "continent": "", "country": "", "countryGeoNameId": "", "city": "", "cityGeoNameId": "", "ownerImageId": "", "onlinePresence": [ "" ], "annualTravelSpendInDollars": "" } ]}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
{}