v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Retrieve guest details

This API helps you to retrieve the details of a guest who has previously been created. You must specify the unique identifier of the guest as guest_id in the API request.This API also allows guests to view the details of another guest, provided they have a relationship defined in Zenoti. Also, only a host guest token can view another guest's details.

get/v1/guests/{guest_id}

Path parameters

guest_idstring required

Mandatory Unique 32-character identifier of the guest.

Request body

raw_bodystring json

Response

200

OR
OR
OR
OR
OR
OR
OR
OR

Example response

{
  "id": "0b1c4a20-02f8-4e91-9adf-c0e9480b5938",
  "code": "ELU23722",
  "center_id": "d1fb6a44-0d35-4992-aa96-24b58cd79369",
  "center_name": "Eluru",
  "created_date": "2022-10-03T10:23:55",
  "can_edit_personal_info": true,
  "personal_info": {
    "user_name": "vasily@ignatenko.com",
    "first_name": "vasily",
    "last_name": "ignatenko",
    "email": "vasily@ignatenko.com",
    "mobile_phone": {
      "country_code": 225,
      "number": "120126659"
    },
    "gender": 1,
    "date_of_birth": "2000-01-23T00:00:00",
    "nationality_id": -1,
    "language_id": 2
  },
  "address_info": {
    "country_id": 225,
    "state_id": -1,
    "zip_code": "12345"
  },
  "preferences": {
    "receive_transactional_email": true,
    "receive_transactional_sms": true,
    "receive_marketing_email": true,
    "receive_marketing_sms": true,
    "opt_in_for_loyalty_program": true,
    "transactional_sms_optin": 1,
    "transactional_email_optin": 1,
    "marketing_sms_optin": 1,
    "marketing_email_optin": 1
  }
}