User can retrieve primary statistical metrics on all newsletters sent to a specific list of contacts. Statistics include start and finish times; number of recipients and their preferred format; bounces and opens; links clicked; and others. 


JSON Request Example:     

/**
 * Stats::GetNewsletterStats
 *
 * Stats::GetNewsletterStats
 *
 *  Return statistics for newsletters sent to a list
 *
 *  listid      [int, required]: selected list
 *  startdate   [date, optional]: only return stats for newsletters sent on or after this date
 *  enddate     [date, optional]: only return stats for newsletters sent on or before this date
 *  
 *  pagination [optional, default return all]
 *    limit [int, required]: maximum number of records to return
 *    next  [int, optional, default 0]: first record to return
 *          If used, the response will be limited to 'limit' records
 *          and the response will include a pagination section with the appropriate 'next' value
 *          to return the next sequential chunk of records, or 0 if all records have been returned.
 */
{
  "username": "matbt@pinpointe.com",
  "usertoken": "5eb8449c1a788fc27c955f8966dd495f519bd72f",
  "requesttype": "Stats",
  "requestmethod": "GetNewsletterStats",
  "details": {
    "list": "{*list_id*}" /* required */
    "startdate": "{*start-date*}",
    "enddate": "{*end-date*}",
    "pagination": {
      "limit": "{*max_records*}", /* required */
      "next": "{*start_at_record_number*}"
    }
  }
}
Null


"json_request"  element


Field NameDescription
usernameUsername used to login to Pinpointe
usertokenUnique token assigned to Pinpointe account
requesttypeNewsletters 
requestmethodGetNewsletterStats


"details" element


Field Name
Description
listid
(Required)
List ID
startdate (optional)only return stats for newsletters sent on or after this date
enddate
(optional)
only return stats for newsletters sent on or before this date


"pagination" element


Please note: If "pagination" parameters omitted, call will return as many records as allowable based on current application memory constraints.  


Field Name
Description
limit
(optional but required if "next" parameter used)
max_records: Integer indicating maximum number of datasets (records) to be returned for the respective call.
next
(optional)
start_at_record_number: If parameter used, the call response will be limited to the “limit” value and the response will include a pagination section with the appropriate “next” value to return the next sequential chunk of records, or “0” if all records have been returned.


Successful Response:


"response" element


Field NameDescription
statusWill return SUCCESS if newsletter(s) stats are successfully retrieved. 


"response" "data" "item" element  (primary elements)


Field NameDescription
statidStatistical report ID for this newsletter
starttimeStart time of send in UNIX time format
finishtime End time of send in UNIX time format
sendsizeNumber of contacts newsletter was sent to 
bouncecount_softNumber of reported soft bounces
bouncecount_hardNumber of reported hard bounces
bouncecount_unknownNumber of reported unknown bounces
unsubscribecountNumber of unsubscribes
emailopensNumber of opens
linkclicksNumber of link clicks
emailforwardsNumber of email forwards
subjectSubject of newsletter
newsletternameName of newsletter
listnameList name contact population belongs to


Unsuccessful Response:


"response" element


Field NameDescription
statusWill return FAILED if unsuccessful
errormessageText explaining why request failed