Skip to content

Get User Appointments

Request

The JSON Object containing the user appointment parameters has the following fields:

FieldTypeMandatoryDescription
idnumberYESAppointment ID
servicesarray of numbersYESList of ID service appointments
locationobjectYESlocation parameters
staffobjectYESParameters of the team member who was booked. Note: "staff" is a legacy field name for team member.
clients_countintYESNumber of clients
datestringYESSession date
datetimestringYESSession date in ISO
create_datestringYESAppointment creation date
lengthnumberYESSession duration
deletedbooleanYESHas the appointment been created ? (true if deleted)
notify_by_smsnumberNONumber of hours in advance to send an SMS reminder for the appointment. Set to 0 to disable SMS reminders
notify_by_emailnumberNONumber of hours in advance to send an email reminder for the appointment. Set to 0 to disable email reminders
commentstringYESAppointment Comment
master_requestedbooleanYESWhether a specific team member was specified when appointment (false if "any team member" was specified)
onlinebooleanYESIndicates whether the appointment was created online by the client (true) or manually by an administrator (false)
visit_attendancenumberYES2 - The user confirmed the appointment, 1 - The user came, the services were provided, 0 - the user was waiting, -1 - the user did not come to visit
api_idstringNOExternal Appointment ID
last_change_datestringNODate of the last edit of the appointment
prepaidbooleanNOIs online payment available for appointment
prepaid_confirmedbooleanNOOnline payment status
last_change_datestringNODate of the last edit of the appointment
activity_idintNOEvent ID (for group events)

Each object in the services array has the following fields:

FieldTypeDescription
idnumberService ID
titlestringService name
costfloatService cost
price_minfloatMinimum price of the service
price_maxfloatMaximum service price
discountfloatDiscount
amountintNumber of ordered services
session_lengthintService duration in seconds (only if filter by team member is set)

The location object has the following fields:

FieldTypeDescription
idnumberlocation ID
titlestringlocation name
country_idnumberIdentifier of the country in which the location is located
countrystringlocation name
city_idnumberIdentifier of the city where the location is located)
citystringlocation city name
time zonestringtimezone locations
addressstringAddress where the location is located
phonestringlocation's main phone number
phonesarray of stringsAll phone numbers of the location
coordinate_latfloatLatitude where the location is located
coordinate lngfloatLongitude
allow_delete_recordbooleanIs it possible to delete an appointment
allow_change_recordbooleanIs it possible to reschedule the appointment
sitestringlocation website
currency_short_titlestringCurrency symbol
allow_change_record_delay_stepintTime after which you can reschedule the appointment
allow_delete_record_delay_stepintTime after which you can delete an appointment

The team member object has the following fields:

FieldTypeDescription
idnumberteam member ID
namestringteam member name
specializationstringteam member specialization
positionobjectteam member position
show_ratingnumberWhether to show team member's rating (1 - show, 0 - don't show)
ratingnumberteam member rating
votes_countnumberNumber of votes rated team member
comments_countnumberNumber of comments to a team member
avatarstringPath to team member avatar file
Security
BearerPartner
Path
record_idnumberrequired

Appointment ID

Example:22123
record_hashstringrequired

HASH of the appointment

Example:'dawd4fs09rhf0s9fafef0'
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/public/openapi/user/records/22123/'\''dawd4fs09rhf0s9fafef0'\''' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: string'

Responses

Created

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of objects

Example:
[ { "id": 13132699, "services": [], "company": {}, "staff": {}, "clients_count": 1, "date": "2026-09-21T23:00:00.000-05:00", "datetime": "2026-10-24T17:30:00-0500", "create_date": "2026-10-20T21:40:24-0500", "comment": "", "deleted": true, "attendance": 0, "length": 1800, "notify_by_sms": 0, "notify_by_email": 0, "master_requested": false, "online": true, "api_id": "", "last_change_date": "2026-10-24T23:54:02-0500", "prepaid": false, "prepaid_confirmed": false, "activity_id": 0 }, { "id": 13133413, "services": [], "company": {}, "staff": {}, "clients_count": 1, "date": "2026-09-21T23:00:00.000-05:00", "datetime": "2026-10-24T17:30:00-0500", "create_date": "2026-10-20T21:40:24-0500", "comment": "", "deleted": true, "attendance": 0, "length": 1800, "notify_by_sms": 0, "notify_by_email": 0, "master_requested": false, "online": true, "api_id": "", "last_change_date": "2026-10-24T23:54:02-0500", "prepaid": false, "prepaid_confirmed": false, "activity_id": 0 } ]
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ {}, {} ], "meta": [] }