Push notifications
Scheduled or triggered notifications on installed passes.
Create a push notification
Creates a push notification sent on installed loyalty cards, to every holder (`target: ALL`) or to a list of clients (`target: SPECIFIC`), right away (`INSTANT`) or at `scheduleAt` (`SCHEDULED`). Recipients are resolved at creation and stored in `clients`. Returns the created notification.
List push notifications
Paginated list of the wallet's push notifications, instant or scheduled, with their recipients and send date (`sentAt`).
Get push notification statistics
Delivery statistics for a push notification, per recipient (devices reached, platforms, final status `DELIVERED`, `FAILED` or `PENDING`), paginated, with an overall and per-platform (iOS, Android) success summary.
Get a push notification
Returns a push notification by ID, with its recipients, type, category, and scheduled and sent dates.
Update a push notification
Replaces a push notification's content, target, category or schedule and recomputes its recipients. Use it to change a scheduled notification before it is sent. Returns the updated notification.
Delete a push notification
Deletes a push notification. A scheduled notification deleted before its send time is not sent. Returns `{'deleted': true}`.