Class Service


Click here for a complete list of operations.

GetClassVisits

Gets a class with a list of clients.

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

<?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>
    <GetClassVisits xmlns="http://clients.mindbodyonline.com/api/0_5">
      <Request>
        <ClassID>int</ClassID>
      </Request>
    </GetClassVisits>
  </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>
    <GetClassVisitsResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
      <GetClassVisitsResult>
        <Class>
          <ClassScheduleID>int</ClassScheduleID>
          <Visits>
            <Visit xsi:nil="true" />
            <Visit xsi:nil="true" />
          </Visits>
          <Clients>
            <Client xsi:nil="true" />
            <Client xsi:nil="true" />
          </Clients>
          <Location>
            <BusinessID>int</BusinessID>
            <SiteID>int</SiteID>
            <BusinessDescription>string</BusinessDescription>
            <AdditionalImageURLs xsi:nil="true" />
            <FacilitySquareFeet>int</FacilitySquareFeet>
            <TreatmentRooms>int</TreatmentRooms>
            <ProSpaFinderSite>boolean</ProSpaFinderSite>
            <HasClasses>boolean</HasClasses>
            <PhoneExtension>string</PhoneExtension>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <Name>string</Name>
            <Address>string</Address>
            <Address2>string</Address2>
            <Tax1>float</Tax1>
            <Tax2>float</Tax2>
            <Tax3>float</Tax3>
            <Tax4>float</Tax4>
            <Tax5>float</Tax5>
            <Phone>string</Phone>
            <City>string</City>
            <StateProvCode>string</StateProvCode>
            <PostalCode>string</PostalCode>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
            <DistanceInMiles>double</DistanceInMiles>
            <ImageURL>string</ImageURL>
            <Description>string</Description>
            <HasSite>boolean</HasSite>
            <CanBook>boolean</CanBook>
          </Location>
          <Resource>
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <Name>string</Name>
          </Resource>
          <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>
            <ImageURL>string</ImageURL>
            <Level xsi:nil="true" />
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>int</ID>
            <Name>string</Name>
            <Description>string</Description>
            <Prereq>string</Prereq>
            <Notes>string</Notes>
            <LastUpdated>dateTime</LastUpdated>
            <Program xsi:nil="true" />
            <SessionType xsi:nil="true" />
            <Active>boolean</Active>
          </ClassDescription>
          <Staff>
            <Appointments xsi:nil="true" />
            <Unavailabilities xsi:nil="true" />
            <Availabilities xsi:nil="true" />
            <Email>string</Email>
            <MobilePhone>string</MobilePhone>
            <HomePhone>string</HomePhone>
            <WorkPhone>string</WorkPhone>
            <Address>string</Address>
            <Address2>string</Address2>
            <City>string</City>
            <State>string</State>
            <Country>string</Country>
            <PostalCode>string</PostalCode>
            <ForeignZip>string</ForeignZip>
            <SortOrder>int</SortOrder>
            <LoginLocations xsi:nil="true" />
            <MultiLocation>boolean</MultiLocation>
            <AppointmentTrn>boolean</AppointmentTrn>
            <ReservationTrn>boolean</ReservationTrn>
            <IndependentContractor>boolean</IndependentContractor>
            <AlwaysAllowDoubleBooking>boolean</AlwaysAllowDoubleBooking>
            <UserAccessLevel>string</UserAccessLevel>
            <ProviderIDs xsi:nil="true" />
            <ProviderIDUpdateList xsi:nil="true" />
            <Action>None or Added or Updated or Failed or Removed</Action>
            <ID>long</ID>
            <Name>string</Name>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <ImageURL>string</ImageURL>
            <Bio>string</Bio>
            <isMale>boolean</isMale>
            <EmpID>string</EmpID>
          </Staff>
        </Class>
      </GetClassVisitsResult>
    </GetClassVisitsResponse>
  </soap:Body>
</soap:Envelope>