Create Pass Template

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
enum
required
Allowed:
required

Set to null to create without an Apple Pass Type Identifier.

string | null

The identifier of the Google Wallet Issuer to use. Set to null to create without a Google Wallet Issuer. Omitting this field is deprecated; supply an explicit identifier instead.

revision
object
required

Fields in this object support dynamic values, fields that do not support dynamic values are noted.
Support for dynamic values is as follows:

  • Each field can be a string value or contain a single dynamic value.
  • To make a field dynamic, it must be set in the following format {{ entity.attribute }}.
  • A default value can be passed using the following syntax {{ entity.attribute | "default value" }}.
  • A Pass Template Revision has support for attributes from two entities, Pass and User. These can be accessed with the entity name pass and user. EG: To have a field show the value of a Pass attribute named memberId, the field's value would be set to {{ pass.memberId }}.

Image fields (logoUri, iconUri, coverImageUri, alternateCoverImageUri, and posterArtwork) take a public http or https URL, or a data: URL, for a PNG, JPEG, GIF, WebP, SVG, or AVIF image. An image at a URL can be up to 5 MB. The whole request, including every data: URL, must stay within the 512 KB request size limit.
Badge stores a copy of each image when you create the revision, and responses return the URL of that copy. Changing the image at the original URL does not update the pass.
For a dynamic image field, Badge copies the default value.

boolean
enum
required
Allowed:
passAttributes
array of objects

Pass attributes to create with the template. Pass attributes that the revision uses but that are not declared here are created as STRING. Names must be unique.

passAttributes
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json