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
Get URIs to resources for a pass
GET Request
Endpoint URL
Purpose
If the given pass UID is known the direct URIs to the actual resources for Android and iOS are returned.
We suggest always using the pass download pages or integrations that Passcreator offers but this allows you to build your own, completely customized way of delivering passes. Keep in mind that you need to do the device and browser recognition on your own if you go that route.
Required input parameters
- HTTP Authorization Header that contains your API key
- UID of the pass you want the URLs for
Returned values
JSON-Array containing an array for the pass that has been found. The array contains these fields:
- iPhoneUri – the URL that returns the actual pkpass file
- AndroidUri – depending on your template this is either a URL that triggers the save dialog of Google Pay or a deeplink that opens the pass in PassWallet.
{
"iPhoneUri": "https:/veski.leikbreytir.is/passinstance/pkpass?
passInstance%5B__identity%5D=712b34b6-c56a-4a84-a08d-3500237eef08",
"AndroidUri": "https://veski.leikbreytir.is.page.link/?apn=com.attidomobile
.passwallet&link=https%3A%2F%2Fapp.passcreator.com%2Fpassinstance%2Fpkpass
%3FpassInstance%255B__identity%255D%3D712b34b6-c56a-4a84-a08d-3500237eef08"
}