Show Shareable Link
const url = 'https://api.wink.travel/api/public/shareable-link/?cid=&_gl=';const options = { method: 'POST', headers: { 'User-Agent': '', Host: '', Referer: '', '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/public/shareable-link/?cid=&_gl=' \ --header 'Content-Type: application/json' \ --header 'Host: ' \ --header 'Referer: ' \ --header 'User-Agent: ' \ --header 'Wink-Version: 2.0' \ --data nullRetrieve link with a user session
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique link code
Header Parameters
Section titled “Header Parameters ”User-Agent header.
Host header.
Referrer header.
Query Parameters
Section titled “Query Parameters ”Optional campaignId
Optional GA4 cross link ID
Request Body required
Section titled “Request Body required ”User session information containing itinerary and other user related data.
object
Dates and travel info.
object
Start date of itinerary
Example
2024-01-01Optional end date. If endDate is empty, nights needs to be present. If both are present, nights will take precedence.
Example
2024-01-02Optional number of nights. If nights is empty, endDate needs to be present. If both are present, nights will take precedence.
Room configurations
Room Configuration
object
Number of adults
Example
2Children configurations
BookingItineraryRoomConfigurationChild configuration
object
Number of children
Age of children
Number of identical rooms of this configuration being booked
Example
1Number of hours between start and end dates. Used for itineraries that require bookings that occur within hours and not days. E.g. Meeting room reservation.
How many total children for this stay
How many total rooms for this stay
How many total guests for this stay
User’s language preference
Example
enUser’s currency preference
Example
USDUser can pass the current room configuration index to retrieve rates specifically for that room configuration.
The preferred user lifestyle.
Responses
Section titled “ Responses ”OK
object
The type of document the uniqueId links to
Which language the seller wanted to use
Which currency the seller is using
Link title
Link description
Comma-separated keyword values that can be used to populate HTML metadata
The URL ID that uniquely represents this link
Optional X account ID
Optional Facebook app ID
Optional 3rd party GA4 Measurement ID
Optional 3rd party GTM Container ID
The image you want to accompany this link
object
The video you want to accompany this link
object
The transation url, or where to redirect to when clicking the CTA button.
Example
{ "type": "SELLABLE_INVENTORY_SLUG", "language": "en", "currency": "USD", "title": "", "description": "", "keywords": "", "uniqueId": "", "twitterAccount": "", "facebookAppId": "", "thirdPartyGoogleMeasurementId": "", "thirdPartyGoogleTagManagerContainerId": "", "image": "", "video": "", "transactUrl": ""}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
{}