Developer Documentation (API)
- Authentication
- PHP Package
- V2 Endpoints
- Pass Templates
- Get a list of templates
- Describe the structure of a pass template
- Create a new template
- Update a template
- Patch a template
- Publish changes of a template
- Get information about fields of a pass-template only
- Schedule a Push Notification
- List scheduled notifications of a template
- Delete a scheduled Push Notification
- Copy a Pass Template
- Delete a Pass Template
- Create an iFrame Integration for a Template
- Create an URL Integration for a Template
- Passes
- REST Hooks
- Validating passes
- Deprecated endpoints
Send a Push Notification to a Pass
POST Request
Endpoint URL https://veski.leikbreytir.is/api/pass/{pass-uid}/sendpushnotification
Purpose
Sends a push notification to an active pass.
Required input parameters
- HTTP Authorization Header that contains your API key
- ID or userProvidedId of the pass that the should receive the notification as part of the URI.
- pushNotificationText – the text for the push notification. This may include placeholders of additional properties to personalise the message with existing data.
Returned values
- If the notification has been sent successfully, status 204 is returned.
- Status 400 is returned, if the pass is not active, the pushNotificationText was empty or is not set.
- Status 404 is returned, if the pass’ identifier is not known.
{
"pushNotificationText": "Hi {Firstname}, how are you?"
}