> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/connectors/ticketing/secutix/wallet-pass-template-and-field-mapping.md).

# Wallet pass template & field mapping

Create the Event Ticket pass template and map Secutix ticket data to Apple Wallet and Google Wallet pass fields in The Wallet Crew.

The pass template defines what attendees see at the gate. Field mapping defines which Secutix data ends up in each wallet field. Start simple. Get barcode, event name, date, venue, and seat right. Add extra fields only when their purpose is clear.

## Create the Event ticket template

It is created once, then reused for every issued ticket. Most teams start with a single Event ticket template. Even with small variations, one template is often enough, because the template engine supports variables and conditions in every customizable field, including colors and images.

More templates are only needed when some tickets require a completely different look or different content. For the longer explanation, see [Pass types & templates](https://docs.thewalletcrew.io/guides-design/design/pass-types-and-templates.md).

{% stepper %}
{% step %}

#### Create a new template

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/passTypes" class="button secondary" data-icon="chevrons-right">Create a new template</a></p>
{% endstep %}

{% step %}

#### Choose **Use a pre-built**

<div data-with-frame="true"><figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-1b8a933ab5869699fb85fb70ec202c189b710729%2Fconnect-wallet-pass-field-mapping-creation-options-use-pre-built-selected.png?alt=media" alt="Template creation options with “Use a pre-built” selected" width="375"><figcaption><p>Select <strong>Use a pre-built</strong> to start from the library.</p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Pick the “Event ticket” template

<div data-with-frame="true"><figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-a98a4ee15d4771905f1e1e4916cccc5e64e9f1d2%2Fsecutix-template-picker-dialog.png?alt=media" alt="Wallet template selection when creating a new template" width="375"><figcaption><p>Pick the <strong>Event ticket</strong> template when creating the pass.</p></figcaption></figure></div>
{% endstep %}

{% step %}

#### Set the template name

Template naming matters. Secutix targets a template by its exact name through the `WALLET` comfort variable. See [Template selection](https://docs.thewalletcrew.io/connectors/ticketing/secutix/template-selection.md) for the variable and the routing rules when several templates are planned.
{% endstep %}
{% endstepper %}

## Field mapping

The connector maps the most common ticket fields by default. In the template, open the advanced configuration editor to browse available Secutix data with autocomplete. Use the field list below to plan the mapping and debug values.

<div data-with-frame="true"><figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-f5e833671b23b60b90a563c135ad31415430d1c1%2Fconnect-wallet-pass-field-mapping-field-mapping-ui-autocomplete-information-from-secutix.png?alt=media" alt="Field mapping UI: autocomplete information from Secutix" width="375"><figcaption><p>Field mapping UI with Secutix autocomplete.</p></figcaption></figure></div>

To learn more about ticket template configuration, see [Event ticket](https://docs.thewalletcrew.io/guides-design/design/event-ticket.md).

### Available fields

<details>

<summary><strong>Available fields (full list)</strong></summary>

Raw field catalog exposed by the connector.

| The Wallet Crew      | Secutix                                                                             | Example                       |
| -------------------- | ----------------------------------------------------------------------------------- | ----------------------------- |
| firstName            | movementData.beneficiaryFirstname                                                   |                               |
| lastName             | movementData.beneficiaryLastname                                                    |                               |
| barCode              | movementData.barCode                                                                | 0000000000000000              |
| ticket.zone3         | movementData.area                                                                   | Single Zone                   |
| ticket.seatCategory  | movementData.seatCategory                                                           | Single Category               |
| address.country      | operationData.siteAddress.countryCode                                               | FR                            |
| address.address      | operationData.siteAddress.firstAddressLine                                          | 1 Example Street              |
| address.city         | operationData.siteAddress.locality                                                  | Example City                  |
|                      | operationData.siteAddress.phoneNumber                                               |                               |
|                      | operationData.siteAddress.webSite                                                   | <https://www.example.com/>    |
| address.zipCode      | operationData.siteAddress.zipCode                                                   | 00000                         |
| ticket.zone1         | operationData.site                                                                  | Example Venue                 |
| ticket.zone2         | operationData.space                                                                 | Hall 1                        |
| ticket.price         | operationData.unitPrice divided by 1000                                             | 0                             |
| ticket.name          | operationData.performance                                                           | Wallet Show                   |
| ticket.subName       | operationData.performanceAddOnName                                                  | An exceptional show           |
| ticket.startDate     | operationData.performanceDate                                                       | 2024-07-01T20:00:00.000+02:00 |
|                      | operationData.product                                                               | Wallet Show                   |
|                      | operationData.productFamilyType                                                     | SINGLE\_ENTRY                 |
|                      | operationData.productFamilySubType                                                  | SIMPLE\_TICKET                |
| ticket.taxNumber     | movementData.TaxNumber                                                              | 12010124729                   |
| expirationDate       | expirationDate                                                                      | 2024-02-23T00:03:46.627+01:00 |
| ticket.orderId       | orderId                                                                             | 2389856                       |
| ticket.contactId     | contactReference                                                                    | 897501                        |
| ticket.fileId        | operationData.fileId                                                                | 2234582                       |
| ticket.zone5         | movementData.row                                                                    |                               |
| ticket.seatNumber    | movementData.seatNumber                                                             |                               |
| ticket.zone4         | movementData.block                                                                  |                               |
| ticket.priceCategory | operationData.audienceSubCategory                                                   |                               |
| ticket.priceCurrency | operationData.catalogCurrency.currencyCode                                          |                               |
| ticket.eventId       | operationData.eventId                                                               |                               |
| ticket.entrance      | movementData.entrance                                                               |                               |
| ticket.entranceCode  | movementData.entranceCode                                                           |                               |
| ticket.floor         | movementData.floor                                                                  |                               |
| ticket.seatQuality   | movementData.seatQuality                                                            |                               |
| ticket.sector        | movementData.sector                                                                 |                               |
| ticket.canceled      | movementTicketData.TicketState is INVALIDATED or CANCELLED                          |                               |
| ticket.state         | movementTicketData.ticketState                                                      |                               |
| address.longitude    | operationData.siteAddress.gpsLongitude or computed from address via Google Maps API |                               |
| address.latitude     | operationData.siteAddress.gpsLatitude or computed from address via Google Maps API  |                               |

</details>

## Mapping customization (advanced)

Use scripting only when the default field catalog is not enough. Add a custom script in the **Advanced** tab → **Ticket mapping** of the Secutix settings.

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/integrations/secutix/settings" class="button secondary" data-icon="chevrons-right">Open Secutix settings</a></p>

This is useful to:

* Map a Secutix value that is not exposed yet.
* Build a computed field (format, concatenation, conditional value).
* Normalize values so templates stay clean (example: always output a single “entranceLabel” field).

Register `extensions.secutix.movement.mapper` and implement `MapFromSecutix`. The hook runs after the default `ticket.*` mapping, each time the pass data is built from a Secutix movement. The slot file is `server/scripts/secutix.movement.mapper.js`.

The complete contract and a code sample are in [Secutix scripts](https://docs.thewalletcrew.io/developers-guides/scripting/extensions/secutix.md).

When several ticket templates are planned, configure routing rules in [Template selection](https://docs.thewalletcrew.io/connectors/ticketing/secutix/template-selection.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/connectors/ticketing/secutix/wallet-pass-template-and-field-mapping.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
