circle-exclamation
This documentation is currently under development. Certain sections are not yet complete and will be added shortly.

Webhook

Receive real-time events from The Wallet Crew via HTTPS webhooks. Create endpoints, validate signatures, and handle common event payloads.

Webhooks let your systems receive real-time notifications when something happens in The Wallet Crew. You register an HTTPS endpoint, select events, and The Wallet Crew sends a POST request each time one of those events occurs.

This is the simplest way to keep your CRM, analytics, or operational systems in sync without polling APIs.

chevron-rightReal-world exampleshashtag
  • Send a “pass installed” event to your CRM to measure adoption per campaign.

  • Trigger a customer welcome journey when a customer profile is upserted.

  • Log pass lifecycle events (Pass:Created, Pass:Updated) to your data warehouse.

  • Track in-store QR usage by listening to redirect events (Redirect:Redirected).

circle-info

If you also enforce network restrictions, you can allowlist The Wallet Crew outgoing IPs. Do not rely on IPs only. Always validate x-neostore-signature.

See Infrastructure.

Create and manage a webhook

You manage webhooks from the API endpoint POST /api/{tenantId}/webhooks. A webhook defines three things: where to send requests, which events to send, and whether the webhook is enabled.

Create a webhook (API)

When creating a webhook, send:

  • endpoint: the HTTPS URL that will receive POST requests.

  • events: the events you want to subscribe to.

  • enabled: whether delivery is active.

You can subscribe to multiple events in one webhook. You can also use * to subscribe to all sub-events under a category.

Example: subscribe to all customer events and to Pass:Created.

circle-exclamation

If creation succeeds, the API returns the webhook object, including id and signatureSecret.

Update, list, and delete

You can manage webhooks using GET, PATCH, and DELETE on the same resource.

For the full API spec, see the API reference.

Webhook configuration screen showing event subscriptions and endpoint URL.
Configure which events are delivered to which endpoint.

What The Wallet Crew sends (headers and payload)

Each webhook delivery is an HTTP POST request with headers and a JSON body. The body depends on the event type. Every payload includes the event metadata fields prefixed with __.

HTTP headers

  • x-neostore-signature: HMAC SHA-256 signature of the request body, generated using your signatureSecret.

  • x-neostore-eventname: event name that triggered the webhook (example: Customer:Upserted).

  • x-neostore-tenantid: tenant identifier in The Wallet Crew.

Example payload

How to process events reliably

Use __id as an idempotency key. If your endpoint receives the same payload twice, you can safely ignore the duplicate.

Keep your handler fast. A common pattern is to validate the signature, enqueue the event internally, then return 2xx.

Verify webhook authenticity (signature)

Validate every webhook request using x-neostore-signature. This ensures the request body was sent by The Wallet Crew and was not modified in transit.

To validate it, compute an HMAC SHA-256 of the raw request body using your signatureSecret, then compare it with the header value.

circle-exclamation

Common events

The event list evolves. Use the API reference as the source of truth for event names and payload shapes: API reference.

Below are the most common events teams integrate with.

chevron-rightCustomer eventshashtag

Customer:Upserted is sent when a customer is created or updated.

chevron-rightPass lifecycle eventshashtag

Typical pass lifecycle events:

  • Pass:Created

  • Pass:Installed

  • Pass:Uninstalled

  • Pass:Updated

  • Pass:UpdateSent

Example: Pass:Installed includes device fields.

chevron-rightRedirect eventshashtag

Redirect:Redirected is sent when a user opens a minified URL (redirect).

FAQ

chevron-rightCan I subscribe to all events?hashtag

Yes. Use the * wildcard in the events array, for example Customer:*, to subscribe to all customer sub-events.

Use this carefully. You may receive more events than you need.

chevron-rightShould my endpoint be public?hashtag

Yes. The endpoint must be reachable from The Wallet Crew over HTTPS.

If you restrict inbound traffic, allowlist The Wallet Crew outgoing IPs and still validate the signature.

chevron-rightWhere do I find the exact payload schema for an event?hashtag

Use the API reference. It is the source of truth for event names and payload shapes.

Start here: API reference.

Last updated