Skip to navigation

Redeem a wallet pass

View as Markdown

Record that a wallet pass installation was scanned or redeemed. This issues an installation_scanned event that can trigger automations and update contact segments (for example to track store visits, event attendance or loyalty check-ins). The request body is optional; any details supplied (location, amount spent, event tag, custom data) are carried on the event.

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

OR
AuthorizationBearer

OAuth 2.0 client_credentials (machine-to-machine) grant. Exchange your app’s client_id/client_secret for a short-lived Bearer token.

Path parameters

installationIdstringRequiredformat: "uuid"

Installation ID. The unique identifier of the pass installation being redeemed (as issued when the contact added the pass to their wallet).

Request

Optional details about the scan/redemption.

amountSpentfloatOptional

Amount spent during the visit or transaction. Useful for point-of-sale integrations and purchase tracking.

customDatamap from strings to anyOptional

Arbitrary key/value pairs to attach to the scan event. Forwarded as-is to automations and segmentation (e.g. register id, cashier, department).

eventTagstringOptional

Free-form tag identifying the event or context of the scan (e.g. an event name a contact attended). Useful to segment or route automations.

locationstringOptional
Location where the scan occurred. Can be a store name, address, or any identifier relevant to your use case.

Response

Redemption recorded successfully.
messagestring

Human-readable confirmation message.

successboolean

Indicates whether the scan/redemption was recorded.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error