get https://api.zenoti.com/Appointments/Sessions?UserId=&StartDate=&EndDate=&CenterId=&sorters[0].Property=&sorters[0].Ascending=
This API helps you to retrieve the list of class sessions for which the specified guest has registered.
You must provide the appropriate details in the API request for the user_id parameter. Optionally, you can also specify the required details in the API request for several other parameters to filter the search results in the API response. Refer to the Request Parameters table for more information.
Response Details
Name | Type | Description |
---|---|---|
success | boolean | Indicates whether the class session registrations of the specified guest was successfully retrieved. |
results | object | Object that contains detailed information on the class sessions for which the guest has registered. For more information, refer to the results Object table. |
total | int | Total number of class sessions for which the guest has registered. |
Error | object | Object that contains error message and error code details. For more information, refer to the Error Object table. |
results Object
Name | Type | Description |
---|---|---|
Id | int | Unique ID of the class session registration. |
StartTime | datetime | Starting time of the booked session. |
EndTime | datetime | Ending time of the booked session. |
RegistrationStatus | enum | Indicates the status of the registration for the class session: Registered = 0, Cancelled = 1, NoShow = 2, SignedIn = 3, Waitlisted = 4, Substituted = 5, ClassCancelled = 6, Closed = 7, Enrolled = 8, Rejected = 9. |
SessionStatus | enum | Indicates the status of the class session: Active = 0, Cancelled = 1, Upcoming = 2, Inprogress = 3, and Completed = 4. |
InstructorId | guid | Unique 32-character identifier of the instructor who will perform the class session. |
Instructor | string | Name of the instructor. |
ImagePaths | dictionary? | Name-value pairs of images that contain pixel sizes and location respectively. |
Center | string | Name of the center at which the guest has registered for the session. |
CancellationFeeWindow | int | Number of days within which the guest must pay the cancellation fee for the class. |
CancellationFee | double | Cancellation fee that the guest must pay for the class. |
ClassName | string? | Name of the class. |
ClassDescription | string? | Description of the class. |
ClassHtmlDescription | string? | Description of the class in HTML. |
SessionDescription | string? | Description of the registered session. |
SessionHtmlDescription | string? | Description of the registered session in HTML. |
CanCancel | boolean | Indicates whether the guest can cancel the booked session. |
ClassImagePaths | dictionary? | Name-value pairs of class images that contain pixel sizes and location respectively. |
CurrentWaitlistPosition | int | Current position of the guest on the waiting list for the class session. |
Error Object
code | message |
---|---|
502 - InvalidInput | The UserId passed is not of the logged-in guest. |
404 - Not Found | Something went wrong. |
502 - InvalidInput | Currently more than one sorter is not supported. |
502 - InvalidInput | Currently only StartDate is supported as sorter. |
*** | The date range cannot be more than a month, getting registrations for a month. |