Notifications
Send to a template
Shows an announcement on every active pass of a template.
POST
Use this for news every holder should see, such as “Doors open at 7”. It reaches the template’s active passes in your API key’s environment, as they are when it’s sent.
How it reaches each wallet:
- Apple Wallet: the text replaces the pass’s Announcements field on the back, and Wallet shows it on the lock screen. Apple only alerts when the text changes, so a text identical to the current announcement is rejected.
- Google Wallet: the title and body appear as a message on each pass. Google allows 3 notifications per pass in 24 hours. Passes past that get the message without an alert.
issuePlatforms offers that wallet, or an active pass in your API key’s environment uses it. Text for any other wallet is ignored.
string
required
The template ID.
string
required
A unique value, such as a UUID, so a retry never sends twice.
string
The Apple Wallet message, up to 120 characters.
string
The Google Wallet message title, up to 60 characters.
string
The Google Wallet message body, up to 500 characters.
string
When to send it, as an ISO 8601 time from 5 minutes to 24 hours from now. Leave it out to send now.
Response
Returns the new notification with status201. Follow its progress in totals with Get a notification.