Skip to content

Create Supplier Item

POST
/api/managing-entity/{managingEntityIdentifier}/studio/items/supplier
curl --request POST \
--url https://api.wink.travel/api/managing-entity//studio/items/supplier \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "name": "", "customizationIdentifier": "", "descriptions": [ "" ], "keywords": [ "" ], "inventoryType": "HOTEL", "channelInventoryType": "GUEST_ROOM", "supplierIdentifier": "", "multimedias": [ null ], "animate": false, "animateDelay": "", "sort": "MEMBER", "displayType": "NATIVE" }'

Creates a new inventory card for a supplier showing the best priced room.

managingEntityIdentifier
required
string
""

AffiliateAccount identifier to create item for

Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json
object
name
required

Descriptive name of this item for seller use

string
"" >= 1 characters
Example
My fave travel inventory
customizationIdentifier
required

Which configuration to use with this item

string format: uuid
"" >= 1 characters
Example
customization-configuration-1
descriptions
required
Array<object>
>= 1 items <= 2147483647 items

Title and description of inventory.

object
name
required

Use as title or short text description

string
""
Example
An example title
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
Example
This is a longer description in the specified language.
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
Example
en
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
Example
SYSTEM
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
keywords
required
Array<string>
>= 1 items <= 2147483647 items
inventoryType
required

The type of inventory being offer up for sale

string
""
Allowed values: HOTEL GUEST_ROOM MEETING_ROOM RESTAURANT SPA ADD_ON ATTRACTION ACTIVITY PLACE
Example
HOTEL
channelInventoryType
required

Channel inventory type is a subset of inventory type in that it does not include the HOTEL type. THe way it works is, as a seller you might want to sell a guest room but instead of showing the price of that guest room, you would like to display the best room type price for the property.

string
""
Allowed values: GUEST_ROOM ADD_ON MEETING_ROOM RESTAURANT SPA ATTRACTION PLACE ACTIVITY
Example
GUEST_ROOM
supplierIdentifier
required

Supplier / Hotel identifier that owns this inventory.

string format: uuid
"" >= 1 characters
Example
hotel-1
multimedias
required
Array<object>
>= 1 items <= 2147483647 items

Reference identifiers to Cloudinary media assets

object
multimediaIdentifier
required

Document identifier

string format: uuid
"" >= 1 characters
Example
image-1
identifier
required

Use this identifier to communicate with Cloudinary.

string
"" >= 1 characters
Example
cloudinary-image-1
type
required

Whether Cloudinary media is a VIDEO or IMAGE.

string
""
Allowed values: IMAGE VIDEO AUDIO RAW
Example
IMAGE
source
required

Currently ONLY using Cloudinary to store all image / video assets.

string
default: CLOUDINARY
Allowed values: YOUTUBE CLOUDINARY
Example
CLOUDINARY
sort
required

Sort allows you to control how you want to sort this record in a list of media records.

integer format: int32
default: 999
Example
10
angle

Media angle

string
""
Example
-90
width
required

Media width in pixels.

integer format: int32
"" >= 1
Example
2560
height
required

Media height in pixels.

integer format: int32
"" >= 1
Example
1600
published

Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.

boolean
Example
true
category

Supported OTA specification PIC code. See OTA geoname data

string
""
Example
1
descriptions

Localized media captions to give user some context about where this media was taken.

Array<object>
""
object
name
required

Use as title or short text description

string
""
Example
An example title
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
Example
This is a longer description in the specified language.
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
Example
en
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
Example
SYSTEM
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
lifestyleType

Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.

string
""
Allowed values: LIFESTYLE_HEALTH_FITNESS LIFESTYLE_RELAX LIFESTYLE_ADULT_ONLY LIFESTYLE_ADVENTURE LIFESTYLE_BUSINESS LIFESTYLE_LGBT LIFESTYLE_SINGLE_PARENT LIFESTYLE_SOLO_FEMALE LIFESTYLE_BEAUTY LIFESTYLE_FOODIE LIFESTYLE_FAMILY LIFESTYLE_ROMANCE LIFESTYLE_COUPLE LIFESTYLE_SOLO LIFESTYLE_BACKPACKER LIFESTYLE_SHOPPING LIFESTYLE_SPORTS LIFESTYLE_MOUNTAIN LIFESTYLE_BEACH LIFESTYLE_CITY LIFESTYLE_COUNTRY LIFESTYLE_CULTURE LIFESTYLE_ECO
Example
LIFESTYLE_HEALTH_FITNESS
attribution

Whether image has attribution properties

Array<object>
""
object
url

URL to contributor

string
""
Example
https://maps.google.com/maps/contrib/111628493169070103594
name
required

Name of contributor

string
"" >= 1 characters
Example
Samuel Adams
isLandscape

True if media width is greater or equal to height

boolean
Example
true
animate

Create an animated gif instead of a list of images. Feature currently not available. Feel free to enable and it will become available at a later date.

boolean
Example
false
animateDelay

Controls animation delay in milliseconds.

integer format: int32
""
Example
500
sort

The specific badge to display over the image on the Web Component.

string
""
Allowed values: MEMBER PRICE_LOW_TO_HIGH PRICE_HIGH_TO_LOW PRICE POPULARITY ECO EXPERIENCE PERK LOYALTY ADD_ON
Example
POPULARITY
displayType
required

Indicate which initial values to display first on the front-facing card

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
Example
NATIVE

Created

Media type application/json
object
id

Document UUID

string
""
createdDate

Datetime this record was first created

string format: date-time
""
lastUpdate

Datetime this record was last updated

string format: date-time
""
version

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.

integer format: int64
""
ownerIdentifier
required

AffiliateAccount / Owner identifier

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

Descriptive name of this item for seller use

string
"" >= 1 characters
customizationIdentifier
required

Which configuration to use with this item

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

Title and description of inventory.

Array<object>
"" >= 1 items <= 2147483647 items
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
keywords
required
Array<string>
>= 1 items <= 2147483647 items
status
required

Availability status

string
default: ACTIVE
Allowed values: ACTIVE INACTIVE REMOVED
inventoryStatus
required

Url sell status

string
""
Allowed values: ACTIVE INACTIVE REMOVED
inventoryType
required

The type of inventory being offer up for sale

string
""
Allowed values: HOTEL GUEST_ROOM MEETING_ROOM RESTAURANT SPA ADD_ON ATTRACTION ACTIVITY PLACE
channelInventoryType
required

Channel inventory type is a subset of inventory type in that it does not include the HOTEL type. THe way it works is, as a seller you might want to sell a guest room but instead of showing the price of that guest room, you would like to display the best room type price for the property.

string
""
Allowed values: GUEST_ROOM ADD_ON MEETING_ROOM RESTAURANT SPA ATTRACTION PLACE ACTIVITY
supplierIdentifier
required

Supplier / Hotel identifier that owns this inventory.

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

The channel inventory record identifier describing the relationship between supplier and seller.

string format: uuid
"" >= 1 characters
multimedias
required
Array<object>
>= 1 items <= 2147483647 items

Reference identifiers to Cloudinary media assets

object
multimediaIdentifier
required

Document identifier

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

Use this identifier to communicate with Cloudinary.

string
"" >= 1 characters
type
required

Whether Cloudinary media is a VIDEO or IMAGE.

string
""
Allowed values: IMAGE VIDEO AUDIO RAW
source
required

Currently ONLY using Cloudinary to store all image / video assets.

string
default: CLOUDINARY
Allowed values: YOUTUBE CLOUDINARY
sort
required

Sort allows you to control how you want to sort this record in a list of media records.

integer format: int32
default: 999
angle

Media angle

string
""
width
required

Media width in pixels.

integer format: int32
"" >= 1
height
required

Media height in pixels.

integer format: int32
"" >= 1
published

Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.

boolean
category

Supported OTA specification PIC code. See OTA geoname data

string
""
descriptions

Localized media captions to give user some context about where this media was taken.

Array<object>
""
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
lifestyleType

Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.

string
""
Allowed values: LIFESTYLE_HEALTH_FITNESS LIFESTYLE_RELAX LIFESTYLE_ADULT_ONLY LIFESTYLE_ADVENTURE LIFESTYLE_BUSINESS LIFESTYLE_LGBT LIFESTYLE_SINGLE_PARENT LIFESTYLE_SOLO_FEMALE LIFESTYLE_BEAUTY LIFESTYLE_FOODIE LIFESTYLE_FAMILY LIFESTYLE_ROMANCE LIFESTYLE_COUPLE LIFESTYLE_SOLO LIFESTYLE_BACKPACKER LIFESTYLE_SHOPPING LIFESTYLE_SPORTS LIFESTYLE_MOUNTAIN LIFESTYLE_BEACH LIFESTYLE_CITY LIFESTYLE_COUNTRY LIFESTYLE_CULTURE LIFESTYLE_ECO
attribution

Whether image has attribution properties

Array<object>
""
object
url

URL to contributor

string
""
name
required

Name of contributor

string
"" >= 1 characters
isLandscape

True if media width is greater or equal to height

boolean
animate

Create an animated gif instead of a list of images. Feature currently not available. Feel free to enable and it will become available at a later date.

boolean
animateDelay

Controls animation delay in milliseconds.

integer format: int32
""
sort

The specific badge to display over the image on the Web Component.

string
""
Allowed values: MEMBER PRICE_LOW_TO_HIGH PRICE_HIGH_TO_LOW PRICE POPULARITY ECO EXPERIENCE PERK LOYALTY ADD_ON
displayType
required

Indicate which initial values to display first on the front-facing card

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"ownerIdentifier": "",
"name": "",
"customizationIdentifier": "",
"descriptions": "",
"keywords": [
""
],
"status": "ACTIVE",
"inventoryStatus": "ACTIVE",
"inventoryType": "HOTEL",
"channelInventoryType": "GUEST_ROOM",
"supplierIdentifier": "",
"channelInventoryIdentifier": "",
"multimedias": [
""
],
"animate": false,
"animateDelay": "",
"sort": "MEMBER",
"displayType": "NATIVE"
}

Bad Request

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Internal Server Error

object
Example generated
{}