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.
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.
401means the key is missing or invalid.403means 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.
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" } }Query: only a pass of this pass template matches. Use passType in the body to move the pass to another template.
Changes to one pass. Omitted fields are left as they are.
Free data stored with the pass and available to its templates.
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.
Pass template to move the pass to. Omitted or blank keeps the current one; an unknown name is refused with a 400.
Replaced by options.updateMetadata.
falseReplaced by options.bypassQueue.
falseApplied and pushed within the request (options.bypassQueue true).
No content
Queued.
The body's passType or themeId names a template or theme the tenant does not have, or id is combined with other identifiers.
The caller is not authenticated.
The caller lacks the tenant.pass:write scope, or the endpoint is not enabled for the tenant.
No pass matches the identifiers, or no id or id. parameter is given, or the tenant does not exist.
Synchronous update only: the pass was changed concurrently; retry the request.
Over 50000 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
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.
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.
A value read from a pass by a scanner, a camera or a keyboard.
The decoded content, exactly as read. It must equal, character for character, one of the barcode values rendered on a pass (trimmed).
How data was captured. Recorded on the scan event as scannedType, in PascalCase (for
example QRCode for qrcode).
Scan recorded; the body names the pass.
The pass the scanned value resolved to.
The pass carrying the scanned value. When several passes carry it, the most recently updated one.
data is missing or outside 3 to 2048 characters, or type is missing or unknown.
The caller is not authenticated.
The caller lacks the tenant.scan:scan scope, or the endpoint is not enabled for the tenant.
No pass carries the scanned value, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
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.
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.
Pass id assigned by the platform.
The message to show the holder, in one or several languages.
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.
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.
Notification sent synchronously (options.bypassQueue true).
No content
Notification queued for delivery.
Neither content nor localizedContent has text, or correlationId is outside 10 to 100 characters.
The caller is not authenticated.
The caller lacks the tenant.pass:write scope.
No pass has this id, or the tenant does not exist.
Over 50000 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
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

