Skip to content

Create

POST
/api/managing-entity/{managingEntityIdentifier}/studio/sales-channel/request
curl --request POST \
--url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/sales-channel/request \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Submits a new relationship request from the company to a supplier and returns the persisted request once created.

managingEntityIdentifier
required
string
""

Create property request and associate it with this company identifier

Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Relationship request payload specifying the target supplier and any proposed commission or pricing terms for the new channel partnership

Media typeapplication/json

A request for relationship between two parties.

object
requestType
required

Type of relationship request

string
""
Allowed values: DIRECT_CONNECTION
Example
DIRECT_CONNECTION
supplierIdentifier
required

Supplier identifier the relationship request targets

string format: uuid
"" >= 1 characters
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18
introductoryMessage
required

Introductory message from the requester explaining the purpose of the connection request.

string
"" >= 1 characters
Example
We are interested in partnering with your property to offer discounted rates to our clientele.
Example
{
"requestType": "DIRECT_CONNECTION",
"supplierIdentifier": "e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18",
"introductoryMessage": "We are interested in partnering with your property to offer discounted rates to our clientele."
}

Sales channel relationship request successfully created

Media typeapplication/json

A request for relationship between two parties.

object
id

Unique identifier for this record.

string format: uuid
""
createdDate

Datetime this record was first created

string | null format: date-time
""
lastUpdate

Datetime this record was last updated

string | null format: date-time
""
version

Optimistic-locking version. Echo this value back as an If-Match request header on a conditional update; the server responds 409 if the record changed in the meantime. Null when this projection has no backing versioned document, in which case no conditional update is possible.

integer | null format: int64
""
status
required

Status of the relationship request

string
""
Allowed values: REQUESTING REJECTED
requestType
required

Type of relationship request

string
""
Allowed values: DIRECT_CONNECTION
supplierIdentifier
required

Supplier identifier receiving this relationship request

string format: uuid
"" >= 1 characters
supplierName
required

Name of the property/supplier receiving the request

string
"" >= 1 characters
subType
required

Type of entity initiating the relationship request

string
""
Allowed values: TRIP_PAY FACILITATOR DIRECT APPLICATION HOTEL TRAVELIKO CORPORATE TRAVEL_AGENT INFLUENCER BLOGGER DESTINATION CHANNEL_MANAGER PROPERTY_MANAGEMENT_SYSTEM CENTRAL_RESERVATION_SYSTEM GOOGLE_HOTEL_API MANAGEMENT_COMPANY CHAIN BRAND EVENT_ORGANIZER OTHER
ownerIdentifier
required

Unique identifier of the owner/affiliate initiating the request

string format: uuid
"" >= 1 characters
ownerName
required

Name of the owner/affiliate initiating the request

string
"" >= 1 characters
introductoryMessage
required

Message from requester explaining the purpose and benefits of the proposed relationship

string
"" >= 1 characters
key
additional properties
""
Example

Bad Request — missing or invalid request parameter or body

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unauthorized — authentication is required or the session has expired

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Forbidden — authenticated but lacking the required permission or scope

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Not Found — the requested resource does not exist

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Method Not Allowed — the HTTP verb is not supported on this endpoint

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unsupported Media Type — use application/json

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Internal Server Error — an unexpected failure occurred on the server

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Service Unavailable — a downstream dependency is unreachable

Media typeapplication/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example