Show Affiliate
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/sales/affiliate/hotel-1';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/api/managing-entity/hotel-1/extranet/sales/affiliate/hotel-1 \ --header 'Wink-Version: 2.0'Retrieve affiliate information specified by identifier
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Display affiliate to this specified property
Example
hotel-1Display affiliate by specified company
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
object
object
The value that should be persisted.
English readable text of the value.
object
The value that should be persisted.
English readable text of the value.
object
The value that should be persisted.
English readable text of the value.
object
Whether the agent is in charge of charging the property.
Whether the agent is in charge of paying the property.
The company image ID
Online presence of entity.
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
{ "managingEntity": { "city": { "value": "", "label": "" }, "country": { "value": "", "label": "" }, "continent": { "value": "", "label": "" }, "type": "TRIP_PAY", "status": "PENDING_APPROVAL", "travelAgent": { "selfAcquires": false, "selfDisburses": false }, "ownerImageId": "", "onlinePresence": [ "" ], "annualTravelSpendInDollars": "" }, "total": { "type": "BY_TOTAL" }, "byPropertyList": [ { "type": "BY_TOTAL" } ], "byCountryList": [ { "type": "BY_TOTAL" } ]}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
{}