Overview
Retrieve a count of appointments within date ranges, with a total for each date and team member within the date range. Communication handled via an http form post.
Post Url
https://www.allclients.com/api/2/StatsAppointmentsByDateByTeamMember.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 | |
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" encoding="UTF-8"?> <results> <result> <date>10/01/2016</date> <count>3</count> <teammemberid>134</teammemberid> </result> <result> <date>10/12/2016</date> <count>2</count> <teammemberid>0</teammemberid> </result> <result> <date>10/12/2016</date> <count>1</count> <teammemberid>134</teammemberid> </result> <result> <date>10/20/2016</date> <count>1</count> <teammemberid>134</teammemberid> </result> <result> <date>10/28/2016</date> <count>1</count> <teammemberid>134</teammemberid> </result> </results>
Sample Failure Message
<?xml version="1.0"?>
<results>
<error>Authentication failed</error>
</results>