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. 


Note:  This API call can also be found under the requesttype of "Stats".


JSON Request Example:     

{
  "username": "JohnDoe",
  "usertoken": "abc123abc123abc123abc123",
  "requesttype": "Newsletters",
  "requestmethod": "GetNewsletterStats",
  "details": {
    "list": "{*list_id*}" /* required */
  }
}
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