Sale Service


Click here for a complete list of operations.

UpdateSaleDate

Modify sale date in business mode

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/SaleService.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/UpdateSaleDate"

<?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>
    <UpdateSaleDate xmlns="http://clients.mindbodyonline.com/api/0_5">
      <Request>
        <SaleID>long</SaleID>
        <SaleDate>dateTime</SaleDate>
      </Request>
    </UpdateSaleDate>
  </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>
    <UpdateSaleDateResponse xmlns="http://clients.mindbodyonline.com/api/0_5">
      <UpdateSaleDateResult>
        <Sale>
          <ID>long</ID>
          <SaleTime>dateTime</SaleTime>
          <SaleDate>dateTime</SaleDate>
          <SaleDateTime>dateTime</SaleDateTime>
          <OriginalSaleDateTime>dateTime</OriginalSaleDateTime>
          <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>
          <Payments>
            <Payment xsi:nil="true" />
            <Payment xsi:nil="true" />
          </Payments>
          <RecipientClientId>long</RecipientClientId>
        </Sale>
      </UpdateSaleDateResult>
    </UpdateSaleDateResponse>
  </soap:Body>
</soap:Envelope>