Getting started with the API
Make a first tenant-scoped API call against an existing pass in The Wallet Crew.
Getting started with the API
Prerequisites
Step 1 — Get the API key
Step 2 — Understand the base URL
Step 3 — Authenticate
Step 4 — Understand pass identifiers
Common first calls
Force a pass update
PATCH /api/{tenantId}/passes?id=xK9mP2nQr7sT
{
"additionalData": { "loyaltyTier": "gold" },
"options": { "updateMetadata": true }
}PATCH /api/{tenantId}/passes?id.shopify.customerId=12345
{
"identifiers": { "email": "[email protected]" },
"additionalData": { "loyaltyTier": "gold" },
"options": { "updateMetadata": false }
}type of the pass to update. type name should be one of the file in the server/passes/ tenant configuration.
Data payload for single pass update operations.
Arbitrary data to persist with the pass (for example, loyalty tier, store code, or campaign flags).
Optional pass type to convert the pass to.
Specifies if passes metadata should be updated. Updating metadata is time consuming and could be avoided for notification only push update
falseIndicates whether the push update should bypass the queue and run immediately. Queuing helps protect the system load and should only be bypassed when required.
falsePass update enqueued or applied successfully.
No content
No pass found matching the provided identifiers.
No content
Record a scan
Raw Data of the scan value
Type of data
Scan successfully recorded; pass identifier returned
Identifier of the pass
Invalid scan request (data too short/long, missing type)
Not authorized or invalid credentials
No pass found with matching scan data
Processing error during scan event generation
Send a push notification
Send a notification to the pass identified by its pass identifier
The internal identifier of the pass
Could be null if LocalizedContent is specified
Localized notification content by language code. Key: ISO 639-1 code or "iso2-region" (e.g., "en", "en-US"). Value: The notification content for that language.
OK
No content
Not Found
No content
API reference
FAQ
Last updated

