Push Notification deleted Hook

Get notified if a user removes the Wallet pass from his Smartphone
Event
pushnotification_unregistered
HTTP-Method
POST
Purpose
Pushes information about a Wallet pass that has been deleted form a Smartphone or the user disables push notifications for the pass.
Submitted values
JSON-Array containing the following information:
• uniqueIdentifier - the unique identifier of the pass that can be e.g. shown in the barcode and used for ticket validation.
• createdOn - the date when the pass was created.
• passTemplate - the name of the pass-template of this pass.
• linkToPassPage - link to the download page for this pass that detects the operating system of the Smartphone that is used and provides device specific help. You are encouraged to always use this link when providing the pass to users because it provides the best user experience on all devices.
• userProvidedId - if it was specified, the user provided id of the pass that can be used to create download URLs is returned.
• buyerEmail - if the pass was sold with Passcreator the E-Mail of the buyer is returned here. Otherwhise the field is empty.
• buyerFirstName - if the pass was sold with Passcreator the firstname of the buyer is returned here. Otherwhise the field is empty.
• buyerLastName - if the pass was sold with Passcreator the lastname of the buyer is returned here. Otherwhise the field is empty.
• buyerStreet - if the pass was sold with Passcreator the street of the buyer is returned here. Otherwhise the field is empty.
• buyerZipCode - if the pass was sold with Passcreator the zip code of the buyer is returned here. Otherwhise the field is empty.
• buyerCity - if the pass was sold with Passcreator the city of the buyer is returned here. Otherwhise the field is empty.
• bulkCreationId - if the pass was created via a bulk creation job the ID of the line in the bulk creation jobs' import file that defined the pass is returne. Otherwhise the field is empty.
• dynamic fields: additionally to the fields above which are always submitted we'll also submit all data that is personalized. This means that the fields will differ based on the passes pass-template.
To get a list of personalized fields that will be submitted, use the Get information about fields of a pass-template endpoint.
This means you need to first call the endpoint that describes the dynamic field in order to know what fields are contained in the payload.

Example payload

  1. {
  2. "uniqueIdentifier": "122501adfa977d7.55989831",
  3. "createdOn": "2015-04-03 21:30:50",
  4. "passTemplate": "test",
  5. "userProvidedId": "",
  6. "secondaryFields_0_Name": "John Doe",
  7. "barcodeValue": "Name",
  8. "barcodeAlternativeText": "Name",
  9. "expirationDate": "2015-04-17 22:00:00",
  10. "buyerEmail": "support@passcreator.de",
  11. "buyerFirstName": "John",
  12. "buyerLastName": "Doe",
  13. "buyerStreet": "Example ave. 1",
  14. "buyerZipCode": "012345",
  15. "buyerCity": "Example City",
  16. "bulkCreationId": "896789245",
  17. "linkToPassPage": "https://app.passcreator.com/passinstance/show?passInstance[__identity]=abc123-456weqf489-46wefa"
  18. }