Class Service


Click here for a complete list of operations.

GetEnrollments

Gets a list of enrollments.

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/GetEnrollments"

<?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>
    <GetEnrollments xmlns="http://clients.mindbodyonline.com/api/0_5">
      <Request>
        <LocationIDs>
          <int>int</int>
          <int>int</int>
        </LocationIDs>
        <ClassScheduleIDs>
          <int>int</int>
          <int>int</int>
        </ClassScheduleIDs>
        <StaffIDs>
          <long>long</long>
          <long>long</long>
        </StaffIDs>
        <ProgramIDs>
          <int>int</int>
          <int>int</int>
        </ProgramIDs>
        <SessionTypeIDs>
          <int>int</int>
          <int>int</int>
        </SessionTypeIDs>
        <SemesterIDs>
          <int>int</int>
          <int>int</int>
        </SemesterIDs>
        <CourseIDs>
          <long>long</long>
          <long>long</long>
        </CourseIDs>
        <StartDate>dateTime</StartDate>
        <EndDate>dateTime</EndDate>
      </Request>
    </GetEnrollments>
  </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>
    <GetEnrollmentsResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
      <GetEnrollmentsResult>
        <Enrollments>
          <ClassSchedule>
            <Classes xsi:nil="true" />
            <Clients xsi:nil="true" />
            <Course xsi:nil="true" />
            <SemesterID>int</SemesterID>
            <IsAvailable>boolean</IsAvailable>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <ClassDescription xsi:nil="true" />
            <DaySunday>boolean</DaySunday>
            <DayMonday>boolean</DayMonday>
            <DayTuesday>boolean</DayTuesday>
            <DayWednesday>boolean</DayWednesday>
            <DayThursday>boolean</DayThursday>
            <DayFriday>boolean</DayFriday>
            <DaySaturday>boolean</DaySaturday>
            <AllowOpenEnrollment>boolean</AllowOpenEnrollment>
            <AllowDateForwardEnrollment>boolean</AllowDateForwardEnrollment>
            <StartTime>dateTime</StartTime>
            <EndTime>dateTime</EndTime>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <Staff xsi:nil="true" />
            <Location xsi:nil="true" />
          </ClassSchedule>
          <ClassSchedule>
            <Classes xsi:nil="true" />
            <Clients xsi:nil="true" />
            <Course xsi:nil="true" />
            <SemesterID>int</SemesterID>
            <IsAvailable>boolean</IsAvailable>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <ClassDescription xsi:nil="true" />
            <DaySunday>boolean</DaySunday>
            <DayMonday>boolean</DayMonday>
            <DayTuesday>boolean</DayTuesday>
            <DayWednesday>boolean</DayWednesday>
            <DayThursday>boolean</DayThursday>
            <DayFriday>boolean</DayFriday>
            <DaySaturday>boolean</DaySaturday>
            <AllowOpenEnrollment>boolean</AllowOpenEnrollment>
            <AllowDateForwardEnrollment>boolean</AllowDateForwardEnrollment>
            <StartTime>dateTime</StartTime>
            <EndTime>dateTime</EndTime>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <Staff xsi:nil="true" />
            <Location xsi:nil="true" />
          </ClassSchedule>
        </Enrollments>
      </GetEnrollmentsResult>
    </GetEnrollmentsResponse>
  </soap:Body>
</soap:Envelope>