Skip to main content
This page lists all webhook events Stash can send to your backend. Each event is triggered by a specific user action or system event. Use the table below to see what’s available, then expand the tabs for full payload examples.
Product-specific events: Some events are specific to Stash Pay or Stash Webshop. See the Stash Pay integration guide or Stash Webshop integration guide for product-specific webhook details.

Available webhooks

PURCHASE_SUCCEEDED is the primary event for granting items; always subscribe to it. PURCHASE_REFUNDED should be handled to revoke or adjust granted items. The remaining events are optional and used mainly for analytics, marketing, and behavior tracking. CATALOG_REJECTED, CATALOG_ITEMS_DROPPED, CATALOG_DATA_CONFLICT and CATALOG_TEXT_FALLBACK report problems in your Real-time Catalog that you can fix. To start receiving them, contact your Stash engineering partner. LOGIN_FAILED is off by default, so an endpoint that rejects unknown event types is not affected. Once your endpoint accepts the event, contact your Stash engineering partner to turn it on for your shop.

Payload structure

All v1 webhooks follow a consistent base structure:
Base Webhook Structure
type, environment and shopId are on every v1 event. The event’s payload sits under a key named for the event, such as purchaseSucceeded for PURCHASE_SUCCEEDED; each example below shows its key.
  • environment is "test" (test/staging) or "production" (live). Use it to distinguish test traffic from real transactions.
  • shopId is the ID of the shop that sent the event. Use it to route events when one endpoint serves several shops.

Webshop session

checkoutSessionId identifies one player’s browsing session in your webshop. Events from the same session carry the same value, from catalog views through checkout and the purchase. After 30 minutes without activity, the player’s next action starts a new session with a new checkoutSessionId. A new browser tab can also start a new session. Treat it as an opaque string.
  • Group a session’s events: collect every event with the same checkoutSessionId.
  • Join a purchase to its funnel: a PURCHASE_SUCCEEDED or PURCHASE_FAILED carries the checkoutSessionId of the views and clicks that led to it.
  • Match the purchase to your purchase calls: use transactionId (or orderId on a "Cart" purchase), as described under PURCHASE_SUCCEEDED. checkoutSessionId is not sent on RegisterPayment or ConfirmPayment.
On PURCHASE_REFUNDED, checkoutSessionId is the session of the original purchase, not of the refund. These events can carry it: PURCHASE_SUCCEEDED, PURCHASE_FAILED, PURCHASE_REFUNDED, FREE_ITEM_REDEEMED, LOGGED_IN, VIEW_ITEM, VIEW_CATALOG_SECTION, VIEW_CHECKOUT_PAGE, VIEW_PRODUCT_DETAIL_PAGE, CART_BUTTON_CLICK, BUY_NOW_ITEM_CLICK and PAY_BUTTON_CLICK. It is omitted when the event is not tied to a webshop session, for example a purchase through a Stash Pay checkout link your backend created. It may also be omitted when analyticsConsent is "DECLINED" or "UNANSWERED". OPEN_PAYMENT, MUTATE_CART, LOYALTY_MILESTONE_CLAIMED, LOGIN_FAILED, OFFER_SLOT_MISMATCH and the CATALOG_* events never carry it. analyticsConsent is the player’s answer to your webshop’s analytics consent banner. VIEW_ITEM, VIEW_CATALOG_SECTION and BUY_NOW_ITEM_CLICK carry it. Depending on your webshop, userId and checkoutSessionId are either sent with every answer, or omitted unless the answer is "ACCEPTED". A view or click without a userId can also come from a signed-out visitor. To find out which applies to your shop, contact your Stash engineering partner. The field is omitted when no answer was reported, for example when your webshop shows no consent banner. It describes the banner answer only: it is not a permission that Stash grants, and it does not authenticate the event.

Detailed payload examples

Pick the event you’re integrating to see its full JSON payload.
Triggered when a purchase is successfully completed. The source field says where the purchase started:To match the event to the purchase your backend saw on RegisterPayment or ConfirmPayment, use transactionId: it is the transaction ID Stash sent on those calls. On a "Cart" purchase, orderId carries that ID. transactionId may be absent on a "Cart" purchase, so match on orderId there.Each entry in items describes one purchased item. For a Real-time Catalog, the offer fields repeat what your catalog sent for that item when the purchase started, so you can attribute the purchase to the offer as the player saw it:Optional fields are omitted when Stash has no value for them, for example when the catalog did not send them. PURCHASE_FAILED and PURCHASE_REFUNDED items carry the same fields.paymentMethodType says how the player paid. It is omitted when the payment method is unknown.taxInclusive says whether the item prices already include tax. It has the same value as on the purchase’s ConfirmPayment:taxInclusive is absent only when Stash cannot determine the tax mode. isInclusive on each taxDetails line gives the same mode per tax line. For a purchase without a cash coupon, total, minus tax when taxInclusive is false, equals the sum of price × quantity over items.
Purchase Succeeded Event (Stash Pay example)

Common fields

Several fields appear across multiple webhook types. Only type, environment and shopId are on every v1 event; check the event’s example above for the rest.

Subscription Events (v2)

Subscription webhooks use a v2 payload format with lowercase dot-notation event types, unlike the v1 format used by purchase and webshop events above.
Subscription events notify your system of subscription lifecycle changes. See the Subscriptions guide for full integration details.

Available subscription events

v2 Payload structure

Subscription webhooks use a different structure from v1 events:
v2 Webhook Structure

Detailed subscription payloads

Triggered when a new subscription is created.
subscription.created

Subscription object fields


Payment Events (v2)

Payment webhooks notify your backend about individual payment outcomes. They use the same v2 payload format as subscription events (type + data). These events fire for subscription payments and other Stash Pay checkout flows.

Available payment events

Detailed payment payloads

Triggered when a payment completes successfully.
payment.succeeded

Payment object fields