List My Mappings
GET
/api/property-embeddings/external/mappings
const url = 'https://api.wink.travel/api/property-embeddings/external/mappings';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/property-embeddings/external/mappings \ --header 'Wink-Version: 2.0'List all external ID mappings owned by the calling application.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
Array<object>
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
hotelId
Internal hotel identifier in the property_embeddings vector store
string
namespace
Partner namespace (e.g. ‘booking.com’, ‘expedia’, ‘tripadvisor’)
string
externalId
The partner’s identifier for this property within their namespace
string
ownerIdentifier
OAuth2 application identifier of the partner that registered this mapping
string
Example
[ { "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelId": "", "namespace": "", "externalId": "", "ownerIdentifier": "" }]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" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
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
{}