Appointment Service


Click here for a complete list of operations.

GetScheduleItems

Gets a list of scheduled items (appointments, availabilities, and unavailabilities).

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/AppointmentService.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/GetScheduleItems"

<?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>
    <GetScheduleItems xmlns="http://clients.mindbodyonline.com/api/0_5">
      <Request>
        <LocationIDs>
          <int>int</int>
          <int>int</int>
        </LocationIDs>
        <StaffIDs>
          <long>long</long>
          <long>long</long>
        </StaffIDs>
        <StartDate>dateTime</StartDate>
        <EndDate>dateTime</EndDate>
        <IgnorePrepFinishTimes>boolean</IgnorePrepFinishTimes>
      </Request>
    </GetScheduleItems>
  </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>
    <GetScheduleItemsResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
      <GetScheduleItemsResult>
        <StaffMembers>
          <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>
          <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>
        </StaffMembers>
      </GetScheduleItemsResult>
    </GetScheduleItemsResponse>
  </soap:Body>
</soap:Envelope>