Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
GuideWalletAPI

Update pass data in templates

Update existing pass data through The Wallet Crew API, then render the latest values in Apple Wallet and Google Wallet pass templates with Liquid.

Passes are most valuable when they stay accurate over time. The usual pattern is simple: a pass is updated through The Wallet Crew API, then the pass templates render the latest values using Liquid.

Real-world examples
  • A loyalty pass shows points and tier and updates after each purchase.

  • An event ticket shows the latest gate and seat after a schedule change.

  • A membership card shows status and expiryDate after a renewal.

What “updated pass data” means

In The Wallet Crew, wallet fields usually come from two places: additional data stored on the pass and live data fetched by connectors at render time. External identifiers help connectors find the right source record. Metadata is computed by the platform for filtering and reporting, not for wallet display.

If the right storage location is unclear, start with Pass data and sync.

Step-by-step: update data, then display it

1

Update the pass data through the API

Update one pass with PATCH /api/{tenantId}/passes/{passId}, or by identifiers with PATCH /api/{tenantId}/passes. Update many passes with POST /api/{tenantId}/passes/pushUpdate. See Pass lifecycle → Updating pass data and Batch operations.

If pass creation is not set up yet, start with Enrolment flows.

2

Inspect the updated data on a real pass

Open a pass and look at the JSON payload. This is the source of truth when fields are later referenced in Liquid.

In the admin console, go to Wallet → Passes, pick a pass, then open the menu (...), click Details, and open the Data tab.

Data tab of a pass with the identifiers, additional data, metadata and the values loaded at render
Use the Data tab to confirm the keys and values that exist on this pass.
3

Use Liquid in the pass template

Go to Wallet → Templates and edit the template used by the pass.

Three-dot menu of a template card with the Edit, Edit Apple, Edit Google, Push update, Export template and Delete actions
Edit the template of the pass.

Then select the section to change. Sections are grouped so that only the relevant part has to be expanded.

Apple tab of the template editor with expandable sections and the pass preview
Pick the field where the updated value should appear.

When dynamic content is needed (conditions, formatting, or computed strings), open the code editor (<>) and use Liquid.

Value dialog of a template field with a Liquid expression, the preview and the available variables
Use Liquid when plain text fields are not enough.

Use Liquid templating for supported Liquid syntax in The Wallet Crew.

4

Save and validate on a device

Save the template changes, then validate with a pass that can be installed on a phone.

If passes are distributed through a web page or QR flow, validate the hosted view on a real device. If distribution happens from a native app, validate the same pass through the app flow used by the project.

Validation checklist

After an update, confirm four things:

  • The stored value exists on the pass, or the connector source record contains the new value.

  • The template references the exact key used at render time.

  • A render trigger happened, such as preview, installation, or push update.

  • The final pass is validated on a real device.

If the value is missing in the Data tab, the issue is in the update call or the connector source. If it exists there but not on the rendered pass, the issue is in the template mapping or Liquid logic.

FAQ

What should I use: identifiers, metadata, or additional data?

Use identifiers to link the pass to external systems. Use metadata (computed from the template) to filter passes for operations. Use additional data for values that must persist on the pass and appear in wallet fields.

Do I need to update the template after every data change?

No. Templates define how to display data. A template usually changes only when the layout changes or new fields are added. Day-to-day changes should be done by updating pass data through the API.

Last updated