Class Service


Click here for a complete list of operations.

GetClasses

Gets a list of classes.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /0_5/ClassService.asmx HTTP/1.1
Host: api.mindbodyonline.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://clients.mindbodyonline.com/api/0_5/GetClasses"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetClasses xmlns="http://clients.mindbodyonline.com/api/0_5">
      <Request>
        <ClassDescriptionIDs>
          <int>int</int>
          <int>int</int>
        </ClassDescriptionIDs>
        <ClassIDs>
          <int>int</int>
          <int>int</int>
        </ClassIDs>
        <StaffIDs>
          <long>long</long>
          <long>long</long>
        </StaffIDs>
        <StartDateTime>dateTime</StartDateTime>
        <EndDateTime>dateTime</EndDateTime>
        <ClientID>string</ClientID>
        <ProgramIDs>
          <int>int</int>
          <int>int</int>
        </ProgramIDs>
        <SessionTypeIDs>
          <int>int</int>
          <int>int</int>
        </SessionTypeIDs>
        <LocationIDs>
          <int>int</int>
          <int>int</int>
        </LocationIDs>
        <SemesterIDs>
          <int>int</int>
          <int>int</int>
        </SemesterIDs>
        <HideCanceledClasses>boolean</HideCanceledClasses>
        <SchedulingWindow>boolean</SchedulingWindow>
      </Request>
    </GetClasses>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetClassesResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
      <GetClassesResult>
        <Classes>
          <Class>
            <ClassScheduleID>int</ClassScheduleID>
            <Visits xsi:nil="true" />
            <Clients xsi:nil="true" />
            <Location xsi:nil="true" />
            <Resource xsi:nil="true" />
            <MaxCapacity>int</MaxCapacity>
            <WebCapacity>int</WebCapacity>
            <TotalBooked>int</TotalBooked>
            <TotalBookedWaitlist>int</TotalBookedWaitlist>
            <WebBooked>int</WebBooked>
            <SemesterID>int</SemesterID>
            <IsCanceled>boolean</IsCanceled>
            <Substitute>boolean</Substitute>
            <Active>boolean</Active>
            <IsWaitlistAvailable>boolean</IsWaitlistAvailable>
            <IsEnrolled>boolean</IsEnrolled>
            <HideCancel>boolean</HideCancel>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <IsAvailable>boolean</IsAvailable>
            <StartDateTime>dateTime</StartDateTime>
            <EndDateTime>dateTime</EndDateTime>
            <ClassDescription xsi:nil="true" />
            <Staff xsi:nil="true" />
          </Class>
          <Class>
            <ClassScheduleID>int</ClassScheduleID>
            <Visits xsi:nil="true" />
            <Clients xsi:nil="true" />
            <Location xsi:nil="true" />
            <Resource xsi:nil="true" />
            <MaxCapacity>int</MaxCapacity>
            <WebCapacity>int</WebCapacity>
            <TotalBooked>int</TotalBooked>
            <TotalBookedWaitlist>int</TotalBookedWaitlist>
            <WebBooked>int</WebBooked>
            <SemesterID>int</SemesterID>
            <IsCanceled>boolean</IsCanceled>
            <Substitute>boolean</Substitute>
            <Active>boolean</Active>
            <IsWaitlistAvailable>boolean</IsWaitlistAvailable>
            <IsEnrolled>boolean</IsEnrolled>
            <HideCancel>boolean</HideCancel>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <IsAvailable>boolean</IsAvailable>
            <StartDateTime>dateTime</StartDateTime>
            <EndDateTime>dateTime</EndDateTime>
            <ClassDescription xsi:nil="true" />
            <Staff xsi:nil="true" />
          </Class>
        </Classes>
      </GetClassesResult>
    </GetClassesResponse>
  </soap:Body>
</soap:Envelope>