Premiers pas avec l’API
Effectuez un premier appel d’API limité à un locataire sur une carte existante dans The Wallet Crew.
Premiers pas avec l’API
Prérequis
Étape 1 — Obtenir la clé API
Étape 2 — Comprendre l’URL de base
Étape 3 — S’authentifier
Étape 4 — Comprendre les identifiants de carte
Premiers appels courants
Forcer la mise à jour d’une carte
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.
Aucun contenu
No pass found matching the provided identifiers.
Aucun contenu
Enregistrer un 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
Envoyer une notification push
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
Aucun contenu
Not Found
Aucun contenu
Référence de l’API
FAQ
Mis à jour

