Gérez le cycle de vie des cartes avec l'API
Créez, mettez à jour, notifiez, désactivez et suivez les cartes Apple Wallet et Google Wallet avec l’API The Wallet Crew.
Gérez le cycle de vie des cartes avec l'API
Avant de gérer une carte
Modèle d'état de la carte
Création d'une carte
POST /api/{tenantId}/passes?passType=loyalty
{
"identifiers": {
"shopify.customerId": "12345",
"shopify.customerId.hmac": "{hmac-of-12345}"
},
"additionalData": { "loyaltyTier": "silver" }
}POST /api/{tenantId}/passes?passType=loyalty
{
"identifiers": { "shopify.customerId": "12345" },
"additionalData": { "loyaltyTier": "silver" }
}Type of the pass to create. Must match a file in the tenant server/passes/ configuration.
Data payload for pass creation operations.
Arbitrary data to persist with the pass (for example, loyalty tier, store code, or campaign flags).
Extensibility data related to this pass.
Pass created successfully.
Identifiers cannot be validated and caller lacks Pass.Write scope.
Mise à jour des données de la 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
Comportement des notifications push
Envoi d'une notification autonome
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
Suppression du Wallet
FAQ
Mis à jour

