API DOCUMENTATION Last Update: Apr 2022

Pre-Existing Report: Campaign Totals

Generate a report with the campaign totals between two date ranges in the selected campaigns.


The data to be submitted to the API is composed of the following fields:


  field   Example   Note
user_id john1970 Required
user_password 1959caadac9b13dcb3 Required
account_id greatwidgets Required
type reports Required
report audit_totals
date_start 2010-01-01 Required
date_end 2011-12-31 Optional
selected_campaigns 123456789012,21987654321 Required
Output Format:
output JSON or XML Optional. If not provided, defaults to XML
callback someFunctionName Optional: JSONP format
condensed yes Optional (No white space)
Applies only to JSON(P) output



  • The date_start and date_end must be provided in ISO 8601 format: YYYY-MM-DD, where YYYY is the year in four-digit format, MM is the month in 2-digit format, and DD is the day of the month in two digit format. This avoids all sorts of confusion as to which part of the date is represented in which position and allows for better and more natural date-based sorting.
  • Separate each selected_campaigns with a comma (no spaces!)
  • The coalition_points and coalition_stored_value reports are used specifically for coalition or two-tier account campaigns in order to correctly report aggregated totals.


Example PHP Request:

If you are using PHP, the $data array would look like this:

  1. $data['user_id'] = 'john1970';
  2. $data['user_password'] = '1959caadac9b13dcb3';
  3. $data['account_id'] = 'greatwidgets';
  4. $data['type'] = 'reports';
  5. $data['report'] = 'audit_totals';
  6. $data['date_start'] = '2010-01-01';
  7. $data['date_end'] = '2011-12-31';
  8. $data['selected_campaigns'] = '123456789012,210987654321';


Success XML Response (New / Updated User):

  1. <response status="success">
  2. <campaign>
  3. <campaign_name>Points Program</campaign_name>
  4. <campaign_type>T</campaign_type>
  5. <earned>4,437</earned>
  6. <redeemed>-3,010</redeemed>
  7. <liability>1,427</liability>
  8. <monetary_equivalent>9.51</monetary_equivalent>
  9. <campaign_id>123456789012</campaign_id>
  10. </campaign>
  11. <campaign>
  12. <campaign_name>Employee Rewards</campaign_name>
  13. <campaign_type>T</campaign_type>
  14. <earned>17,988</earned>
  15. <redeemed>-3,598</redeemed>
  16. <liability>14,390</liability>
  17. <monetary_equivalent>191.87</monetary_equivalent>
  18. <campaign_id>234567890123</campaign_id>
  19. </campaign>
  20. ...
  21. </response>


Error XML Response:

  1. <response status="error">
  2. <error>Error message</error>
  3. </response>