Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
GuideAPIIntegration

Webhooks

Receive real-time events from The Wallet Crew with webhooks: create endpoints in the admin console or API, filter events, validate signatures, read payloads.

Webhooks let external systems receive real-time notifications when something happens in The Wallet Crew. Register an 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.

Real-world examples
  • 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).

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

How a delivery works

The Wallet Crew checks each event against the webhook subscriptions of the tenant. For every match, it signs the JSON body and sends one POST request to the endpoint.

Delivery is at most once. The Wallet Crew does not retry. A non-2xx answer or a connection error is only logged on the platform side, so an endpoint that is down misses the events sent in the meantime.

Create and manage a webhook

Create webhooks in the admin console, or with the REST API when registration must be automated in a deployment pipeline. A webhook defines where to send requests, which events to send, and whether delivery is active.

Admin console

Open Settings → General → Webhooks. The list shows each webhook with its Description, Endpoint, Events, and Enabled status. Create a webhook, or open an existing one, to edit its form.

New webhook form with the Description, Endpoint and Events fields and the Active toggle
Configure which events are delivered to which endpoint.
Field
Meaning

ID

Generated and read-only. Use it to reference the webhook through the API.

Secret

The HMAC signing key. A show/hide toggle controls its visibility. The console shows it again at any time, and the API returns it as signatureSecret. Store it server-side only.

Active / Inactive

A toggle that pauses or resumes delivery without deleting the webhook.

Description

A label for reference.

Endpoint

The URL that receives the POST requests.

Events

One or more event filters. Use Add event, or the remove icon next to an entry, to manage the list.

A new webhook starts inactive, in the console and the API.

In the admin console the endpoint must be an https:// URL. The API also accepts http, but use https. The endpoint must be reachable from the public internet: the platform refuses private-network addresses.

Event filters

Each Events entry is a string. An entry matches an event name exactly, or as a prefix when it ends with *. Matching is case-sensitive. A * anywhere else in the entry is a literal character. At least one event is required.

Entry
Meaning

*

All events.

Pass:*

All events whose name starts with Pass:.

Pass:Created

One specific event.

You can combine filters in one webhook, for example ["Customer:*", "Pass:Created"] or ["Pass:*", "Redirect:Redirected"]. Use wildcards carefully: you may receive more events than you need.

REST API

The API needs the scope tenant.webhook:read to read webhooks and tenant.webhook:write to change them. Webhooks must be enabled for the tenant, otherwise the API answers 403.

To create a webhook, send:

  • endpoint: the URL that receives POST requests (http or https, https recommended).

  • events: the event filters, as described above.

  • enabled: whether delivery is active. It defaults to false.

Create a webhook

post
/api/{tenantId}/webhooks

Applies from the next matching event. The id and signatureSecret are generated; Location points to the subscription.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

The editable part of a webhook subscription.

or
Responses
201

Subscription created.

A stored webhook subscription, with generated values.

descriptionstring · nullableOptional

Free text; unused by the platform. Omitted on update, it is cleared.

eventsstring[] · min: 1Required

Event names that trigger a delivery. An entry matches an exact name, or every name starting with the text before a trailing * (Pass:*; * alone matches all). A * elsewhere is literal.

endpointstring · uriRequired

URL receiving each matching event as a JSON POST with headers X-NEOSTORE-TENANTID, X-NEOSTORE-EVENTNAME and X-NEOSTORE-SIGNATURE.

enabledbooleanOptional

Whether events are delivered; a disabled subscription is kept but receives nothing. Default false, also when omitted on update.

Default: false
idstring · min: 1Required

Id assigned on creation; immutable; the id of the other webhook routes.

signatureSecretstring · min: 1Required

Secret generated on creation, used to sign deliveries; never changes. Keep it server-side.

post/api/{tenantId}/webhooks
POST /api/{tenantId}/webhooks HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 87

{
  "description": null,
  "events": [
    "text"
  ],
  "endpoint": "https://example.com",
  "enabled": false
}
{
  "id": "text",
  "signatureSecret": "text",
  "description": null,
  "events": [
    "text"
  ],
  "endpoint": "https://example.com",
  "enabled": false
}

The response includes the webhook id and signatureSecret. List and get operations return the secret too.

To update a webhook, use PUT /webhooks/{id}. It replaces the whole webhook, it does not merge: an omitted description is cleared and an omitted enabled disables the webhook. Send enabled: true on every update. Use GET to list or read webhooks and DELETE to remove one.

For the full API definition, use the API reference.

What The Wallet Crew sends

Each delivery is an HTTP POST request with headers and a JSON body. The body depends on the event type.

HTTP headers

The prefix neostore is the platform's former name and is kept in technical identifiers.

Header
Content

X-NEOSTORE-SIGNATURE

HMAC-SHA256 signature of the JSON body.

X-NEOSTORE-EVENTNAME

The event that triggered the webhook, for example Customer:Upserted.

X-NEOSTORE-TENANTID

The tenant identifier in The Wallet Crew.

HTTP header names are case-insensitive.

Payload envelope

Every payload includes these metadata fields:

  • __id: the same value for every webhook subscribed to one occurrence of an event.

  • __creationDate: the UTC time the event was raised.

  • __eventName: the event name.

Enum values are serialized as names. Properties with a null value are omitted.

Process events reliably

Design the receiver to be available and fast. A common pattern is to validate the signature, enqueue the event internally, then return 2xx.

Use __id to ignore duplicates when the same occurrence reaches your system through more than one webhook subscription.

Verify webhook authenticity

Validate every request using the signature header. This proves that The Wallet Crew sent the request and that the body was not modified in transit.

The signature is the HMAC-SHA256 of the UTF-8 JSON body. The key is the UTF-8 bytes of the webhook secret. The value is sent as uppercase hexadecimal, with no separator. Compute the same value over the raw body and compare it with the header, ignoring case.

Events

The event list evolves. Use the API reference as the source of truth for payload shapes. These are the event names the platform raises:

Category
Events

Pass

Created, Updated, ThemeChanged, PassTypeChanged, IdentifiersChanged, MetadataChanged, Installed, Uninstalled, UpdateSent, Scanned, NotificationSent, LinkOpened, GoalReached, StampApplied, StampsReset

Benefit

Created, Updated, Deleted, MovementApplied

BenefitTemplate

Created, Updated, Deleted

Theme

Created, Updated, Deleted

Automation

Created, Updated, Deleted, Executed

Import

Started, Completed, Failed

Campaign

LinkOpened, LinkDeliveryReported

Device

Created, Deleted, Connected, SessionStarted, SessionEnded

CustomDomain

Added, Verified, Activated, Removed

User

Created, Updated, Deleted, Invited, InvitationOpened, InvitationRenewed, Activated, AccessGranted

Tenant

Created, StatusChanged, PurposeChanged

TenantConfiguration

Created, Updated, Deleted

Customer

Upserted

Redirect

Redirected

Google

DiscoverableProgramSignin, DiscoverableProgramSignup

TenantConfiguration events carry the tenantId. TenantConfiguration:Updated also carries previousVersion, newVersion and modifiedFiles, the list of configuration files that changed.

Connector events also exist: Y2:*, UR:*, Hiboutik:*, SFMC:*, Yurplan:*, Bloomreach:Customer:Upserted and Secutix:Order:Updated.

Customer and redirect events

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

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

Pass lifecycle events
  • Pass:Installed includes device fields.

  • Pass:ThemeChanged is sent when a pass moves onto a different theme or has its theme removed. It carries the theme before and after the change.

  • Pass:Created carries creationSource. Its reason holds type, flowName, providerName and userId. creationSource also carries tags, medium, origin and user agent. The reason type is one of api, web, provider, customerRegistration, appleRecovery, mcp, benefit or partnerWebhook. When the type is api, userId is the user identifier or apiKey:{keyName}.

  • Pass:Uninstalled is sent each time the pass is removed from the last device of a wallet, so it is per wallet. Wallet removal explains how the wallets report a removal. The payload includes:

    • passId, passType, identifiers, and metadata.

    • device and deviceIdentifier. Google does not report a device identifier, so deviceIdentifier is absent for Google.

    • registrationInformation.activeRegistrationCount and registrationInformation.totalRegistrationCount.

Theme events

Theme:Created, Theme:Updated and Theme:Deleted are sent when a theme is added, saved or removed. Each carries two objects:

  • theme: themeId, name and tags. On Theme:Deleted, these describe the theme as it was before deletion; its colors and images are not included.

  • user: who made the change, described in Identify who made a change.

Theme:Updated does not say which parts of the theme changed.

Pass:ThemeChanged carries the pass, the theme it carries now and the theme it carried before. Either can be empty: empty before means the pass had none, empty after means the theme was removed. It is sent only when the assigned theme differs: re-saving the same theme sends no event, and creating a pass with a theme sends Pass:Created, not Pass:ThemeChanged. The same applies to admin console, automation and API changes. Pass:Created and Pass:Updated carry the theme the pass carries. Use Pass:ThemeChanged to measure campaign assignment without comparing pass histories.

The theme rules themselves are described in Wallet pass themes.

Identify who made a change

Configuration events name the person or API key behind a change, so that you can keep an audit trail outside The Wallet Crew. Theme, automation and benefit template events (Theme:*, Automation:*, BenefitTemplate:*) carry the same user object, with three fields:

  • credentialType: User for a signed-in admin console user, ApiKey for an API key, Unknown when the change happened outside a request and carries no identity.

  • id: the user identifier at the identity provider for a User, apiKey:{name} for an ApiKey. It can be empty when credentialType is Unknown. It is the same identifier the configuration history records for that change.

  • name: a display name, when the credential carries one. For an API key, it is the name the key was issued under.

None of these objects includes an email address. The users API resolves a user identifier to a person, with its email and name.

Pass events carry no user object. The one exception is Pass:Created, which names its origin in creationSource (see above).

FAQ

Can I read the Secret later?

Yes. Open the webhook in the admin console and use the show/hide toggle, or read signatureSecret through the API with the scope tenant.webhook:read. Store the Secret server-side.

Last updated