Push Notifications
Send a push notification to end users who have iOS or Android passes installed, letting them know information has changed. By notifying users, they will receive an alert as well as an update to the back of the pass showing the most recent notification.
Delete notification by pass
Removes notification field and message from the back of the pass.
DELETE /pass/{passId}/notify
Security:
Path parameters:
- passId stringREQUIREDThe
idof the pass you want send notification to.
Responses
200
Notification is being deleted. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The pass does not exist.
Examples
Example request
DELETE /v1/pass/123/notify HTTP/1.1
Authorization: Basic <Base64 key>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 12345
}
Delete notification by pass with external ID
Removes notification field and message from the back of the pass.
DELETE /pass/template/{templateId}/id/{passExternalId}/notify
Security:
Path parameters:
- templateId stringREQUIREDThe template ID for the pass you want to send or delete notification for.
- passExternalId stringREQUIREDThe custom identifier of the pass you want to send or delete notification for.
Responses
200
Notification is being deleted. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The pass does not exist.
Examples
Example request
DELETE /v1/pass/template/12345/id/my_custom_pass_id/notify HTTP/1.1
Authorization: Basic <Base64 key>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 12345
}
Delete notification by segment
Delete pass notification for specified segment.
DELETE /segments/{projectId}/{segmentId}/notify
Security:
Query parameters:
- templateId string
Path parameters:
- projectId stringREQUIREDThe ID of the project you want to delete the notification for.
- segmentId stringREQUIREDThe ID of the segment you want to delete the notification for.
Responses
200
Notification is being deleted. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The segment does not exist.
Examples
Example request
DELETE /v1/segments/12345/3b13666df-e5b3-4e42-8919-f8d63bd7ce2a/notify?templateId=6789 HTTP/1.1
Authorization: Basic <Base64 key>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 12345
}
Delete notification by tag
Delete notification for passes associated with the specified tag.
DELETE /tag/{tag}/notify
Security:
Query parameters:
- templateId stringREQUIREDThe template ID associated with the passes you want to send or delete notification for.
Path parameters:
- tag stringREQUIREDThe tag associated with the passes you want to send or delete notification for.
Responses
200
Notification is being deleted. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The tag does not exist.
Examples
Example request
DELETE /v1/tag/campaign123/notify?templateId=12345 HTTP/1.1
Authorization: Basic <Base64 key>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 12345
}
Delete notification by template
Delete pass notification for specified template passes.
DELETE /template/{templateId}/notify
Security:
Path parameters:
- templateId stringREQUIREDThe
idof the template you want to send or delete notification for. For External IDs, format the{templateId}asid/{templateExternalId}.
Responses
200
Notification is being deleted. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The template does not exist.
Examples
Example request
DELETE /v1/template/123/notify HTTP/1.1
Authorization: Basic <Base64 key>
Example request with external ID
DELETE /v1/template/id/12345/notify HTTP/1.1
Authorization: Basic <Base64 key>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 12345
}
Send notification by pass
Send a notification to a pass. Delivers lock screen notification through the wallet app and presents notification field and message on the back of the pass.
POST /pass/{passId}/notify
Security:
Path parameters:
- passId stringREQUIREDThe
idof the pass you want send notification to.
Request body:
Send notification to a pass.
Content-Type:
application/jsonPass Notification RequestAn object for sending a custom pass notification message.
OBJECT PROPERTIES- label string
Optional header for the message.
- value stringREQUIRED
The body of the notification message.
Responses
200
Notification is being sent. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The pass does not exist.
Examples
Example request
POST /v1/pass/123/notify HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 1234
}
Send notification by pass with external ID
Send a notification to a pass. Delivers lock screen notification through the wallet app and presents notification field and message on the back of the pass.
POST /pass/template/{templateId}/id/{passExternalId}/notify
Security:
Path parameters:
- templateId stringREQUIREDThe template ID for the pass you want to send or delete notification for.
- passExternalId stringREQUIREDThe custom identifier of the pass you want to send or delete notification for.
Request body:
Send notification to a pass.
Content-Type:
application/jsonPass Notification RequestAn object for sending a custom pass notification message.
OBJECT PROPERTIES- label string
Optional header for the message.
- value stringREQUIRED
The body of the notification message.
Responses
200
Notification is being sent. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The pass does not exist.
Examples
Example request
POST /v1/pass/template/12345/id/my_custom_pass_id/notify HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 1234
}
Send notification by segment
Send a notification to all passes for a segment.
POST /segments/{projectId}/{segmentId}/notify
Security:
Query parameters:
- templateId stringREQUIRED
Path parameters:
- projectId stringREQUIREDThe ID of the project you want to send the notification to.
- segmentId stringREQUIREDThe ID of the segment you want to send the notification to.
Request body:
Send notification to segment passes.
Content-Type:
application/jsonPass Notification RequestAn object for sending a custom pass notification message.
OBJECT PROPERTIES- label string
Optional header for the message.
- value stringREQUIRED
The body of the notification message.
Responses
200
Notification is being sent. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The segment does not exist.
Examples
Example request
POST /v1/segments/12345/3b13666df-e5b3-4e42-8919-f8d63bd7ce2a/notify?templateId=6789 HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 1234
}
Send notification by tag
Send notification to all passes associated with the specified tag.
POST /tag/{tag}/notify
Security:
Query parameters:
- templateId stringREQUIREDThe template ID associated with the passes you want to send or delete notification for.
Path parameters:
- tag stringREQUIREDThe tag associated with the passes you want to send or delete notification for.
Request body:
Send notification to tagged passes.
Content-Type:
application/jsonPass Notification RequestAn object for sending a custom pass notification message.
OBJECT PROPERTIES- label string
Optional header for the message.
- value stringREQUIRED
The body of the notification message.
Responses
200
Notification is being sent. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The tag does not exist.
Examples
Example request
POST /v1/tag/campaign123/notify?templateId=12345 HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 1234
}
Send notification by template
Send a notification to all passes belonging to the template.
POST /template/{templateId}/notify
Security:
Path parameters:
- templateId stringREQUIREDThe
idof the template you want to send or delete notification for. For External IDs, format the{templateId}asid/{templateExternalId}.
Request body:
Send notification to template passes.
Content-Type:
application/jsonPass Notification RequestAn object for sending a custom pass notification message.
OBJECT PROPERTIES- label string
Optional header for the message.
- value stringREQUIRED
The body of the notification message.
Responses
200
Notification is being sent. The response contains a
ticketIdthat you can use to look up the operation.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- ticketId integer
An identifier for this operation.
404
The pass does not exist.
Examples
Example request
POST /v1/template/123/notify HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Example request with external ID
POST /v1/template/id/12345/notify HTTP/1.1
Content-Type: application/json
Authorization: Basic <Base64 key>
{
"label": "Last Notification",
"value": "20% off any one regular priced item"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"ticketId": 1234
}