Get statistics about existing passes

Get statistics about passes of a template
URL
https://app.passcreator.com/api/pass/statistics/{pass-template-uid}?timeFrame={timeFrame}&day={day}
HTTP-Method
GET
Purpose
Get detailed statistics about passes of a template. This returns timelines for the requested time frame and shows when and how many passes
have been created, updated, deleted (deactivated) or saved as well as the operating systems that have been used.
Required input parameters

• HTTP Authorization Header that contains your API key
• pass-template-uid - the UID of the pass template for whose passes you want to get statistics for
• timeFrame - the time frame you want to get statistics for. Supported values are day, week, month and year
• day - the day that determines what time you'll receive statistics for. Supported are either the string "today" or a day in the format Y-m-d, e.g.  2025-01-15

Returned values

JSON-Array containing the following sub-arrays
• activeRegistrationsTimeline - shows how many passes have been activated (means saved on a smartphone) per day.
• inactiveRegistrationsTimeline - shows how many passes have been deactived (removed from a phone or push notifications have been deactivated) per day.
• createdPassesTimeline - shows how many passes have been created per day
• updatedPassesTimeline - shows how many passes have been updated per day
• passesPerOperatingSystem - contains three key value pairs: iOS, Android, WindowsPhone. Each key contains the number of passes that are active right
now or have been active per operating system.

Example output:

  1. {
  2. "activeRegistrationsTimeline": [
  3. {
  4. "date": "2019-03-10",
  5. "noOfPasses": "268"
  6. }
  7. ],
  8. "inactiveRegistrationsTimeline": [
  9. {
  10. "date": "2019-03-10",
  11. "noOfPasses": "9"
  12. }
  13. ],
  14. "createdPassesTimeline": [
  15. {
  16. "date": "2019-03-10",
  17. "noOfPasses": "24"
  18. }
  19. ],
  20. "updatedPassesTimeline": [
  21. {
  22. "date": "2019-03-10",
  23. "noOfPasses": "541"
  24. }
  25. ],
  26. "passesPerOperatingSystem": {
  27. "iOS": 143,
  28. "Android": 125,
  29. "WindowsPhone": 0
  30. }
  31. }