List scheduled notifications of a template

URL

https://app.passcreator.com/api/pass-template/{template-id}/notification

HTTP-Method
GET
Purpose
Lists all past and due notifications that are existing for the given template.
If there's not notificationText in the return JSON it means that this is a version of a template.
Required input parameters

• HTTP Authorization Header that contains your API key
• template-id - the UUID of the pass template that you want to receive notifications for

Returned values
A JSON array containing an array called scheduledTasks and executedTasks.
Depending on the load in our system it might happen that a task is scheduled and the publicationDate is slightly in the past.
The system will pick up the task shortly afterwards and push the changes to the devices of your users.

Example response:

  1. {
  2. "scheduledTasks": [
  3. {
  4. "notificationId": "7a1576c6-b5e5-433a-a5a7-586ef11a3bac",
  5. "publicationDate": "2019-11-15 12:55",
  6. "notificationText": "Example notification!"
  7. },
  8. {
  9. "notificationId": "e2c6ee03-fd0a-463c-81ee-2047bc5d48af",
  10. "publicationDate": "2019-11-16 12:55",
  11. "notificationText": "Example notification!"
  12. },
  13. {
  14. "notificationId": "eb3795e2-0b9a-44e7-a8a0-95ac611efd39",
  15. "publicationDate": "2019-11-17 14:38",
  16. "notificationText": "Example notification!"
  17. }
  18. ],
  19. "executedTasks": [
  20. {
  21. "notificationId": "07f11075-8794-46d0-9e4b-16735dd382e5",
  22. "publicationDate": "2019-08-15 13:22"
  23. },
  24. {
  25. "notificationId": "5c1642d9-db0a-43b9-978a-94535192b802",
  26. "publicationDate": "2019-08-16 13:22",
  27. "notificationText": "Example notification!"
  28. }
  29. ]
  30. }