StatsAppointmentsByDate

Overview

Retrieve a count of appointments within date ranges, with a total for each date the date range. Communication handled via an http form post.

Post Url

https://www.allclients.com/api/2/StatsAppointmentsByDate.aspx
  • SSL is requred
  • White Label CRM Customers: Replace www.allclients.com with your White Label CRM domain name.

Form Fields

Field Max Length* Required Notes
response_type
Default results will be returned in XML.
Set this field value to json to return results in JSON format
accountid Yes Account ID for this account. Found in Settings > API Settings or for White Label CRM in the Admin control panel
apikey Yes API Key for this account. Found in Settings > API Settings or for White Label CRM in the Admin control panel
teammemberid No Optional.  Leave blank for entire account.  Use 0 (zero) for Team Owner
startdate 10 Yes Add Date of the contact is on or after this date (Use US date format: mm/dd/yyyy)
enddate 10 Yes Add Date of the contact is before this date   (Use US date format:mm/dd/yyyy)

Note: Using value 6/30/2012 will not include contacts added on 6/30.  Use 7/1/2013 to include contacts added BEFORE this date.

* An error will not result if Max Length is exceeded. Data will be trimmed to this length. 

Sample Results

Success Message

<?xml version="1.0"?>
<results>
  <stats>
    <count date="1/1/2013">6</count>
    <count date="1/2/2013">2</count>
    <count date="1/3/2013">20</count>
  <stats>
</results> 

Sample Failure Message

<?xml version="1.0"?>
<results>
    <error>Authentication failed</error>
</results>