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 information about fields of a pass-template only
GET Request
Endpoint URL https://veski.leikbreytir.is/api/pass-template/{identifier }?zapierStyle=true
Purpose
Get information about the fields of the given pass template only.
Required input parameters
- HTTP Authorization Header that contains your API key
- identifier – this is the UUID of the template you want to get information about.
Returned values
A JSON-Array that contains one array for every field that must be specified. The following options are specified:
- type – unicode or datetime
- key – the key of the field that must be submitted when creating a pass via the API. Keys that look like this 5b3f2f9f66a228.52093670 are additional properties.
- required – true or false
- label – the user-friendly label of the field. This is the label that you’ve specified in the visual pass-designer of Gift to Wallet.
Example output:
[
{
"type": "unicode",
"key": "primaryFields_0_Event",
"required": true,
"label": "Event"
},
{
"type": "unicode",
"key": "secondaryFields_0_Location",
"required": true,
"label": "Location"
},
{
"type": "unicode",
"key": "barcodeValue",
"required": true,
"label": "Barcode Value"
},
{
"type": "unicode",
"key": "barcodeAlternativeText",
"required": true,
"label": "Barcode alternative text"
},
{
"type": "unicode",
"key": "5b3f2f9f66a228.52093670",
"required": false,
"label": "Vorname"
},
{
"type": "unicode",
"key": "5b3f2f9f66a3e9.44793220",
"required": false,
"label": "Nachname"
}
]