Get information about fields of a pass-template only

If you only want to know what fields must be submitted you can call add zapierStyle=true as parameter.

URL
https://app.passcreator.com/api/pass-template/{pass-uid}?zapierStyle=true
HTTP-Method
GET
Purpose
Get information about the given pass-template. This information is e.g. needed if you want to create passes for this pass-template.
Required input parameters

• HTTP Authorization Header that contains your API key

• UID of the pass-template that must be specified in the URI.

• If you don't have a UID you can obtain it by using the function explained in the section "Get list of pass-templates".

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 - this is currently always true

• label - the user-friendly label of the field. This is the label that you've specified in the visual pass-designer of Passcreator.

Example output:

  1. [
  2. {
  3. "type": "unicode",
  4. "key": "primaryFields_0_Event",
  5. "required": true,
  6. "label": "Event"
  7. },
  8. {
  9. "type": "unicode",
  10. "key": "secondaryFields_0_Location",
  11. "required": true,
  12. "label": "Location"
  13. },
  14. {
  15. "type": "unicode",
  16. "key": "barcodeValue",
  17. "required": true,
  18. "label": "Barcode Value"
  19. },
  20. {
  21. "type": "unicode",
  22. "key": "barcodeAlternativeText",
  23. "required": true,
  24. "label": "Barcode alternative text"
  25. },
  26. {
  27. "type": "unicode",
  28. "key": "5b3f2f9f66a228.52093670",
  29. "required": false,
  30. "label": "Vorname"
  31. },
  32. {
  33. "type": "unicode",
  34. "key": "5b3f2f9f66a3e9.44793220",
  35. "required": false,
  36. "label": "Nachname"
  37. }
  38. ]