ClubReady Api

<back to all web services

BookingStatusEventsRequest

The following routes are available for this service:
GET/scheduling/booking-status-eventsList of booking status changes in a time frame.
BookingStatusEventsRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyquerystringYesApi Key - grants access to resources
ChainIdqueryintegerNoChain ID
StoreIdqueryintegerNoStore ID
FromDatequerydateYesUTC Format
ToDatequerydateYesMax 24 Hours (UTC Format)
BookingTypeFilterqueryintegerYes0 = All, 1 = Classes, 2 = Services
ConsultFilterqueryintegerYes0 = Any, 1 = Only Consults, 2 = Exclude Consults
StatusFilterqueryintegerNoLeave blank for any, otherwise use ClubReady BookingStatus enum
RestrictedIdqueryint?No
RestrictedResourceTypequeryRestrictedResourceTypeNo
BookingStatusEventsRequestDto Parameters:
NameParameterData TypeRequiredDescription
FromDateformDateTimeNo
ToDateformDateTimeNo
BookingTypeFilterformintNo
ConsultFilterformintNo
StatusFilterformint?No
ApiDtoBase Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
StoreIdformint?No
ChainIdformint?No
RestrictedResourceType Enum:
Store
Chain
User
Undefined
BookingStatusEventsResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
MessageformstringNo
BookingStatusEventsformList<BookingStatusEventItem>No
BookingStatusEventsResponseDto Parameters:
NameParameterData TypeRequiredDescription
BookingStatusEventsformList<BookingStatusEventItem>No
ApiResponseBase Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
MessageformstringNo
BookingStatusEventItem Parameters:
NameParameterData TypeRequiredDescription
ChainIdformint?No
StoreIdformint?No
UserIdformintNo
BookingIdformintNo
ClassScheduleIdformint?No
ServiceIdformint?No
SessionSizeIdformint?No
BookingDateTimeformDateTimeNo
StatusformBookingStatusNo
StatusIdformintNo
StatusChangedformDateTimeNo
ConsultformboolNo
BookedFromWaitListformboolNo
BookingStatus Enum:
NameValue
Undefined0Undefined
Unavailable1Unavailable Periods - Not Bookings
Open2Open Booking - Not Yet Logged
CancelledWithinPolicy3Cancelled Within Policy Rules - No Session Credit Lost
CancelledOutsidePolicy4Cancelled Outside Policy Rules - Session Lost
Completed5Completed Booking
NoShow6No Show Booking
RescheduledWithinPolicy8Rescheduled Within Policy Rules - No Session Credit Lost
RescheduledByAdmin9Rescheduled By Admin - Session Lost
CancelledByAdminNotCustomerFault10Cancelled By Admin - Not Customer Fault - No Session Credit Lost
Pending11Pending
WaitListed12WaitListed
Error-1Error

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /scheduling/booking-status-events HTTP/1.1 
Host: clubready.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BookingStatusEventsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Web.Api.Scheduling.Model">
  <Message xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">String</Message>
  <Success xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">false</Success>
  <BookingStatusEvents xmlns:d2p1="http://schemas.datacontract.org/2004/07/ClubReady.Core.Scheduling.Models" xmlns="http://schemas.datacontract.org/2004/07/ClubReady.Core.Api.Models">
    <d2p1:BookingStatusEventItem>
      <d2p1:BookedFromWaitList>false</d2p1:BookedFromWaitList>
      <d2p1:BookingDateTime>0001-01-01T00:00:00</d2p1:BookingDateTime>
      <d2p1:BookingId>0</d2p1:BookingId>
      <d2p1:ChainId>0</d2p1:ChainId>
      <d2p1:ClassScheduleId>0</d2p1:ClassScheduleId>
      <d2p1:Consult>false</d2p1:Consult>
      <d2p1:ServiceId>0</d2p1:ServiceId>
      <d2p1:SessionSizeId>0</d2p1:SessionSizeId>
      <d2p1:Status>Undefined</d2p1:Status>
      <d2p1:StatusChanged>0001-01-01T00:00:00</d2p1:StatusChanged>
      <d2p1:StatusId>0</d2p1:StatusId>
      <d2p1:StoreId>0</d2p1:StoreId>
      <d2p1:UserId>0</d2p1:UserId>
    </d2p1:BookingStatusEventItem>
  </BookingStatusEvents>
</BookingStatusEventsResponse>