Skip to content

Register external ID mapping

POST
/api/property-embeddings/external/mappings
curl --request POST \
--url https://api.wink.travel/api/property-embeddings/external/mappings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Links a partner’s own external identifier to a Wink property, bootstrapped from a well-known identifier (HOTEL_CODE, URL_NAME, or PLACE_ID). After registration, the partner can use their externalId in all query and contribution operations.

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

Register a mapping from a partner external ID to a property, bootstrapped from a well-known identifier

object
bootstrapNamespace
required

Well-known namespace for bootstrap resolution (must be HOTEL_CODE, URL_NAME, or PLACE_ID; not PARTNER)

string
""
Allowed values: HOTEL_CODE URL_NAME PLACE_ID PARTNER
Example
HOTEL_CODE
bootstrapId
required

Well-known identifier value in the bootstrap namespace

string
"" >= 1 characters
Example
TH00042
externalId
required

Partner’s own identifier for this property (internal to partner’s system)

string
"" >= 1 characters
Example
BOOKING-987654

Mapping registered successfully; returns the PropertyExternalIdMapping document

Media type application/json
object
id

Document UUID

string format: uuid
""
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 (always PARTNER for externally registered mappings)

string
""
externalId

The partner’s identifier for this property within their namespace

string
""
ownerIdentifier

OAuth2 application (client) identifier of the partner that registered this mapping

string
""
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"hotelId": "",
"namespace": "",
"externalId": "",
"ownerIdentifier": ""
}

Invalid request (bootstrapNamespace must not be PARTNER)

Missing or invalid JWT authentication

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

Property not found for the given bootstrapNamespace and bootstrapId

Media type application/json
object
id

Document UUID

string format: uuid
""
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 (always PARTNER for externally registered mappings)

string
""
externalId

The partner’s identifier for this property within their namespace

string
""
ownerIdentifier

OAuth2 application (client) identifier of the partner that registered this mapping

string
""
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"hotelId": "",
"namespace": "",
"externalId": "",
"ownerIdentifier": ""
}

Mapping for this externalId already exists

Media type application/json
object
id

Document UUID

string format: uuid
""
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 (always PARTNER for externally registered mappings)

string
""
externalId

The partner’s identifier for this property within their namespace

string
""
ownerIdentifier

OAuth2 application (client) identifier of the partner that registered this mapping

string
""
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"hotelId": "",
"namespace": "",
"externalId": "",
"ownerIdentifier": ""
}

Internal Server Error

object
Example generated
{}