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

Getting started with the API

Make a first call to The Wallet Crew API: create a tenant API key, authenticate with the X-API-KEY header and update, scan or notify an existing pass.

The Wallet Crew API gives developers programmatic control over passes. To create passes from a backend, see Pass lifecycle API → Creating a pass.

Every API endpoint is scoped to a tenant. All calls include a {tenantId} path segment and an API key issued for that tenant. A tenant is the isolated unit of one brand, region, or program. If the tenant model is not familiar, start with Key concepts.

Prerequisites

Before making a first API call, make sure these items already exist:

  • A pass template configured in the admin console.

  • At least one pass created through the Cinto SDK (see Cinto SDK documentation), a connector, an enrolment form, or POST /passes.

  • An API key for the tenant.

Step 1 — Get the API key

In the admin console, go to Settings → Access control → API keys & secrets and open the API keys tab.

Create a new API key. The key is scoped to the tenant currently selected in the admin console. Copy the key when it is created. It is not shown again.

Step 2 — Use the base URL

The production base URL is https://api.thewalletcrew.io. The staging (QA) base URL is https://api-qa.thewalletcrew.io. API paths have the form https://api.thewalletcrew.io/api/<tenantId>/....

Replace {tenantId} with the tenant identifier. It is the slug in the admin console URL. For example, if the admin console URL contains /tenant/my-brand/, the tenantId is my-brand.

Every API endpoint is tenant-scoped. A key issued for one tenant cannot access another tenant's data.

Step 3 — Authenticate

Include the API key in every request using the X-API-KEY header. The key can also be sent with Basic authentication: use X-API-KEY as the user name and the key as the password. Some operations accept other credentials, such as an admin console bearer token. The API reference lists the accepted authentication and the required scopes for each operation.

Each operation requires a scope named tenant.<area>:<action>, for example tenant.pass:write, tenant.scan:scan or tenant.insights:read.

  • 401 means the key is missing or invalid.

  • 403 means the key lacks the scope the operation requires, or the feature is not enabled for the tenant.

Step 4 — Understand pass identifiers

The API identifies passes through external identifiers — keys that link a pass to source systems such as a CRM ID, loyalty number, or ticket ID. Most endpoints accept an external identifier to target the correct pass.

Some endpoints also use the internal passId. This is common for direct operations such as sending a notification to a specific pass.

Common first calls

Force a pass update

A forced update is often the best first call when passes already exist. It validates tenant scoping, authentication, and provider refresh on a real pass.

Update a pass by identifiers

patch
/api/{tenantId}/passes

Same changes, delivery and responses as PATCH /passes/{passId}, addressing the pass by id or by external identifiers.

PATCH /api/{tenantId}/passes?id.shopify.customerId=12345
{ "additionalData": { "loyaltyTier": "gold" } }
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Query parameters
passTypestringOptional

Query: only a pass of this pass template matches. Use passType in the body to move the pass to another template.

Body

Changes to one pass. Omitted fields are left as they are.

additionalDataobject · nullableOptional

Free data stored with the pass and available to its templates.

themeIdstring · nullableOptional

Theme applied to the pass. Omit or null to leave it unchanged (none on create); an empty string removes it. An unknown id is refused with a 400.

passTypestring · nullableOptional

Pass template to move the pass to. Omitted or blank keeps the current one; an unknown name is refused with a 400.

updateMetadatabooleanOptionalDeprecated

Replaced by options.updateMetadata.

Default: false
bypassQueuebooleanOptionalDeprecated

Replaced by options.bypassQueue.

Default: false
Responses
200

Applied and pushed within the request (options.bypassQueue true).

No content

patch/api/{tenantId}/passes
PATCH /api/{tenantId}/passes HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 178

{
  "identifiers": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "additionalData": null,
  "themeId": null,
  "passType": null,
  "options": {
    "bypassQueue": false,
    "updateMetadata": true,
    "correlationId": null
  }
}

No content

This call tells the platform to re-fetch data from the configured data providers, rebuild the pass, and push the updated version to the device.

Record a scan

When a pass barcode is scanned at a point of sale or access control system, record the event through the Scan API.

Record a pass scan

post
/api/{tenantId}/scans

Finds the pass whose barcode value equals data (the most recently updated wins) and records a Pass:Scanned event with the data and type, which automations can react to. The pass is not changed. Requires tenant.scan:scan.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

A value read from a pass by a scanner, a camera or a keyboard.

datastring · min: 3 · max: 2048Required

The decoded content, exactly as read. It must equal, character for character, one of the barcode values rendered on a pass (trimmed).

typestring · enumRequired

How data was captured. Recorded on the scan event as scannedType, in PascalCase (for example QRCode for qrcode).

Possible values:
Responses
201

Scan recorded; the body names the pass.

The pass the scanned value resolved to.

passIdstringRequired

The pass carrying the scanned value. When several passes carry it, the most recently updated one.

post/api/{tenantId}/scans
POST /api/{tenantId}/scans HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "data": "text",
  "type": "manual"
}
{
  "passId": "text"
}

Send a push notification

Use the notification endpoint to send a push notification to a specific pass holder.

Notify a pass holder by pass id

put
/api/{tenantId}/passes/{passId}/notification

Queued by default: 202 means accepted, not yet sent. options.bypassQueue sends synchronously (200). The message appears on the pass in the wallet: Apple devices also refresh the whole pass; Google passes get the message added.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
passIdstringRequired

Pass id assigned by the platform.

tenantIdstringRequired
Body

The message to show the holder, in one or several languages.

contentstring · nullableOptional

Message for devices whose language has no entry in localizedContent. Optional when localizedContent has text; defaults to the tenant's default language entry, else the first language in ordinal order.

localizedContentobject · nullableOptional

Message per device language. Keys are a lowercase ISO 639-1 code, optionally with an uppercase region (en, fr-FR). Entries with blank text are not sent.

Responses
200

Notification sent synchronously (options.bypassQueue true).

No content

put/api/{tenantId}/passes/{passId}/notification
PUT /api/{tenantId}/passes/{passId}/notification HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "content": null,
  "localizedContent": null,
  "options": {
    "updateData": false,
    "correlationId": null,
    "bypassQueue": false
  }
}

No content

API reference

Use the API reference for endpoint details, request bodies, response schemas, rate limits, and permission requirements.

Last updated