Register External ID Mapping
const url = 'https://api.wink.travel/api/property-embeddings/external/mappings';const options = { method: 'POST', headers: {'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/property-embeddings/external/mappings \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullRegister a mapping from a partner external ID to a property. Requires a well-known identifier (hotelCode, urlName, or placeId) for bootstrap.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Register a mapping from a partner external ID to a property
object
Well-known namespace for bootstrap resolution (HOTEL_CODE, URL_NAME, or PLACE_ID)
Well-known identifier value
Example
IN00011Partner’s own identifier for this property
Example
BKG-12345Responses
Section titled “ Responses ”Created
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
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.
Internal hotel identifier in the property_embeddings vector store
Partner namespace (e.g. ‘booking.com’, ‘expedia’, ‘tripadvisor’)
The partner’s identifier for this property within their namespace
OAuth2 application identifier of the partner that registered this mapping
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelId": "", "namespace": "", "externalId": "", "ownerIdentifier": ""}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
{}