Create from supplier
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/static-list/supplier';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/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/static-list/supplier \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullCreate a new list seeded with a supplier item resolved to its best-priced room for the caller’s location.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Create curated list owned by this owner identifier.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”New list metadata together with the supplier identifier whose best-priced room will seed the list
Request to create a new curated list seeded with a supplier resolved to its best-priced inventory.
object
Inventory type of the supplier item to resolve.
Example
GUEST_ROOMName of curated list
Example
Top 3 Hotels in Chiang MaiSupplier identifier to seed the list with.
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Example
{ "channelInventoryType": "GUEST_ROOM", "name": "Top 3 Hotels in Chiang Mai", "supplierIdentifier": "e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18"}Responses
Section titled “Responses”Newly created curated list seeded with the resolved supplier inventory item
Contains both the curated list and all its items.
object
Travel inventory items contained in list
A single travel inventory entry within a curated list, linking a sales channel inventory item to its parent list.
object
Datetime this record was first created
Unique identifier for this record.
Channel inventory
object
Whether this is commissionable or not
Whether this inventory is enabled or not
Channel Inventory identifier
Main image of inventory
object
Media angle
Whether image has attribution properties
object
Name of contributor
URL to contributor
Supported OTA specification PIC code. See OTA geoname data
Localized media captions to give user some context about where this media was taken.
Foundation class for storing multi-language content (names and descriptions) with content change detection throughout the Wink Platform.
object
Whether it was user or system generated.
Longer text description
Indicate which language this description is written in.
The md5 hash of the name, description and language.
Use as title or short text description
Media height in pixels.
Use this identifier to communicate with Cloudinary.
True if media width is greater or equal to height
Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.
Document identifier
Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Sort allows you to control how you want to sort this record in a list of media records.
Currently ONLY using Cloudinary to store all image / video assets.
Whether Cloudinary media is a VIDEO or IMAGE.
Media width in pixels.
Inventory type identifier
Name of inventory as traveler is seeing it
Inventory type
Location
object
Best price of the room type or facility ancillary in platform currency
object
Monetary amount value
ISO 4217 currency code
Best price of the room type or facility ancillary
object
Monetary amount value
ISO 4217 currency code
Level of expensiveness.
Parent sales channel
object
Type of entity that manages, facilitates, or administers properties, bookings, or payments on the Wink Platform
Datetime this record was last updated
Parent list
object
Datetime this record was first created
Unique identifier for this record.
Datetime this record was last updated
Name of curated list
List creator
Every affiliate starts out with a Favorite list. All other lists will be of type NORMAL
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.
Sort key for controlling display order within the list (0-based)
Availability status of this list item; defaults to ACTIVE
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.
Curated list object
object
Datetime this record was first created
Unique identifier for this record.
Datetime this record was last updated
Name of curated list
List creator
Every affiliate starts out with a Favorite list. All other lists will be of type NORMAL
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.
Example
Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable
