Create
const url = 'https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/sales-channel/request';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', '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/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/sales-channel/request \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullSubmits a new sales-channel relationship request on behalf of the property and returns the persisted request.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create sales channel request and associate it with this property identifier
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Header 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
Supplier identifier the relationship request targets
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Introductory message from the requester explaining the purpose of the connection request.
Example
We are interested in partnering with your property to offer discounted rates to our clientele.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 the relationship request
Type of relationship request
Supplier identifier receiving this relationship request
Name of the property/supplier receiving the request
Type of entity initiating the relationship request
Unique identifier of the owner/affiliate initiating the request
Name of the owner/affiliate initiating the request
Message from requester explaining the purpose and benefits of the proposed relationship
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
{}