Create Sales Channel Request
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/sales-channel/request';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: 'null'};
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-channel/request \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullCreate a new sales channel request.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create sales channel request and associate it with this property identifier
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”A request for relationship between two parties.
object
Type of relationship request
Specific identifier for the company / corporation / travel agency that is retrieving the rates
Example
owner-1Owner / affiliate writes an intro to request a connection.
Example
Hi there! Please give me a discount.Responses
Section titled “ Responses ”Created
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.
Status of relationship request
Type of relationship request
Request goes to this supplier identifier.
Request goes to this supplier name.
What type of segment of channel is this.
Specific identifier for the company / corporation / travel agency that is retrieving the rates
Name of the owner / affiliate.
Owner / affiliate writes an intro to request a connection.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "status": "REQUESTING", "requestType": "DIRECT_CONNECTION", "supplierIdentifier": "", "supplierName": "", "subType": "TRIP_PAY", "ownerIdentifier": "", "ownerName": "", "introductoryMessage": ""}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
{}