Update details of a guest

Use this API to update the details of a guest.

To update the details of a guest, modify the expanded guest object and supply it to this API. In return, you will recieve the modified guest object.

Note: You must send all the fields obtained from the Retrieve guest details API, even if you want to change the details of only one field.

This API also allows guests to update another guest details provided they have a relationship defined in Zenoti. Also, only a host guest token can make changes to another guest.

Response Details

NameTypeDescription
center_idguidUnique 32-character identifier of the center.
idstringUnique identifier of the guest.
preferred_service_idstringIdentifier of the guest's preferred service.
center_namestringName of the guest's primary center.
created_datedatetimeDate when the guest record was created.
can_edit_personal_infoboolDenotes if the personal info of the guest is editable.
is_virtual_guestboolDenotes if the guest is a virtual guest.
guest_typestringType of the guest.
is_guest_custom_form_filledboolDenotes if the guest's custom form is filled.
personal_infoobjectObject that contains the guest's personal information elements. For more information, refer to the personal_info Object table.
codestringUser code of the guest.
address_infoobjectObject that contains the guest's address information elements. For more information, refer to the address_info Object table.
preferencesobjectObject that contains the guest's preferences-related elements. For more information, refer to the preferences Object table.
tagsstringAny tags associated with the guest.
referralobjectObject that contains the guest's referral-related elements.
primary_employeeobjectObject that contains the elements of the primary employee who created the guest.

personal_info Object

NameTypeDescription
user_namestringUser name of the guest.
first_namestringFirst name of the guest.
last_namestringLast name of the guest.
middle_namestringMiddle name of the guest.
emailstringEmail ID of the guest.
mobile_phoneobjectObject that contains the guest's mobile phone-related elements: country_code and number.
Note: Here, country_code is the code of the country. For example, if you specify the country_code as 225 (for the United States of America), +1 will be updated in the UI as the United States of America's phone code.
You can use the Retrieve the list of all countries API to fetch country codes (id) and each country's corresponding phone code (phone_code).
work_phoneobjectObject that contains the guest's work phone-related elements: country_code and number.
Note: Here, country_code is the code of the country. For example, if you specify the country_code as 225 (for the United States of America), +1 will be updated in the UI as the United States of America's phone code.
You can use the Retrieve the list of all countries API to fetch country codes (id) and each country's corresponding phone code (phone_code).
home_phoneobjectObject that contains the guest's work phone-related elements: country_code and number.
Note: Here, country_code is the code of the country. For example, if you specify the country_code as 225 (for the United States of America), +1 will be updated in the UI as the United States of America's phone code.
You can use the Retrieve the list of all countries API to fetch country codes (id) and each country's corresponding phone code (phone_code).
genderenumIndicates the gender of the guest: NotSpecified - -1, Male - 1, Female - 0, and Other - 3.
date_of_birthdatetimeDate of birth of the guest.
is_minorbooleanIndicates whether the guest is a minor.
nationality_idintID of the country to which the guest belongs. For example, the nationality_id of the United States of America is 225.
You can use the Retrieve the list of all countries API to fetch country codes (id) and each country's corresponding phone code (phone_code).
anniversary_datedatetimeAnniversary date of the guest.
lock_guest_custom_databooleanIndicates whether the guest's custom data is to be locked.
panstringPermanent account number (PAN) details of the guest.
Note: This parameter is valid only for guests from India.
language_idintChosen language of the guest.
dob_incomplete_yearstringDate of birth of the guest.

address_info Object

NameTypeDescription
address_1stringPrimary address of the guest.
address_2stringSecondary address of the guest.
citystringCity to which the guest belongs.
country_idintID of the country to which the guest belongs. For example, the country_id of the United States of America is 225.
You can use the Retrieve the list of all countries API to fetch country codes (id) and each country's corresponding phone code (phone_code).
state_idintID of the state to which the guest belongs.
For more information on how to fetch the state IDs of a specific country, refer to the Retrieve the list of all states of a country API.
state_otherstringAlternative state to which the guest belongs.
zip_codestringZip code of the guest's address.

preferences Object

NameTypeDescription
receive_transactional_emailbooleanIndicates whether the guest wants to receive transactional emails.
receive_transactional_smsbooleanIndicates whether the guest wants to receive transactional SMSs.
receive_marketing_emailbooleanIndicates whether the guest wants to receive marketing emails.
receive_marketing_smsbooleanIndicates whether the guest wants to receive marketing SMSs.
recieve_lp_stmtbooleanIndicates whether the guest wants to receive loyalty points statements.
preferred_therapistobjectObject that contains the guest's preferred therapist details: id and name.
opt_in_for_loyalty_programbool(optional) Denotes if the guest as opted in for the loyalty program of your business.
lp_enrollment_statusbool(optional) Denotes the loyalty points enrolment status of the guest.
email_stateint(optional) State of the guest's email address. Active or Inactive.
transactional_sms_optinint(optional) Guest's opt in status for the transactional SMS notifications.
transactional_email_optinint(optional) Guest's opt in status of the transactional email notifications.
marketing_sms_optinint(optional) Guest's opt in status for the marketing SMS notifications.
marketing_email_optinint(optional) Guest's opt in status of the marketing email notifications.
transactional_whatsapp_optinint(optional) Guest's opt in status of the whatsapp notifications.
receive_transactional_whatsappbool(optional) Denotes if the Receive Transactional Text Messages (WhatsApp) setting is enabled for the guest or not.
Language
Credentials
Header
Click Try It! to start a request and see the response here!