> 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/distribution.md).

# Distribution

Deliver Secutix tickets to Apple Wallet and Google Wallet through email links or embedded Add to Wallet buttons, using The Wallet Crew Secutix connector.

Distribution is how buyers add Secutix tickets to Apple Wallet and Google Wallet. A hosted download link can be shared, or an **Add to Wallet** button can be embedded. Place the CTA where buyers already are.

Common touchpoints:

* Confirmation email (hosted link)
* Secutix ticket shop order confirmation page (embedded button)
* The brand website (embedded button)
* SMS link (useful few hours before the show)

## Hosted download page (send via email)

This is the simplest path for buyers. It works well when Secutix already sends a confirmation email after purchase.

{% hint style="info" %}
This page does not require authentication. Buyers can open the email a few minutes before the show and add tickets to their wallet. They do not need to remember their ticket shop login and password.
{% endhint %}

The Wallet Crew exposes an order page optimized for mobile. On iOS, it shows the Apple Wallet button. On Android, it shows the Google Wallet button. On desktop, it falls back to a QR code.

The page lists every ticket in the order. Buyers can add tickets from the same link, without re-opening the email.

<div align="center"><figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-710ed838f15dca1f1d830138ab369cc7abb2b208%2Fsecutix-hosted-download-ios.png?alt=media" alt="Hosted download page on iOS showing the ticket list and Apple Wallet button." width="250"><figcaption><p>Hosted download page on iOS.</p></figcaption></figure> <figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-53590287b1ea7a0af52a31a81f3db2f3894a8dfb%2Fsecutix-hosted-download-android.png?alt=media" alt="Hosted download page on Android showing the ticket list and Google Wallet button." width="245"><figcaption><p>Hosted download page on Android.</p></figcaption></figure></div>

<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-dcb63f53b68972378f284bf1fefa807b0f03ea77%2Fsecutix-hosted-download-desktop.png?alt=media" alt="Hosted download page on desktop showing the ticket list and QR code fallback." width="563"><figcaption><p>Hosted download page on desktop.</p></figcaption></figure></div>

### URL template

Use this URL in Secutix confirmation emails. Replace `<customdomain>` (see [Environments and URLs](https://docs.thewalletcrew.io/connectors/marketing-automation.md#environments-and-urls)) and `<tenantId>` with the tenant values.

```
https://<customdomain>/<tenantId>/tickets?ids.secutix.orderToken=$document.order.secretToken
```

### Layout requirement

The hosted page uses a layout named `tickets`. Create it in The Wallet Crew layouts.

{% code title="Layout configuration (example)" %}

```yaml
type: passList
internationalization:
  resources:
    - /locales/tickets/
headerImage: /public/header.png
```

{% endcode %}

{% hint style="info" %}
Contact The Wallet Crew support for help configuring this layout.
{% endhint %}

## Add to Wallet in the ticket shop

Use this when the CTA should appear directly in the ticket shop UI. This is the best flow for mobile buyers who want to save the ticket right away.

This integration is typically implemented by Secutix. Confirm it is included in the Secutix scope if it is not visible.

<figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-fe01880933d903d42b3cf58e0d586f03d75b815d%2Fsecutix-ticket-shop-add-to-wallet.png?alt=media" alt="Add to Wallet button embedded in the Secutix ticket shop order confirmation page."><figcaption><p>Add to Wallet button in the ticket shop.</p></figcaption></figure>

## Add the Add to Wallet button on an owned website

Use this when the page is under brand control. Typical examples are an account page, a **My tickets** page, or a post-purchase landing page.

The Wallet Crew SDK (`cinto`) renders the button and detects the device. It shows **Apple Wallet** on iOS and **Google Wallet** on Android. On desktop, it falls back to a QR code.

It follows Apple and Google button guidelines. It stays compatible through SDK updates. It supports localization based on the user language. It also protects distribution integrity.

### Prerequisites

Before integrating the SDK, confirm three things. The Wallet Crew tenant has the right **Event ticket** template(s). The Wallet Crew is connected to Secutix through the Secutix connector. The page where the button should render can be modified.

{% hint style="info" %}
The Wallet Crew Secutix integration uses Secutix `movementId` to uniquely identify a ticket pass.
{% endhint %}

### Script initialization

Copy the snippet, with the tenant ID filled in, from the **Snippet** tab of the Secutix connector settings, and load it once per page, ideally in the footer. When copying it from this page, replace `{tenantId}` with The Wallet Crew tenant ID.

<figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-9a2c30e62fd0502d49d3ba1fd124a7bca5301a66%2Fsecutix-sdk-snippet-page.png?alt=media" alt="SDK snippet shown in the Secutix integration settings page."><figcaption><p>SDK snippet available in the Secutix integration settings.</p></figcaption></figure>

```html
<script type="text/javascript">
(function (n, e, o) {
    var s=n.createElement("script");
    s.src="https://sdk.neostore.cloud/scripts/"+e+"/cinto@1";
    s.async=1;
    s.onload=function(){neostore.cinto.initialize(e,o);n.body.appendChild(s);};
})(document, "{tenantId}", { });
</script>
```

{% hint style="info" %}
The SDK and its `neostore` namespace keep a legacy name from the former product name. The attribute names below (`data-neostore-...`) are the real ones. Browsers lowercase attribute names, so the key `secutix.movementId` is written `secutix.movement_Id`: the SDK reads an underscore followed by a letter as that letter in uppercase. The button examples on the **Snippet** tab still write `secutix.movementId`: use `secutix.movement_Id` as shown below.
{% endhint %}

### Button examples

All options below render the same button. They only differ in how the button identifies the ticket.

<details>

<summary>Using <code>movementId</code>, <code>fileId</code>, <code>contactId</code>, and <code>ticketId</code></summary>

```html
<div data-neostore-addToWalletButton
     data-neostore-externalIdentifiers-secutix.movement_Id-value="<movementId>"
     data-neostore-externalIdentifiers-secutix.movement_Id-secret="<fileId>|<contactId>|<ticketId>">
</div>
```

</details>

<details>

<summary>Using HMAC calculation</summary>

```html
<div data-neostore-addToWalletButton
     data-neostore-externalIdentifiers-secutix.movement_Id-value="<movementId>"
     data-neostore-externalIdentifiers-secutix.movement_Id-hmac="<hmac_sha256(secret, movementId)>">
</div>
```

</details>

<details>

<summary>Using <code>passId</code> only (resolved server-side)</summary>

```html
<div data-neostore-addToWalletButton
     data-neostore-passId="<passId>">
</div>
```

</details>

### Notes

Two attributes prove that the visitor may get the ticket:

* `-secret`: the value `<fileId>|<contactId>|<ticketId>`. The Wallet Crew checks it against the Secutix order of the movement.
* `-hmac`: the HMAC-SHA256 of the `movementId`, keyed with the tenant secret, in hexadecimal or Base64.

Keep HMAC computation server-side. Never expose the signing secret in the browser.

When `passId` is needed, retrieve it server-side by querying existing passes using the Secutix `movementId` (this does **not** create a pass):

```bash
# Filter: identifiers.secutix.movementId equals {movementId} (URL-encoded below)
curl 'https://api.thewalletcrew.io/api/{tenantId}/passes?pageIndex=0&pageSize=21&filter%5B0%5D.field=identifiers.secutix.movementId&filter%5B0%5D.operator=equals&filter%5B0%5D.value={movementId}' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'X-API-KEY: xxxx'
```

On QA, use `api-qa.thewalletcrew.io`. Pick the `id` from the response payload. That value is the `passId` to feed to the SDK. API reference: [GET /api/{tenantId}/passes](https://docs.thewalletcrew.io/api-reference/pass-management/pass.md#get-api-tenantid-passes).

For the full website integration guide, see [On your website](https://docs.thewalletcrew.io/guides-enrolment/enrolment/on-your-website.md).

## FAQ

<details>

<summary><strong>Why does the hosted download page link not work (ticket not found / token invalid), and how is it fixed?</strong></summary>

This means the hosted page cannot resolve the order from the token. The token in the URL is missing or wrong.

Use the exact URL template from this page. Ensure the token variable is populated. Ensure the email tool does not truncate the URL. If the order was replaced, send the buyer a fresh link.

</details>

<details>

<summary><strong>Why does the Add to Wallet button show the wrong platform (or only a QR code)?</strong></summary>

The button selects Apple vs Google vs desktop from the user agent. Embedded browsers can make this detection wrong. “Request desktop site” also breaks detection.

Have the buyer open the page in the system browser. Use Safari on iOS. Use Chrome on Android. On desktop, the QR code is the expected fallback.

On the desktop view, a **Need help?** link under the QR code opens a dialog with both the Apple Wallet and Google Wallet buttons.

</details>

See [Updates, lifecycle, and installation status](https://docs.thewalletcrew.io/connectors/ticketing/secutix/updates-lifecycle-and-installation-status.md) for exchanges, cancellations, and refresh behavior.


---

# 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/distribution.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.
