This topic discusses all the possible scenarios supported by the Contacts API.
Let's take the following as an example: Your property has one primary point of contact (Sarah) and a secondary contact (John) to handle everything else. Note you must create a contact of type General at a minimum.
Use the PUT contacts-api endpoint to create the contact types:
- Send Sarah's contact information as
Generalcontact type. - Send John's contact information as details for all relevant contact types.
For more information, see creating contact details.
Let's take the following as an example: John has left and Jane replaced her. The property wants to update all contacts where John was the contact.
Use the PUT contacts-api endpoint to update John's contact information with Jane's:
- Include Sarah's
Generalcontact details again. - Send Jane's contact information for all other contact types.
For more information on how to update contact details, see updating contact details.
Let's take the following as an example: Paul joined as reservations manager. The property wants to add Paul as reservations contact replacing Jane
Use the PUT contacts-api endpoint to update Jane's contact information with Paul's:
- Send all contact details again, replacing only the
reservationscontact type details with Paul’s information.
For more information on how to update contact details, see updating contact details.
Let's take the following as an example: Let's say the property did not have a contact for the special requests contact type. But now that Clare has joined the company in the customer experience manager role, the property wants to create a new contact for special requests.
Use the PUT contacts-api endpoint to create an additional contact type:
- Send all contacts again with Clare’s information as
requestscontact.
For more information on how to update contact details, see updating contact details.
Let's take the following as an example: The business is growing and Peter has joined as a second reservations manager. The property wants to add another reservations contact.
Use the PUT contacts-api endpoint to create an additional contact type:
- Send all contacts again including Paul’s details as reservation contact but add Peter’s details also as a second reservations contact.
{
"contacts": [
{
"contact_profiles": [
{
"type": "reservations"
}
]
... Paul’s details
},
{
"contact_profiles": [
{
"type": "reservations"
}
]
... Peter’s details
}
]
}
→ To create and manage contact details, see Managing contact details.
→ To troubleshoot Contacts API error responses, see Troubleshooting Contacts API error responses.