Contacts API
/- Overlay multiple Contacts for a Property
Read all Contact(s) for a Property
Overlay multiple Contacts...
Contacts not sent will be reset/deleted.
Security
bearerAuth
General contact type is mandatory for setting up the property. Validation: ContactProfileType entries cannot be repeated within the same array. General contact can have only 1 entry in total. Current Documentation: ContactInfo Root Object
- Mock (schema only)https://developers.booking.com/_mock/connectivity/docs/openapispecs/contacts-api/contacts-api-specification/properties/{propertyId}/contacts
- Test using live endpointhttps://supply-xml.booking.com/contacts-api/properties/{propertyId}/contacts
Sends every contact to keep, including the required general contact. Contacts you omit are deleted.
curl -i -X PUT \
'https://developers.booking.com/_mock/connectivity/docs/openapispecs/contacts-api/contacts-api-specification/properties/{propertyId}/contacts' \
-H 'Accept-Version: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"contacts": [
{
"contact_profiles": [
{
"type": "reservations"
}
],
"address": {
"city_name": "Amsterdam",
"country_code": "NL",
"postal_code": "1011 DL",
"address_line": "New Straat 123",
"language_code": "en-gb"
},
"contact_person": {
"gender": "male",
"name": "Bensen Jill",
"job_title": "Administration Employee",
"language_code": "en-gb"
},
"phones": [
{
"phone_number": "+31626666611",
"phone_tech_type": 1,
"extension": "1"
}
],
"email": "tests2@booking.com"
},
{
"contact_profiles": [
{
"type": "invoices"
}
],
"address": {
"city_name": "Amsterdam",
"country_code": "NL",
"postal_code": "1011 DL",
"address_line": "New Straat 123",
"language_code": "en-gb"
},
"contact_person": {
"gender": "female",
"name": "Lucy Gilean",
"job_title": "Administration Employee",
"language_code": "en-gb"
},
"phones": [
{
"phone_number": "+31626666611",
"phone_tech_type": 1,
"extension": "1"
}
],
"email": "tests@booking.com"
},
{
"contact_profiles": [
{
"type": "general"
}
],
"address": {
"city_name": "Amsterdam",
"country_code": "NL",
"postal_code": "1011 DL",
"address_line": "New Straat 123",
"language_code": "en-gb"
},
"contact_person": {
"gender": "male",
"name": "Kevin Mcmartin",
"job_title": "General Manager",
"language_code": "en-gb"
},
"phones": [
{
"phone_number": "+31626666611",
"phone_tech_type": 1,
"extension": "1"
}
],
"email": "tests@booking.com"
},
{
"contact_profiles": [
{
"type": "parity"
}
],
"address": {
"city_name": "Amsterdam",
"country_code": "NL",
"postal_code": "1011 DL",
"address_line": "New Straat 123",
"language_code": "en-gb"
},
"contact_person": {
"gender": "female",
"name": "Waddington Hommes",
"job_title": "Administration Employee",
"language_code": "en-gb"
},
"phones": [
{
"phone_number": "+31626666611",
"phone_tech_type": 1,
"extension": "1"
}
],
"email": "tests1@booking.com"
},
{
"contact_profiles": [
{
"type": "availability"
}
],
"address": {
"city_name": "Amsterdam",
"country_code": "NL",
"postal_code": "1011 DL",
"address_line": "New Straat 123",
"language_code": "en-gb"
},
"contact_person": {
"gender": "female",
"name": "Lieke Bol",
"job_title": "Reservations Employee",
"language_code": "en-gb"
},
"phones": [
{
"phone_number": "+31626666611",
"phone_tech_type": 1,
"extension": "1"
}
],
"email": "tests3@booking.com"
}
]
}'