How to Use Webhooks with AddToWallet
Webhooks allow your application to receive real-time notifications whenever a pass is added to or removed from a user's wallet. Instead of constantly checking pass activity, your server is automatically notified whenever these events occur.
A webhook is an HTTP endpoint that AddToWallet calls whenever a pass-related event occurs.
Every webhook receives notifications for both supported events:
pass-saved – Triggered when a user adds a pass to their wallet.
pass-removed – Triggered when a user removes a pass from their wallet.
There is no need to subscribe to individual events separately.
Example webhook URL:
https://your-domain.com/webhooks/atw
Once created, AddToWallet will begin sending pass activity notifications to this endpoint.

Whenever a pass is saved or removed, AddToWallet sends an HTTP POST request containing a JSON payload.
Example Payload:
{
"eventType": "pass-saved",
"passid": "665f0c2a9b1e4d0012abcd34"
}
| Field | Description |
|---|---|
eventType |
The event that occurred. Possible values are pass-saved and pass-removed. |
passid |
The unique identifier of the pass associated with the event. |
For added security, you can set a password when creating a webhook.
When configured, AddToWallet sends the password in the Authorization header of every webhook request.
Example:
Authorization: your-secret-password
On your server, compare the incoming Authorization header with your stored password and reject requests that don't match.
For added security, you can set a password when creating a webhook.
When configured, AddToWallet sends the password in the Authorization header of every webhook request.
Example:
Authorization: your-secret-password
On your server, compare the incoming Authorization header with your stored password and reject requests that don't match.
The password verifies the sender's identity but does not encrypt or digitally sign the request body.
Webhooks provide a simple way to receive real-time pass activity updates from AddToWallet. By handling the pass-saved and pass-removed events on your server, you can automate workflows, update databases, trigger notifications, and build powerful integrations with your wallet passes.
Get Started For Free
Join the expanding network of more than 10k+ users
No credit card needed to start trial
addtowallet.co © All Rights Reserved