Preview and preview data
Preview a pass template as Apple Wallet and Google Wallet draw it, try other languages and themes, read the checks, and manage the preview data.
A pass template is mostly made of expressions that read the data of each pass. Without data, the preview would show blank fields; with the wrong data, it would hide problems that end-users will see. The preview of the editor therefore draws the pass with preview data, shows it in the different screens of each wallet, and lists what the phone will show differently.
The same preview appears on the pass page, where it uses the data of that pass.

Preview
Device and view
The preview shows either Apple Wallet or Google Wallet. On the General tab, a toggle switches between the two; the Apple and Google tabs show their own wallet.
The view menu chooses which screen of the wallet is drawn, because the same pass looks different on the front, in the details, in a notification or on a watch.
Pass
The pass as Wallet opens it, with its featured actions.
Pass Details
The page opened from ⋯: settings and back fields.
Event guide
Opened from the Event Guide tile of a poster event ticket: venue shortcuts, tailgating, entrance. Listed only when the ticket meets Apple's conditions.
Additional ticket info
Opened from the Additional Ticket Info tile of a poster event ticket: its additional info fields.
Wallet list
The pass among the holder's other passes, where only its top strip shows. An expired or voided pass is in the Expired list instead.
Add sheet
What the holder sees before tapping Add.
Notification
The lock screen when the pass is updated with a message.
Apple Watch
The pass in Wallet's list on Apple Watch, then the details screen a tap opens.
When the template declares a poster layout, the menu also chooses the Layout drawn: Poster or Classic.
Current view
Google Wallet's default screen: the card, then its details, in one scroll.
Previous view · Front
The card shown after "Switch to previous view".
Previous view · Details
The details page opened from ⋮ on the card.
Home screen
The pass tile on the Wallet home screen.
Passes list
How the pass appears in Wallet's Passes list and search.
Add to Wallet page
The pay.google.com page shown before the holder taps Add.
Notification
Google Wallet's notification for the pass on the Android lock screen.
Wear OS watch
The pass on a Wear OS watch: the passes list, then the pass. The watch is always dark.
A pass that is not active is shown as Google Wallet files it, under the archived passes.


Display and preview settings
The same menu changes the conditions of the preview, without changing the template:
Phone language: one of the tenant's languages;
Preview theme: no theme, the theme of the previewed pass ("On this pass"), or any theme of the tenant;
Phone appearance: Light or Dark. Wallet's own screens follow the phone's appearance; the pass itself does not change;
Stamps (stamp card): one stamp less or more, to try another count, and "Back to the pass's count";
Pass status: Active, Expired or Voided, and "Use the pass's status". An expired or voided pass moves to Wallet's Expired list and its barcode is washed out.
While another status or stamp count is tried, the menu button changes color, as a reminder that the preview no longer shows the pass as it is.
The preview is drawn as close to the phone as possible; small differences with Wallet remain possible. Test on a real device before a large push.
Notification text
The Notification views show a sample message adapted to the type of the template, for example "Thanks for your visit! 4 more stamps until your reward." on a stamp card. Clicking the notification lets a real message be written to try it. The text is kept in this browser, for this template and language only; nothing is sent. Use the suggestion restores the sample message.
Checks
The checks open from the icon at the end of the preview menus, which shows a green tick when there is nothing to report. Titled "What the phone will show differently", they list every place where the wallet will not show what the form suggests. Each item has a level, and selecting it opens the field concerned:
Blocking: the wallet refuses the pass, or a part of it does not work.
Check: the pass works but probably not as intended.
Note: a wallet behavior worth knowing.

Apple Wallet items:
Blocking
No icon: Apple Wallet requires one, and the pass cannot be downloaded.
Blocking
A "Go to location" featured action without a valid Apple Place ID.
Check
The "Go to location" place of a featured action renders as something that is not an Apple Place ID, or renders empty, for the previewed pass.
Check
The pass is voided, or its expiration date is past: Wallet moves it to Expired as soon as it is added.
Check
A poster event ticket is incomplete and is drawn with the classic layout, or the event guide is missing a condition.
Check
Values or labels are hard to read on the background (contrast below 3:1).
Check
The logo text is cut next to the poster logo.
Note
More than two featured actions: Wallet shows the first two.
Note
More summary fields than the poster shows.
Note
The text under the barcode is long: Wallet cuts it on one line.
Note
With NFC, Wallet moves the barcode off the front, to Pass Details.
Note
Automatic colors are on: Wallet derives the poster colors from the artwork, while the preview shows the configured ones.
Google Wallet items:
Blocking
Google Wallet will refuse the pass: a text-only barcode with an alternate text, a loyalty pass without a program logo, a gift card without a card number, or a wide logo without the logo it replaces (a theme can provide the missing logo).
Check
A field whose template fails: Google shows it empty, and the pass is still issued.
Check
The pass is not active: Google Wallet files it under archived passes straight away.
Note
A pass that requires unlocking can only be added from the Wallet app on an Android phone.
Note
Screenshots of the pass are blocked on Android.
Note
A single-device pass can only be added on an Android phone.
Checks on fields apply to both wallets: a template that fails (with a "Did you mean" suggestion when a variable name is close), a variable that the previewed pass does not have, an empty value (Wallet leaves the field out; add a default value to show something instead), or a part of a field that prints nothing.
Preview data
Preview data are example data saved with the template. They give the preview realistic values while the template is designed, and they let a team keep edge cases at hand: a very long name, an expired offer, a member with no points.
The Preview data section of the General tab shows the entries of the template as cards, with their number next to the title, and an Add preview data tile.

Two kinds of entries
Sample data: values stored in the template, editable at will.
Real pass: follows a pass of the template as it is now, read-only. Its data are not copied into the template.
The menu of each card offers Edit, Duplicate, Set as default and Delete; the card being previewed is marked Previewing. Names must be unique within the template. A deleted entry is removed from the template when the General tab is saved.
Add preview data
Add preview data opens New preview data, with several starting points:
Start from a real pass: the passes created from this template, searchable. Selecting a pass shows a Name field and a Use button: Use follows the pass as it is now, read-only; its menu offers Copy and edit, which takes the data once into sample data that can be edited.
From the template: values for every variable the template reads, to fill in.
Start from scratch: empty JSON, or pasted JSON.

Edit sample data

The edit dialog has a Name, a JSON editor and a Set as default option; the values must be a JSON object. When the template reads variables that the data do not contain, the dialog lists them ("variables read by the template are missing from this data") and Add them inserts them with empty values.
The JSON follows the shape returned by the data API: a providers array with one entry per data provider, each with its name, namespace and values. Any other JSON object is read as the values directly.
The core values a real pass carries, such as serialNumber, lastUpdated and the benefit statistics, are added automatically, so {{ serialNumber }} renders in the preview. The structure is described in Pass data structure.
The preview follows the entries as they are edited, saved or not; they are stored in the template when the General tab is saved.
Which data the preview uses
The preview opens on the default entry. Without preview data of its own, it moves to the first pass of the template, if there is one. The Preview data menu above the preview switches between entries, and Use real data… picks any pass created from this template: its data are read as they are now and not saved. The choice is kept for the browser session, so the General, Apple and Google tabs preview the same data.
FAQ
Last updated

