# Stash Documentation > This file is very large and may be truncated. For an index of this content, please refer to https://stash-gg.mintlify.app/llms.txt instead. > Integrate Stash Pay, Stash Webshop, and Stash Launcher. Guides and partner resources for the Stash direct-to-consumer platform. # Getting Started Source: https://stash-gg.mintlify.app/api/egress APIs you can expose on your game backend server to power a WebShop via Real-time Catalog, and/or StashPay checkout links. ## What this section is Reference endpoints that Stash calls on your backend. This is an **egress** integration: Stash calls your backend. You implement and host these APIs, and Stash invokes them during catalog and checkout flows. > [!NOTE] > > **Skip the API reference**: You can [generate type-safe clients](/guides/stash-webshop/catalog/real-time-catalog#generate-clients-or-review-the-api-reference) from our protobufs and let your IDE's autocomplete guide the integration - no need to read through the API specification below. Implement these endpoints in your backend, keep request/response contracts aligned with the reference, and return validation outcomes exactly as documented. ## Your backend URL These endpoints are hosted by your backend. This reference has no shared server URL; use your own backend URL when implementing and testing the contract. ## Endpoints Choose an endpoint from the sidebar to view its request parameters, authentication, response schemas, and code examples. # Get product catalog Source: https://stash-gg.mintlify.app/api/egress/catalog/getcatalog /egress-openapi.json get /api/v1/catalog Retrieves the complete product catalog including all purchasable items, offer chains, and non-purchasable display items organized in rows. # Get offer details Source: https://stash-gg.mintlify.app/api/egress/catalog/getofferdetails /egress-openapi.json get /api/v1/catalog/offer Retrieves detailed information about a specific offer, including reward details and tabbed content with structured data tables for each item. # Get player by ID Source: https://stash-gg.mintlify.app/api/egress/players/getplayer /egress-openapi.json get /api/v1/player Retrieves an existing player by ID. Returns player information including profile data and in-game currency balances. # Cancel pending payment Source: https://stash-gg.mintlify.app/api/egress/purchase/cancelpayment /egress-openapi.json post /api/v1/purchase/cancel Step 2B: Cancels a pending purchase that was previously registered. IMPORTANT: Always expects HTTP 200 OK response with inline error codes in the body. # Confirm payment completion Source: https://stash-gg.mintlify.app/api/egress/purchase/confirmpayment /egress-openapi.json post /api/v1/purchase/confirm Step 2A: Confirms and completes a pending purchase that was previously registered. IMPORTANT: Expects HTTP error status (3xx, 4xx, 5xx) codes for failed purchases. A declined purchase should also carry a decline in the response body. Where the checkout supports it, Stash uses the decline's status to pick the message shown to the player; otherwise the player sees a generic failure. # Register payment intent Source: https://stash-gg.mintlify.app/api/egress/purchase/registerpayment /egress-openapi.json post /api/v1/purchase/register Step 1: Registers a purchase intent with the game backend. The game backend is expected to reserve inventory for the purchase. IMPORTANT: Always expects HTTP 200 OK response with inline error codes in the body. # Getting Started Source: https://stash-gg.mintlify.app/api/ingress APIs provided by Stash that your backend can call. ## What this section is Stash-hosted endpoints your backend calls. This is an **ingress** integration: your backend calls Stash. Stash hosts and maintains these APIs, while you implement the server-side caller in your backend services. > [!WARNING] > > Call Stash API endpoints from your backend only. Do not expose private API keys in game clients. Keep credentials on the server, call these endpoints from backend code only, and handle auth, retries, and idempotency in your service layer. ## API environment The API reference uses `https://test-api.stash.gg`, the server specified by the Swagger feed. Requests that use HMAC require a signature generated by your backend for the exact request body and timestamp. ## Endpoints Choose an endpoint from the sidebar to view its request parameters, authentication, response schemas, and code examples. # Abort offers Source: https://stash-gg.mintlify.app/api/ingress/catalog/abortoffers /ingress-openapi.json post /sdk/server/catalog/offer-aborts/abort Removes offers from every player's web shop at once, for an offer that has to come down before the catalog cache would drop it (for example a wrong price or wrong contents). Each entry names an offer by the identifier your catalog sends: a purchase pack's id (the whole pack, every price point), a purchasable item's product_id (every per-player variant), or a free or non-purchasable item's item_id. Without a version, the abort hides that offer from every player's catalog, whatever your Get Catalog response returns, until you un-abort it; no catalog is fetched again from your server. With a version that is a whole number written only with the ASCII digits 0 to 9 (for example 5), the abort hides the offer with that identifier at that version and at every lower whole-number version, compared by value: an abort of 10 hides 9, an abort of 5 does not hide 10, and 05 reads as 5. With any other version (for example v5, a version with a sign or spaces, or one using digits other than the ASCII 0 to 9), the abort hides only the offer with exactly that version, compared character for character. Cached catalogs that still hold a hidden version are fetched again from your server on each player's next visit. To bring the offer back fixed, re-publish it under the same identifier with a higher version than the one you aborted: it shows as soon as Get Catalog returns it, with no un-abort needed, while a fix re-published at the aborted version or lower stays hidden. An abort with a version never matches an offer sent without a version. An abort with a version expires 7 days after it was made; an abort without a version lasts until un-aborted. Calls are idempotent: an entry that names an abort already active changes nothing. At most 100 entries per call. A purchase already in checkout when the abort lands can still complete, so Confirm Payment remains your last check. Applies only to shops with a real-time catalog integration and offer aborts enabled; any other shop is refused with FAILED_PRECONDITION. # Force refresh catalog Source: https://stash-gg.mintlify.app/api/ingress/catalog/forcerefreshcatalog /ingress-openapi.json post /sdk/server/catalog/force-refresh Refreshes a web shop's cached catalog so the next time a player opens the shop it reflects the latest catalog from your game backend. Applies only to shops with a real-time catalog integration; for any other integration it is a no-op that still returns success. You rarely need to call it: the catalog already refreshes automatically after web shop purchases and free-gift redemptions, and checkout always revalidates against the server. It is most useful after an in-game purchase (outside the web shop) when you want the catalog view in the Web Shop to update right away. Name the players to refresh in player_ids; when several players need a refresh at the same time, send them in one request rather than one request per player. # List offer aborts Source: https://stash-gg.mintlify.app/api/ingress/catalog/listofferaborts /ingress-openapi.json post /sdk/server/catalog/offer-aborts/list Lists every active abort for your shop, including aborts made in Stash Studio, newest first. An abort with a version that has expired is not listed. # Un-abort offers Source: https://stash-gg.mintlify.app/api/ingress/catalog/unabortoffers /ingress-openapi.json post /sdk/server/catalog/offer-aborts/unabort Removes the aborts each entry names, so those offers show again on each player's next catalog read whenever your Get Catalog response returns them, with no catalog fetched again from your server. An entry removes exactly one abort: an identifier alone removes the abort without a version, and an identifier with a version removes the abort for that version, written as the abort lists it. Versions that another active abort of the same offer still covers stay hidden: removing the abort of 7 while an abort of 5 is active shows versions 6 and 7 again and keeps 5 and lower hidden. It also removes aborts made in Stash Studio. An entry that names no active abort changes nothing. At most 100 entries per call. # Refresh localizations Source: https://stash-gg.mintlify.app/api/ingress/localization/refreshlocalizations /ingress-openapi.json post /sdk/studio/{shopId}/localizations/refresh Asks Stash to refresh the shop's localizations from its enabled localization source, for example after the source file changes. The request body is the empty JSON object {}. This method accepts only the versioned x-stash-hmac-signature header, signed over the request body exactly as sent ({}); the legacy stash-hmac-signature header is rejected with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a captured request could be replayed. The shop in the signature header must equal the shop_id in the path. A successful response means the refresh is durably queued, not that the import has completed or that the storefront shows the result. Repeated calls are safe, so retry after a 500, a 503 or a timeout with a fresh timestamp and signature. Errors, by the HTTP status a REST caller receives and its gRPC status. Two of them share HTTP 400; a REST caller tells them apart by the code in the error body, 3 for INVALID_ARGUMENT and 9 for FAILED_PRECONDITION. 400 INVALID_ARGUMENT (code 3) when the request is malformed, for example a body that is not valid JSON; fix the request, because resending it unchanged does not help. 400 FAILED_PRECONDITION (code 9) when the shop has no enabled localization source; retrying does not help until the source is set up and enabled. 401 UNAUTHENTICATED when the signature is missing, invalid, outside the time window, sent in the legacy header, or names a different shop or one Stash does not know; fix the signing, because resending it unchanged does not help. 500 INTERNAL when Stash hits an internal error, for example reading the shop's localization settings; retry with backoff. 503 UNAVAILABLE when the refresh could not be queued; retry with backoff. # Get loyalty program configuration Source: https://stash-gg.mintlify.app/api/ingress/loyalty/getloyalty /ingress-openapi.json get /sdk/studio/{shopId}/loyalty Retrieves the shop's active loyalty campaign configuration: its tiers (ordered by starting points) and milestones (ordered by points needed). Returns NOT_FOUND when the shop has no active loyalty campaign. # Get loyalty configuration Source: https://stash-gg.mintlify.app/api/ingress/loyalty/getloyaltyconfig /ingress-openapi.json get /sdk/studio/{shopId}/loyalty/config Retrieves the shop's loyalty configuration in the shape UpdateLoyaltyConfig accepts: display settings, bonus definitions, reward products with their status, every campaign (season) with its status, and the spend conversion table with the rate derived per currency. Product rewards are returned by SKU. Use it to verify a sync. This method accepts only the versioned x-stash-hmac-signature header, signed over an empty body; the legacy stash-hmac-signature header is rejected with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a captured request could be replayed. Errors, by the HTTP status a REST caller receives and its gRPC status: 401 UNAUTHENTICATED when the signature is missing, invalid, outside the time window, sent in the legacy header, or names a different shop; fix the signing, because resending it unchanged does not help. 404 NOT_FOUND for an unknown shop or a shop with no loyalty program; it does not change on a retry. 501 UNIMPLEMENTED when the loyalty configuration API is not available; it does not change on a retry. 500 INTERNAL when Stash hits an internal error, for example reading the shop's loyalty configuration; reading is safe to repeat, so retry with backoff. # Get a player's loyalty standing Source: https://stash-gg.mintlify.app/api/ingress/loyalty/getplayerloyalty /ingress-openapi.json get /sdk/studio/{shopId}/loyalty/players/{playerId} Retrieves a single player's loyalty standing (points balance, current tier, distance to the next tier and milestone, and effective points multiplier) for the shop's active loyalty campaign. Returns NOT_FOUND when the shop has no active loyalty campaign. # Configure a loyalty season Source: https://stash-gg.mintlify.app/api/ingress/loyalty/updateloyaltyconfig /ingress-openapi.json put /sdk/studio/{shopId}/loyalty/config Creates or updates one loyalty campaign (season) together with the shop-level display settings, bonus definitions and reward products it depends on, optionally sets or removes the program-level spend conversion table, and optionally activates the program. The campaign id is the upsert key: an existing id updates that season, a new id creates one. The request describes the whole season it names, so a tier or milestone omitted from it is removed from that season; bonuses and reward products are created or updated by id or SKU and never removed. Draft and scheduled seasons accept every change. An active season accepts names, descriptions, images, milestone rewards, tier earn rates and a new end date; thresholds, adding or removing tiers or milestones, the start date and reset rules are refused with FAILED_PRECONDITION listing the fields. Ended seasons are read-only. This method accepts only the versioned x-stash-hmac-signature header, signed over the request body exactly as sent; the legacy stash-hmac-signature header is rejected with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a captured request could be replayed. Applying is idempotent, so resending the same request is safe. Errors, by the HTTP status a REST caller receives and its gRPC status. Two of them share HTTP 400; a REST caller tells them apart by the code in the error body, 3 for INVALID_ARGUMENT and 9 for FAILED_PRECONDITION. 400 INVALID_ARGUMENT (code 3) with per-field violations when validation fails, including a spend conversion price whose rate against the US dollar is more than 3 times above or below the market rate, which the violation on that price names; fix the request, correcting the price, because resending it unchanged does not help. 400 FAILED_PRECONDITION (code 9) when the request cannot apply to the program as it stands, with the reason in the message: for example a locked field of an active season changes (the message lists the fields), the shop has no loyalty program and activate is not set, or the shop's loyalty program is bound to more than one shop; resend only once that changes, or as is when the message says to re-send the request. 401 UNAUTHENTICATED when the signature is missing, invalid, outside the time window, sent in the legacy header, or names a different shop; fix the signing. 403 PERMISSION_DENIED when the shop is not enabled for configuration writes; it does not change on a retry. 404 NOT_FOUND for an unknown shop; it does not change on a retry. 409 ABORTED when another update for the shop is in progress; resend the same request after a short wait, which is safe because applying is idempotent. 501 UNIMPLEMENTED when the loyalty configuration API is not available; it does not change on a retry. 500 INTERNAL when Stash hits an internal error, for example reading or writing the shop's loyalty configuration; resend the same request with backoff. 503 UNAVAILABLE when the request has a spend conversion price in a currency other than USD and Stash has no market rates loaded, for example shortly after a restart; nothing is written, and resending the same request with backoff is safe because applying is idempotent. # Get payment event by ID Source: https://stash-gg.mintlify.app/api/ingress/payments/getpaymentevent /ingress-openapi.json get /sdk/server/payment/{id} Retrieves payment details by ID. Returns information about items, pricing, and payment status. This is a server-side endpoint and should not be called from the client. # Convert prices Source: https://stash-gg.mintlify.app/api/ingress/pricing/convertprices /ingress-openapi.json post /sdk/server/prices/convert Fetches pre-converted prices from the price sheet for the given destination country, applies tax based on region, and optionally applies custom rounding. Returns final prices in minor units and locale-formatted display strings. # Get prices Source: https://stash-gg.mintlify.app/api/ingress/pricing/getprices /ingress-openapi.json get /sdk/server/prices Retrieves uploaded pricing sheet data for the shop associated with the API key, filtered by region. Returns paginated price entries. # List report files Source: https://stash-gg.mintlify.app/api/ingress/reports/listreportfiles /ingress-openapi.json post /sdk/studio/{shopId}/reports/files Returns one entry for each UTC day in [start_date, end_date] that has a file, in date order, each with a signed GET link to that day's file. A day with no transactions still has a file, with no rows. A day with no entry is a day the export has not written yet, such as the current UTC day or a day whose export is late; it does not mean the day had no transactions, so call again later for that day. Days before first_date never get a file, because the shop's export of that type and format started on first_date. A shop that has no file of the requested type and format on any day gets FAILED_PRECONDITION instead. Stash turns a shop's export on, and it writes the first file, before the partner is told that the report is available; so this error means the report is not available for the shop yet: do not retry, contact Stash. The files use the same columns as the transaction reports in Stash Studio. Each row is one event: a payment, a refund or a dispute step. A later refund or dispute step is a new row on its own day; it does not change the payment's row. The record_id column is a stable ID of the event: the same event has the same record_id in every file. Use it to remove rows that two pulls share, and keep the row from the later pull. Columns are added only at the end, and a column is renamed or removed only with advance notice, so read the files by column name, not by position. A SETTLED day that is not final can still change; pull it again until is_final is true. SETTLED days become final together with their UTC calendar month, when Stash closes the month, usually 1 to 5 days after it ends. CHARGE days are never final, because their rows change while their charges settle, so do not wait for is_final on a CHARGE day. Stash gives no stop signal for a CHARGE day: follow it for as long as you need its unsettled rows, and use SETTLED for figures that become final. To know when to download a day again, compare its content_hash with the copy you hold: every change to the file's bytes gives a new content_hash, and the same bytes always give the same content_hash. as_of is the time of the data snapshot that each file was written from. Every link is valid until download_url_expires_at, 15 minutes after the response; call again for fresh links. This method accepts only the versioned x-stash-hmac-signature header, signed over the request body exactly as sent; the legacy stash-hmac-signature header is rejected with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a captured request could be replayed. The shop in the signature header must equal the shop_id in the path. Repeated calls are safe, so retry after UNAVAILABLE or a timeout with a fresh timestamp and signature. Returns HTTP 401 (UNAUTHENTICATED) when the signature is missing, invalid, outside the time window, sent in the legacy header, or names a different shop or one Stash does not know; HTTP 400 (INVALID_ARGUMENT) when report_type or report_format is unspecified or unknown, a date is missing or is not YYYY-MM-DD, end_date is before start_date, or the range is longer than 31 days; HTTP 400 (FAILED_PRECONDITION) when the shop has no file of the requested type and format on any day; and HTTP 503 (UNAVAILABLE) when the files could not be listed, in which case retry. The two HTTP 400 cases differ only by the code in the response body: 3 for INVALID_ARGUMENT, 9 for FAILED_PRECONDITION. Do not retry UNAUTHENTICATED or INVALID_ARGUMENT unchanged: correct the signature or the request first, then send it again with a fresh timestamp and signature. # Generate authenticated URL Source: https://stash-gg.mintlify.app/api/ingress/server-urls/generateauthenticatedurl /ingress-openapi.json post /sdk/server/generate_url Generates an authenticated webshop URL for a player that signs them in when opened. target selects the page it opens: DEFAULT or ROOT for the webshop's root page, HOME for the home page, STORE for the store page, LOYALTY for the loyalty club page, or DAILY_STREAK for the daily streak page. Authenticate the request with an HMAC signature of the request body, or with the deprecated API key. This is a server-side endpoint and must not be called from the game client. # Generate Checkout Source: https://stash-gg.mintlify.app/api/ingress/stash-pay/generatequickpayurl /ingress-openapi.json post /sdk/server/checkout_links/generate_quick_pay_url Generates a quick payment URL for server-side operations. This endpoint is used internally for creating payment links with user information. # Create a subscription change checkout link Source: https://stash-gg.mintlify.app/api/ingress/subscription-checkout-links/createsubscriptionchangecheckoutlink /ingress-openapi.json post /sdk/subscriptions/{subscriptionId}/change-checkout-links Creates a checkout link for upgrading an existing subscription to a new plan. Only subscriptions in a `active`, `trialing`, or `cancelled` (still within paid period before expiration) state are eligible for upgrades. # Create a subscription checkout link Source: https://stash-gg.mintlify.app/api/ingress/subscription-checkout-links/createsubscriptioncheckoutlink /ingress-openapi.json post /sdk/subscriptions/checkout-links Creates a checkout link for purchasing a subscription plan. The link can be shared with users to complete their subscription purchase. # Get plan by ID Source: https://stash-gg.mintlify.app/api/ingress/subscription-plans/getplan /ingress-openapi.json get /sdk/plans/{planId} Retrieves a subscription plan by its unique identifier. Returns full plan details including pricing, billing period, and trial configuration. # Get plan by code Source: https://stash-gg.mintlify.app/api/ingress/subscription-plans/getplanbycode /ingress-openapi.json get /sdk/plans/code/{code} Retrieves a subscription plan by its code (e.g., 'monthly_premium'). Plan codes are unique within a segment. # List plans Source: https://stash-gg.mintlify.app/api/ingress/subscription-plans/listplans /ingress-openapi.json get /sdk/plans Lists all available subscription plans for a shop. By default returns only active plans. Use the status filter to include archived or deprecated plans. # Cancel subscription Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/cancelsubscription /ingress-openapi.json post /sdk/subscriptions/{id}/cancel Cancels a subscription. By default, access continues until the end of the current billing period (cancel_at_period_end=true). A subscription.canceled webhook is sent and the returned subscription has status 'canceled'. For past_due subscriptions, cancellation is immediate: a single subscription.expired webhook is sent and the returned subscription has status 'expired'. # Get payments by subscription ID Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/getpaymentsbysubscriptionid /ingress-openapi.json get /sdk/subscriptions/{id}/payments Retrieves payments associated with a subscription with pagination support. Returns a list of payment objects including payment ID, amount, currency, a succeeded indicator, and timestamps. Use the `next_page_token` from the response to fetch the next page. # Get subscription by ID Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/getsubscription /ingress-openapi.json get /sdk/subscriptions/{id} Retrieves a subscription by its unique identifier. Returns the full subscription object including status, billing period, and dates. # List subscriptions Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/listsubscriptions /ingress-openapi.json get /sdk/subscriptions Query subscriptions by player and optionally filter by status. Returns all matching subscriptions for the specified external_account_id. # Reactivate subscription Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/reactivatesubscription /ingress-openapi.json post /sdk/subscriptions/{id}/reactivate Reactivates a previously canceled subscription. Only valid before the subscription has expired. # Update subscription Source: https://stash-gg.mintlify.app/api/ingress/subscriptions/updatesubscription /ingress-openapi.json post /sdk/subscriptions/{id} Applies one change to a subscription. free_period grants free billing periods that start when the current paid period ends: the subscriber keeps access, is not charged at the next renewal date, and billing resumes at the plan's normal price when the free period ends. A scheduled cancellation is reversed. Rejections return FAILED_PRECONDITION with reason SUBSCRIPTION_NOT_ELIGIBLE, FREE_PERIOD_ALREADY_ACTIVE or RENEWAL_IN_PROGRESS. Reusing an idempotency_key with different parameters returns ALREADY_EXISTS. # Get user preferences Source: https://stash-gg.mintlify.app/api/ingress/user-preferences/getuserpreferences /ingress-openapi.json get /sdk/server/user_preferences/{userId} Retrieves the payment channel preference for a specific user. Returns 404 NotFound if no preference is set. # Set user preferences Source: https://stash-gg.mintlify.app/api/ingress/user-preferences/setuserpreferences /ingress-openapi.json post /sdk/server/user_preferences/{userId} Creates or updates the payment channel preference for a user. This is a server-side endpoint and should not be called from the client. # Get maintenance mode Source: https://stash-gg.mintlify.app/api/ingress/web-shop/getmaintenancemode /ingress-openapi.json get /sdk/server/shop/maintenance Returns whether your web shop is in maintenance mode and, while it is, since when. Each shop may make up to 60 calls every 60 seconds; above that it returns 429 with a RetryInfo detail giving how long to wait. This is a server-side endpoint and should not be called from the client. # Set maintenance mode Source: https://stash-gg.mintlify.app/api/ingress/web-shop/setmaintenancemode /ingress-openapi.json post /sdk/server/shop/maintenance Switches your web shop into or out of maintenance mode. While it is on, players see the web shop's maintenance screen instead of the shop: new visits and sign-ins get the maintenance screen once the setting reaches the web shop, normally within about 30 seconds. A page a player already has open switches to the maintenance screen when it next reloads. Players stay signed in. Send enabled true to switch it on and false to switch it off; a request without enabled is refused with 400. The call is idempotent: switching on a shop that is already in maintenance mode succeeds and keeps the original since time, and switching off a shop that is not in maintenance mode succeeds and changes nothing. The response returns the resulting state. Each shop may make up to 10 calls every 60 seconds; above that it returns 429 with a RetryInfo detail giving how long to wait. This is a server-side endpoint and should not be called from the client. # Approve custom login Source: https://stash-gg.mintlify.app/api/ingress/webshop-account-linking/approvecustomlogin /ingress-openapi.json post /sdk/custom_login/approve Approves a pending webshop login from your game server. Send the login code the webshop passed to your game, through the login deep link or a QR code, together with the signed-in player as user; Stash then completes the webshop login as that player. Authenticate the request with an HMAC signature of the request body, or with the deprecated API key. This is a server-side endpoint and must not be called from the game client. # Decline custom login Source: https://stash-gg.mintlify.app/api/ingress/webshop-account-linking/declinecustomlogin /ingress-openapi.json post /sdk/custom_login/decline Tells Stash that the game will not approve this login code, and why. A declined code can no longer be approved. This is a server-side endpoint and should not be called from the client. # Force Logout user Source: https://stash-gg.mintlify.app/api/ingress/webshop-account-linking/logoutuser /ingress-openapi.json post /sdk/server/custom_login/logout Logs out a user by invalidating their session. This endpoint is typically called when a user signs out of the game or switches to another account. # Changelog Source: https://stash-gg.mintlify.app/changelog Product updates and improvements from Stash. **2026-11-20** ## [Webshop - A login decline now signs the player out](/changelog/2026-11-20) [`DeclineCustomLogin`](/api/ingress/webshop-account-linking/declinecustomlogin) with the player's `userId` now signs the player out of the webshop on every device, as [`LogoutUser`](/api/ingress/webshop-account-linking/logoutuser) does, for every shop. There is nothing to set up. See [Sign the player out with the decline](/guides/stash-webshop/player-authentication/account-linking#sign-the-player-out-with-the-decline) for what to send. **2026-11-16** ## [Purchases - ConfirmPayment says whether tax is included](/changelog/2026-11-16) [`ConfirmPayment`](/api/egress/purchase/confirmpayment) now carries `taxInclusive`: `true` when the item prices already include `tax`, and `false` when `tax` is added on top or is `0`. It is sent on every `ConfirmPayment` request, so your backend can check the amount before it grants: `total`, minus `tax` when `taxInclusive` is `false`, equals the sum of `cents` × `quantity`. See [Tax in amounts](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#tax-in-amounts) for examples and the one case the check does not cover. **2026-11-14** ## [Webshop - A login decline can also sign the player out](/changelog/2026-11-14) Stash can now set up a shop so that [`DeclineCustomLogin`](/api/ingress/webshop-account-linking/declinecustomlogin) with the player's `userId` also signs the player out of the webshop on every device, as [`LogoutUser`](/api/ingress/webshop-account-linking/logoutuser) does. Ask your Stash contact to turn it on for your shop. See [Sign the player out with the decline](/guides/stash-webshop/player-authentication/account-linking#sign-the-player-out-with-the-decline) for what to send. **2026-06-17** ## [Launcher v0.4.0, Stash Pay Improvements, and Webshop Currency Fix](/changelog/2026-06-17) **Stash Pay**: Two updates to the Stash Pay checkout experience. * Bonus rewards are now grouped into a single row in the Stash Pay V2 checkout flow for a cleaner presentation. * Resolved an issue where Apple Pay and Google Pay buttons could appear disabled on initial page load. **Webshop**: A bug fix for currency resolution in the Convert API. * Resolved an issue in the `/convert` API where currency was not being looked up by region before falling back to the default. Currency resolution now correctly uses regional settings first. **2026-06-11** ## [Stash Pay Improvements, Price Management Tooling, and Launcher Runtime Theming](/changelog/2026-06-11) **Stash Pay**: Bug fixes and a new transaction status for payment tracking. * Resolved an issue where the Pay button could be incorrectly disabled while entering a postal code for the first time. * A new `PAYMENT_CANCELLED` status is now available for payment transactions and is reflected in the Transactions view in Stash Studio. **Webshop**: API updates, expanded event tracking for Webshops, and quality-of-life improvements. * Webshop events now include `session_id`, `attribution_source`, and `cart` value for richer analytics and attribution tracking. * Caching has been implemented for Real-time Catalog Webshop, increasing load times by up to 80%. Enabled upon request. * Introduced branded error pages to Webshop for more verbose and user-friendly error messages. **2026-05-29** ## [Other Studio and Platform Updates](/changelog/2026-05-29) Several configuration and UI updates shipped this week. * Launcher access is now controlled via the shop-level `EnabledProducts` configuration. * Landscape mobile checkout can now be toggled per partner using `OverrideProfile`. * Third-party login APIs have been removed from the public SDK documentation. See the public documentation for more information on [Stash Launcher](/guides/stash-launcher/about), [Stash Pay checkout](/guides/stash-pay/about), and our [API documentation](/api/ingress). **2026-05-28** ## [Webhooks - Loyalty and Payment Method Updates](/changelog/2026-05-28) Two updates to webhook events shipped this week. * A new `LOYALTY_MILESTONE_CLAIMED` event type is now available. Loyalty milestone rewards are delivered via webhook when a player claims a milestone, enabling real-time loyalty integrations. * The `PURCHASE_SUCCEEDED` payload now includes a `paymentMethodType` field indicating the method used at checkout, such as `PAYMENT_METHOD_TYPE_CARD`, `PAYMENT_METHOD_TYPE_APPLE_PAY`, `PAYMENT_METHOD_TYPE_GOOGLE_PAY` or `PAYMENT_METHOD_TYPE_PAYPAL`. See the [webhook list](/guides/get-started/stash-webhooks/webhook-list) for every value. For more information on available Webhooks, see the updated [Webhooks guide](/guides/get-started/stash-webhooks/overview) for details. **2026-05-14** ## [Subscriptions now support proration](/changelog/2026-05-14) Upgrading or downgrading a subscription mid-cycle now generates a prorated invoice automatically. The new behavior applies to all plans created after this date. * New `proration_behavior` field on `CreateSubscriptionChangeCheckoutLink`. * Invoice line items now include `proration: true` when applicable. * No migration required for existing subscriptions. See the updated [Subscriptions integration guide](/guides/stash-pay/subscriptions/integration) for details. **2026-03-30** ## [Webshop appearance editor — live preview](/changelog/2026-03-30) The Webshop appearance editor in Stash Studio now ships with a live preview pane. Edit colors, typography, and layout on the left, see changes instantly on the right — no publish required. Available to all partners with Webshop enabled. No code changes needed on your side. **2026-02-11** ## [New Unity SDK — opt-in dialog support](/changelog/2026-02-11) The Unity SDK now ships with a configurable opt-in dialog you can drop into your game with a single prefab. Localized strings, custom artwork, and analytics hooks are supported out of the box. Upgrade to SDK `v2.7.0` and follow the [Unity opt-in dialog guide](/guides/stash-pay/how-tos/unity-opt-in-dialog). **2026-01-08** ## [New region — São Paulo edge added](/changelog/2026-01-08) We've expanded our edge presence to São Paulo, cutting checkout latency for South American players by an average of 180ms. No action required — traffic routes automatically. **2025-12-15** ## [Catalog API — bulk offer endpoint](/changelog/2025-12-15) The Catalog API now exposes a bulk endpoint that returns up to 500 offers in a single response. Useful for client-side catalogs that need to hydrate state on startup. **2025-11-20** ## [Promo codes — first-time-buyer restriction](/changelog/2025-11-20) Promo codes can now be limited to first-time buyers. Configure it from the promo code editor in Studio. Existing codes are unaffected. **2025-10-30** ## [Unreal SDK 1.4 — IAP refund flow](/changelog/2025-10-30) Unreal SDK 1.4 ships with a built-in refund acknowledgement flow. Refunds initiated by Stash now propagate to in-game entitlements automatically. **2025-10-05** ## [Studio — granular role permissions](/changelog/2025-10-05) You can now define custom roles in Studio with per-feature permissions. The default Admin / Editor / Viewer roles still exist; custom roles layer on top. **2025-09-12** ## [Checkout — Apple Pay & Google Pay defaults](/changelog/2025-09-12) Apple Pay and Google Pay are now enabled by default for new Stash Pay integrations. Existing checkouts are unchanged — toggle from the appearance editor when ready. **2025-08-22** ## [Webhooks — signed payloads with HMAC-SHA256](/changelog/2025-08-22) All outgoing webhook payloads now carry an `X-Stash-Signature` header (HMAC-SHA256 of the body, keyed with your endpoint secret). Verify it server-side to confirm authenticity. **2025-07-30** ## [Launcher — custom EULA per build](/changelog/2025-07-30) Each build channel in Stash Launcher can now ship with its own EULA text and acceptance gate. Players see the latest version on update and must accept before launching. # Launcher — custom EULA per build Source: https://stash-gg.mintlify.app/changelog/2025-07-30 Product update published July 30, 2025. stash-launcherstudio Each build channel in Stash Launcher can now ship with its own EULA text and acceptance gate. Players see the latest version on update and must accept before launching. [Back to changelog](/changelog) # Webhooks — signed payloads with HMAC-SHA256 Source: https://stash-gg.mintlify.app/changelog/2025-08-22 Product update published August 22, 2025. webhookssecurity All outgoing webhook payloads now carry an `X-Stash-Signature` header (HMAC-SHA256 of the body, keyed with your endpoint secret). Verify it server-side to confirm authenticity. [Back to changelog](/changelog) # Checkout — Apple Pay & Google Pay defaults Source: https://stash-gg.mintlify.app/changelog/2025-09-12 Product update published September 12, 2025. stash-paycheckout Apple Pay and Google Pay are now enabled by default for new Stash Pay integrations. Existing checkouts are unchanged — toggle from the appearance editor when ready. [Back to changelog](/changelog) # Studio — granular role permissions Source: https://stash-gg.mintlify.app/changelog/2025-10-05 Product update published October 5, 2025. studioplatform You can now define custom roles in Studio with per-feature permissions. The default Admin / Editor / Viewer roles still exist; custom roles layer on top. [Back to changelog](/changelog) # Unreal SDK 1.4 — IAP refund flow Source: https://stash-gg.mintlify.app/changelog/2025-10-30 Product update published October 30, 2025. stash-payunrealsdk Unreal SDK 1.4 ships with a built-in refund acknowledgement flow. Refunds initiated by Stash now propagate to in-game entitlements automatically. [Back to changelog](/changelog) # Promo codes — first-time-buyer restriction Source: https://stash-gg.mintlify.app/changelog/2025-11-20 Product update published November 20, 2025. stash-webshopstudio Promo codes can now be limited to first-time buyers. Configure it from the promo code editor in Studio. Existing codes are unaffected. [Back to changelog](/changelog) # Catalog API — bulk offer endpoint Source: https://stash-gg.mintlify.app/changelog/2025-12-15 Product update published December 15, 2025. apistash-webshopcatalog The Catalog API now exposes a bulk endpoint that returns up to 500 offers in a single response. Useful for client-side catalogs that need to hydrate state on startup. [Back to changelog](/changelog) # New region — São Paulo edge added Source: https://stash-gg.mintlify.app/changelog/2026-01-08 Product update published January 8, 2026. platforminfrastructure We've expanded our edge presence to São Paulo, cutting checkout latency for South American players by an average of 180ms. No action required — traffic routes automatically. [Back to changelog](/changelog) # New Unity SDK — opt-in dialog support Source: https://stash-gg.mintlify.app/changelog/2026-02-11 Product update published February 11, 2026. stash-payunitysdk The Unity SDK now ships with a configurable opt-in dialog you can drop into your game with a single prefab. Localized strings, custom artwork, and analytics hooks are supported out of the box. Upgrade to SDK `v2.7.0` and follow the [Unity opt-in dialog guide](/guides/stash-pay/how-tos/unity-opt-in-dialog). [Back to changelog](/changelog) # Webshop appearance editor — live preview Source: https://stash-gg.mintlify.app/changelog/2026-03-30 Product update published March 30, 2026. stash-webshopstudio The Webshop appearance editor in Stash Studio now ships with a live preview pane. Edit colors, typography, and layout on the left, see changes instantly on the right — no publish required. Available to all partners with Webshop enabled. No code changes needed on your side. [Back to changelog](/changelog) # Subscriptions now support proration Source: https://stash-gg.mintlify.app/changelog/2026-05-14 Product update published May 14, 2026. stash-paysubscriptionsapi Upgrading or downgrading a subscription mid-cycle now generates a prorated invoice automatically. The new behavior applies to all plans created after this date. * New `proration_behavior` field on `CreateSubscriptionChangeCheckoutLink`. * Invoice line items now include `proration: true` when applicable. * No migration required for existing subscriptions. See the updated [Subscriptions integration guide](/guides/stash-pay/subscriptions/integration) for details. [Back to changelog](/changelog) # Webhooks - Loyalty and Payment Method Updates Source: https://stash-gg.mintlify.app/changelog/2026-05-28 Product update published May 28, 2026. webhooksplatformapi Two updates to webhook events shipped this week. * A new `LOYALTY_MILESTONE_CLAIMED` event type is now available. Loyalty milestone rewards are delivered via webhook when a player claims a milestone, enabling real-time loyalty integrations. * The `PURCHASE_SUCCEEDED` payload now includes a `paymentMethodType` field indicating the method used at checkout, such as `PAYMENT_METHOD_TYPE_CARD`, `PAYMENT_METHOD_TYPE_APPLE_PAY`, `PAYMENT_METHOD_TYPE_GOOGLE_PAY` or `PAYMENT_METHOD_TYPE_PAYPAL`. See the [webhook list](/guides/get-started/stash-webhooks/webhook-list) for every value. For more information on available Webhooks, see the updated [Webhooks guide](/guides/get-started/stash-webhooks/overview) for details. [Back to changelog](/changelog) # Other Studio and Platform Updates Source: https://stash-gg.mintlify.app/changelog/2026-05-29 Product update published May 29, 2026. stash-paylauncherapi Several configuration and UI updates shipped this week. * Launcher access is now controlled via the shop-level `EnabledProducts` configuration. * Landscape mobile checkout can now be toggled per partner using `OverrideProfile`. * Third-party login APIs have been removed from the public SDK documentation. See the public documentation for more information on [Stash Launcher](/guides/stash-launcher/about), [Stash Pay checkout](/guides/stash-pay/about), and our [API documentation](/api/ingress). [Back to changelog](/changelog) # Stash Pay Improvements, Price Management Tooling, and Launcher Runtime Theming Source: https://stash-gg.mintlify.app/changelog/2026-06-11 Product update published June 11, 2026. stash-paylauncherapistudiostash-webshop **Stash Pay**: Bug fixes and a new transaction status for payment tracking. * Resolved an issue where the Pay button could be incorrectly disabled while entering a postal code for the first time. * A new `PAYMENT_CANCELLED` status is now available for payment transactions and is reflected in the Transactions view in Stash Studio. **Webshop**: API updates, expanded event tracking for Webshops, and quality-of-life improvements. * Webshop events now include `session_id`, `attribution_source`, and `cart` value for richer analytics and attribution tracking. * Caching has been implemented for Real-time Catalog Webshop, increasing load times by up to 80%. Enabled upon request. * Introduced branded error pages to Webshop for more verbose and user-friendly error messages. [Back to changelog](/changelog) # Launcher v0.4.0, Stash Pay Improvements, and Webshop Currency Fix Source: https://stash-gg.mintlify.app/changelog/2026-06-17 Product update published June 17, 2026. stash-paylauncherstash-webshop **Stash Pay**: Two updates to the Stash Pay checkout experience. * Bonus rewards are now grouped into a single row in the Stash Pay V2 checkout flow for a cleaner presentation. * Resolved an issue where Apple Pay and Google Pay buttons could appear disabled on initial page load. **Webshop**: A bug fix for currency resolution in the Convert API. * Resolved an issue in the `/convert` API where currency was not being looked up by region before falling back to the default. Currency resolution now correctly uses regional settings first. [Back to changelog](/changelog) # Webshop - A login decline can also sign the player out Source: https://stash-gg.mintlify.app/changelog/2026-11-14 Product update published November 14, 2026. stash-webshopapi Stash can now set up a shop so that [`DeclineCustomLogin`](/api/ingress/webshop-account-linking/declinecustomlogin) with the player's `userId` also signs the player out of the webshop on every device, as [`LogoutUser`](/api/ingress/webshop-account-linking/logoutuser) does. Ask your Stash contact to turn it on for your shop. See [Sign the player out with the decline](/guides/stash-webshop/player-authentication/account-linking#sign-the-player-out-with-the-decline) for what to send. [Back to changelog](/changelog) # Purchases - ConfirmPayment says whether tax is included Source: https://stash-gg.mintlify.app/changelog/2026-11-16 Product update published November 16, 2026. apistash-webshopstash-pay [`ConfirmPayment`](/api/egress/purchase/confirmpayment) now carries `taxInclusive`: `true` when the item prices already include `tax`, and `false` when `tax` is added on top or is `0`. It is sent on every `ConfirmPayment` request, so your backend can check the amount before it grants: `total`, minus `tax` when `taxInclusive` is `false`, equals the sum of `cents` × `quantity`. See [Tax in amounts](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#tax-in-amounts) for examples and the one case the check does not cover. [Back to changelog](/changelog) # Webshop - A login decline now signs the player out Source: https://stash-gg.mintlify.app/changelog/2026-11-20 Product update published November 20, 2026. stash-webshopapi [`DeclineCustomLogin`](/api/ingress/webshop-account-linking/declinecustomlogin) with the player's `userId` now signs the player out of the webshop on every device, as [`LogoutUser`](/api/ingress/webshop-account-linking/logoutuser) does, for every shop. There is nothing to set up. See [Sign the player out with the decline](/guides/stash-webshop/player-authentication/account-linking#sign-the-player-out-with-the-decline) for what to send. [Back to changelog](/changelog) # Quick Start Source: https://stash-gg.mintlify.app/guides Hello ! Get started with Stash - the comprehensive direct-to-consumer platform that helps game developers engage with players and sell content through checkout flows, webshops, and other experiences. Stash is a direct-to-consumer platform for game developers. We help you engage with and sell content directly to players by building checkout flows, webshops, and other experiences (loyalty programs, leaderboards, game launchers, etc.). Stash also manages payments and compliance so that you can focus on game development and player experiences. ## Get To Know Stash > [card] [Howling Woods Demo](/guides/get-started/demo-hub) > > Explore the 'Howling Woods' a fully operational web shop showcasing Stash features. > [card] [Stash Studio](/guides/get-started/stash-studio/getting-started) > > Introduction to our developer portal for managing your Stash integration. ## Jump To Product Details > [card] [Stash Pay](/guides/stash-pay/about) > > Use Stash Pay to add a checkout flow and payments to your site > [card] [Stash Webshop](/guides/stash-webshop/about) > > Learn about the Stash webshop integration process > [card] [Stash Launcher](/guides/stash-launcher/about) > > Use Stash's launcher to distribute your game ## Stash Tools > [card] [Unity SDK](https://github.com/stashgg/stash-unity) > > Use Stash Pay and Stash Webshop features in your unity project. > [card] [Unreal Engine SDK (Preview)](https://github.com/stashgg/stash-unreal) > > Use Stash Pay and Stash Webshop features in your Unreal Engine 5 project. > [card] [Stash Launcher CLI](/guides/stash-launcher/build-management/stash-cli) > > Integrate Stash Launcher in your build pipeline for automated testing and game distribution. # Demo Hub Source: https://stash-gg.mintlify.app/guides/get-started/demo-hub Explore our fictional game called "Howling Woods" that serves as a demo hub. Download our sample app to experience Stash Pay, explore interactive webshop or see how you can reach desktop gamers using Stash Launcher. ## Demo App Begin by trying out our demo app on an Android or iOS device. With this app, you can experience the full **Stash Pay** flow integrated directly into the Unity game. To try the full in-app purchase flow, use one of the [test cards](/guides/get-started/test-cards). > [!NOTE] > > You can try the demo app instantly in your browser using the online emulator, or install it on your own device by requesting TestFlight access (iOS) or downloading the APK (Android). > [card] [iOS demo](https://appetize.io/app/b_eyszozcrmyt2zifoh5bjyiifha) > > Try the iOS demo in your browser. > [card] [Android demo](https://appetize.io/app/b_e7zfxgltohxm2rd5aw4zplzmwq) > > Try the Android demo in your browser. > [card] [Install on Android](https://storage.googleapis.com/stash_sdk_demo/Android/latest/StashDemo.apk/Android.apk) > > Download the demo APK. > [card] [Install on iOS](https://docs.stash.gg/guides/get-started/demo-hub#demo-app) > > Request TestFlight access on the Stash demo page. ## Demo Webshop Explore the [Howling Woods demo shop](https://howlingwoods.shop) to experience the Stash webshop in action. The demo includes integration with a custom authentication provider (Amazon Cognito), a dynamic product catalog, and interactive features like a reward wheel, card draw, card match, and more showcasing what you can add to your own integration. Just like in the app above, you can test the complete in-app purchase process using one of our [test cards](/guides/get-started/test-cards). Webshop is also integrated with our demo app and launcher, so all three products work seamlessly together. Install the app and try out the account linking by scanning a login QR code on the webshop. [Howling Woods Demo](https://demo.arcade.software/xnjt0xTDnRzJFIqPt11I?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo ## Demo Launcher Discover how to engage desktop players using Stash Launcher. Visit the [launcher download page](https://store.howlingwoods.shop/download) to try it for yourself and see how the mobile app seamlessly connects and works alongside the desktop launcher. This download page is automatically generated by Stash for you, or you can also distribute using your own channels. # API Keys Overview Source: https://stash-gg.mintlify.app/guides/get-started/stash-api-keys/overview API key setup, HMAC signing for requests to Stash, HMAC verification for requests from Stash, and migrating from legacy auth. > [!WARNING] > > **Sending `X-Stash-Api-Key` directly in request headers is deprecated.** Shops and API keys created on or after 2026-08-15 cannot use the `X-Stash-Api-Key` header. The API key itself is not deprecated. It is still required as the HMAC secret for all new integrations. See [Migrating from legacy auth](#migrating-from-legacy-auth) if you are on the old header pattern. API keys are secret credentials used to authenticate server-to-server requests between your game backend and Stash services. They are for **server-side use only**. Never expose them in client-side code, mobile apps, or web browsers. ## What are API keys used for? API keys serve two distinct authentication roles: **Ingress secrets** authenticate requests your game backend makes to Stash APIs. Your App ID is in Studio → Project Settings → General; your ingress secret is in Studio → Project Settings → API Keys: * **Stash Pay**: Generating checkout links, Quick Pay URLs, and querying payment status * **Stash Launcher**: Managing build artifacts and authentication token flows **Egress keys** are provided by Stash to sign outgoing requests from Stash to your game backend. Your backend verifies these using the `x-stash-hmac-signature` header on each inbound request: * **Real-time Catalog**: Stash signs every outbound request to your catalog endpoint * **Webhooks**: Stash signs every webhook delivery to your endpoint ## Creating API Keys **1. Navigate to API Keys** Go to your game in **Stash Studio** → **Project Settings** → **API Keys**. **2. Create a New API Key** Click **Create API Key**. **3. Name Your Key and Choose Its Type** Enter a descriptive name (e.g., "Production Backend", "Test Environment") to help identify the purpose of each key, choose **Ingress** for requests your backend sends to Stash or **Egress** for requests Stash sends to your backend, and create the key. **4. Copy the Secret** Open the key from the list, reveal its **Secret** field, and copy the value. It is base64-encoded. You can open the key and copy the secret again at any time. ### Security Notes * Use descriptive names to identify the purpose of each key * Create separate keys for different environments (test, staging, production) * Store keys securely using your secret manager and least-privilege access policies ## HMAC Signing Use your **ingress secret** (Studio → Project Settings → API Keys) to sign requests your backend makes to Stash APIs. Base64-decode the secret before using it as the HMAC key. ``` x-stash-hmac-signature: v1;;; ``` | Field | Description | | :- | :- | | `v1` | Protocol version | | `` | Your immutable App ID (Studio → Project Settings → General) | | `` | Request timestamp in Unix milliseconds | | `` | Standard base64-encoded HMAC-SHA256 of `"."` | The signature covers `"." + `, where `` is the exact JSON bytes you send in a POST or PUT. Sign what you transmit; Stash verifies against the bytes received for bodies up to 18 KiB (18,432 bytes), and may reject a larger body with `401` even when it is correctly signed. Requests where `` is more than 5 minutes from the server clock are rejected. > [tab] Node.js > > ```javascript sign-request.js theme={null} > const crypto = require('crypto'); > > function signStashRequest(appId, body, ingressSecretB64) { > const unixMs = Date.now().toString(); > // base64-decode the ingress secret from Studio → Project Settings → API Keys > const key = Buffer.from(ingressSecretB64, 'base64'); > const sig = crypto > .createHmac('sha256', key) > .update(`${unixMs}.${body}`) > .digest('base64'); > return `v1;${appId};${unixMs};${sig}`; > } > > // Set as x-stash-hmac-signature header value: > const headerValue = signStashRequest( > process.env.APP_ID, // App ID from Studio → Project Settings → General > JSON.stringify(requestBody), // exact bytes you will POST (sign what you send) > process.env.INGRESS_SECRET // base64-encoded ingress secret from Studio → Project Settings → API Keys > ); > ``` > [tab] Python > > ```python sign_request.py theme={null} > import base64 > import hashlib > import hmac > import json > import os > import time > > def sign_stash_request(app_id, body, ingress_secret_b64): > unix_ms = str(int(time.time() * 1000)) > # base64-decode the ingress secret from Studio → Project Settings → API Keys > key = base64.b64decode(ingress_secret_b64) > signed_msg = f"{unix_ms}.{body}" > sig = base64.b64encode( > hmac.new(key, signed_msg.encode('utf-8'), hashlib.sha256).digest() > ).decode('utf-8') > return f"v1;{app_id};{unix_ms};{sig}" > > # Set as x-stash-hmac-signature header value: > header_value = sign_stash_request( > os.environ['APP_ID'], # App ID from Studio → Project Settings → General > json.dumps(request_body), # exact bytes you will POST (sign what you send) > os.environ['INGRESS_SECRET'] # base64-encoded ingress secret from Studio → Project Settings → API Keys > ) > ``` > [tab] Go > > ```go sign_request.go theme={null} > package main > > import ( > "crypto/hmac" > "crypto/sha256" > "encoding/base64" > "fmt" > "os" > "strconv" > "time" > ) > > func signStashRequest(appID, body, ingressSecretB64 string) (string, error) { > unixMs := strconv.FormatInt(time.Now().UnixMilli(), 10) > // base64-decode the ingress secret from Studio → Project Settings → API Keys > key, err := base64.StdEncoding.DecodeString(ingressSecretB64) > if err != nil { > return "", err > } > signedMsg := fmt.Sprintf("%s.%s", unixMs, body) > mac := hmac.New(sha256.New, key) > mac.Write([]byte(signedMsg)) > sig := base64.StdEncoding.EncodeToString(mac.Sum(nil)) > return fmt.Sprintf("v1;%s;%s;%s", appID, unixMs, sig), nil > } > > // Set as x-stash-hmac-signature header value: > headerValue, err := signStashRequest( > os.Getenv("APP_ID"), // App ID from Studio → Project Settings → General > string(requestBodyBytes), // exact bytes you will POST (sign what you send) > os.Getenv("INGRESS_SECRET"), // base64-encoded ingress secret from Studio → Project Settings → API Keys > ) > ``` ## HMAC Verification Use your **egress key** (Studio → Project Settings → API Keys) to verify signed inbound requests from Stash: webhooks and real-time catalog requests. Base64-decode the key before using it as the HMAC key. For GET requests (real-time catalog), the body is an empty string. ``` x-stash-hmac-signature: v1;;; ``` | Field | Description | | :- | :- | | `v1` | Protocol version | | `` | Your immutable App ID (Studio → Project Settings → General) | | `` | Request timestamp in Unix milliseconds | | `` | Standard base64-encoded HMAC-SHA256 of `"."` | Reject requests where `` is more than 5 minutes from your server clock. When you activate a different egress key in Studio, Stash starts signing requests with it within 5 minutes, so keep accepting the previous key until then. > [tab] Node.js > > ```javascript verify-signature.js theme={null} > const crypto = require('crypto'); > > function verifyStashSignature(headerValue, body, egressSecretB64) { > const [version, appId, unixMs, receivedSig] = headerValue.split(';'); > > // Reject requests outside the 5-minute clock-skew window > if (Math.abs(Date.now() - Number(unixMs)) > 5 * 60 * 1000) return false; > > // base64-decode the egress key from Studio → Project Settings → API Keys > const key = Buffer.from(egressSecretB64, 'base64'); > // body is empty string for GET requests; raw bytes for POST > const signedMsg = `${unixMs}.${body}`; > > const expected = crypto > .createHmac('sha256', key) > .update(signedMsg) > .digest('base64'); > > return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(receivedSig)); > } > ``` > [tab] Python > > ```python verify_signature.py theme={null} > import base64 > import hashlib > import hmac > import time > > def verify_stash_signature(header_value, body, egress_secret_b64): > parts = header_value.split(';', 3) > version, app_id, unix_ms, received_sig = parts[0], parts[1], parts[2], parts[3] > > # Reject requests outside the 5-minute clock-skew window > if abs(time.time() * 1000 - int(unix_ms)) > 5 * 60 * 1000: > return False > > # base64-decode the egress key from Studio → Project Settings → API Keys > key = base64.b64decode(egress_secret_b64) > # body is empty string for GET requests > signed_msg = f"{unix_ms}.{body}" > > expected = base64.b64encode( > hmac.new(key, signed_msg.encode('utf-8'), hashlib.sha256).digest() > ).decode('utf-8') > > return hmac.compare_digest(expected, received_sig) > ``` > [tab] Go > > ```go verify_signature.go theme={null} > package main > > import ( > "crypto/hmac" > "crypto/sha256" > "encoding/base64" > "fmt" > "math" > "strconv" > "strings" > "time" > ) > > func verifyStashSignature(headerValue string, body []byte, egressSecretB64 string) bool { > parts := strings.SplitN(headerValue, ";", 4) > if len(parts) != 4 { > return false > } > unixMs, receivedSig := parts[2], parts[3] > > // Reject requests outside the 5-minute clock-skew window > ts, err := strconv.ParseInt(unixMs, 10, 64) > if err != nil || math.Abs(float64(time.Now().UnixMilli()-ts)) > 5*60*1000 { > return false > } > > // base64-decode the egress key from Studio → Project Settings → API Keys > key, err := base64.StdEncoding.DecodeString(egressSecretB64) > if err != nil { > return false > } > > // body is empty for GET requests > signedMsg := fmt.Sprintf("%s.%s", unixMs, body) > mac := hmac.New(sha256.New, key) > mac.Write([]byte(signedMsg)) > expected := base64.StdEncoding.EncodeToString(mac.Sum(nil)) > > return hmac.Equal([]byte(expected), []byte(receivedSig)) > } > ``` ## Migrating from Legacy Auth No new API secrets are required to migrate. The same API key works with the versioned HMAC header. ### Before you migrate: update your stored secret (optional, recommended) > [!NOTE] > > This step applies to any **API auth migration**: `X-Stash-Api-Key` ingress auth and legacy `stash-hmac-signature` egress auth for APIs such as real-time catalog. It does **not** apply to webhook migration: webhook secrets have always been base64-encoded. If your backend stores the raw secret value (used with legacy API key header auth and legacy API HMAC auth), update it to store the **base64-encoded value copied from Studio** → Project Settings → API Keys before migrating. ![Studio API key page showing the base64-encoded Secret field and the Raw Secret field, with annotation: the Raw Secret is unencoded, and storing it means HMAC verification logic will diverge for webhooks and APIs. Tip: store the encoded secret to reuse the same signing and verification logic for versioned HMAC auth across all APIs and webhooks.](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/api-secrets-encoded.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=1213d891784a4f673b424b0138a24e37) **Why this matters:** Versioned HMAC code base64-decodes the secret before computing the signature. If your stored value is already base64-encoded, the same decoding step works uniformly for ingress signing (API calls to Stash) and egress verification (APIs and webhooks from Stash): ```javascript theme={null} const key = Buffer.from(secretB64, 'base64'); // same line works for all ``` If you skip this step and keep the raw secret, you must omit the base64-decode step in your HMAC code for these APIs. This means you can avoid storing the new encoded value in your database, but your API and webhook verification implementations will diverge. ### From X-Stash-Api-Key header Replace `X-Stash-Api-Key: ` with a versioned HMAC signature. Your **App ID** is in **Studio → Project Settings → General**: ``` // Before X-Stash-Api-Key: // After x-stash-hmac-signature: v1;;; ``` See [HMAC Signing](#hmac-signing) for the full format and implementation code. ### From legacy HMAC (stash-hmac-signature) Update your webhook listener and real-time catalog request handler to verify `x-stash-hmac-signature` instead of `stash-hmac-signature`. The same egress key is used; the change is adding the timestamp and App ID to the signed message. Your **App ID** is in **Studio → Project Settings → General**: ``` // Before (legacy) stash-hmac-signature: // After (versioned) x-stash-hmac-signature: v1;;; ``` See [HMAC Verification](#hmac-verification) for the updated format and implementation code. ### Migration rollout strategy Test the new HMAC signing and verification in your test shop before releasing to production. All shop environments already send the versioned `x-stash-hmac-signature` header on egress APIs and webhooks and validate it on all SDK ingress APIs. You can start sending and checking the new header at any time without coordinating with Stash. **If you did the optional preparation step** (you updated your stored secret to the base64-encoded value): > [!WARNING] > > Keep **both** the old raw secret and the new base64-encoded value stored in every environment until the rollout is fully complete and 100% of server-to-server traffic is using the new versioned HMAC. Replacing the raw secret before the new code is live in production will break auth for active users mid-rollout. > > Store the base64-encoded value as a new column or row in your database table. Do **not** overwrite the raw secret value until the new code is deployed and verified working in production. Recommended sequence: 1. Add the base64-encoded secret as a new column or row in your secret store (keep the raw value). 2. Deploy the new HMAC signing and verification code in your test environment. Point it at the base64-encoded value. 3. Verify auth works end-to-end in your test shop. 4. Deploy to production. Verify auth works. 5. Remove the raw secret from your secret store. **If you skipped the optional preparation step** (you kept the raw secret): You can roll out without managing two copies of each secret. Your API and webhook verification implementations will diverge slightly, but there is no DB migration required during the rollout. ## Next Steps * [HMAC Signing](#hmac-signing): sign your backend calls to Stash (ingress) * [HMAC Verification](#hmac-verification): verify Stash's signed requests to your backend (egress) * [Stash Pay → Authentication](/guides/stash-pay/integration#authentication): Stash Pay checkout link signing * [Stash Launcher Integration](/guides/stash-launcher/integration): apply ingress auth in launcher backend flows * [Real-time Catalog → Authentication](/guides/stash-webshop/catalog/real-time-catalog#authentication): verify Stash's signed catalog requests * [Webhook Listener](/guides/get-started/stash-webhooks/webhook-listener): implement HMAC Verification for incoming webhooks # Getting Started with Stash Studio Source: https://stash-gg.mintlify.app/guides/get-started/stash-studio/getting-started Learn how to get started with Stash Studio, the centralized web-based developer portal for managing your Stash integration. Understand key features including integration management, project settings, monitoring, authentication setup, and catalog control. > [!WARNING] > > At this moment, you can't self-register for Stash Studio. Please reach out to us to set up your account. Stash Studio ([studio.stash.gg](https://studio.stash.gg)) is your centralized platform for everything related to Stash and is probably the best way to get started as you need to navigate through it when integrating any of Stash's products. As a web-based developer portal, Stash Studio lets you manage every aspect of your Stash integration. With its no-code interface, game teams can easily configure, monitor, and optimize their webshop, payments, and catalog—no engineering changes required. It was built from the ground up not to only serve as a management platform, but as a debugging tool that help you through initial integration and when debugging any issues that occur. ## Key features * **Integration Management**: Set up and maintain API keys, configure webhooks, and data flow in your integration. * **Project Settings**: Configure visuals, branding, and presentation to match your game's identity across all Stash products. * **Monitoring & Insights**: See and debug messaging between Stash and game backend. * **Testing Tools**: Use the [Link Generator](/guides/stash-pay/how-tos/link-generator) to quickly generate and test Stash Pay checkout links without writing code. * **Authentication Setup**: Connect third-party or custom login systems to enable seamless player sign-in in webshops. * **Catalog Control**: Create, edit, and manage the offers and products displayed in your webshop. ## Core navigation When you login to your stash studio account, you can manage your "instances". These instances represent your games, you can create and delete instances as needed. ![Stash Studio Interface](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/games-list.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=c5e9ab38b3b042df19e4ee3be8a1b0c0) Stash Studio interface with a list of games associated with your studio account. All settings and configurations always happen on the game level, so create an instance or select an existing one before you # Main Dashboard Source: https://stash-gg.mintlify.app/guides/get-started/stash-studio/main-dashboard Learn how to use the main dashboard in Stash Studio to understand revenue, player purchase activity, account linking, and more. Explore analytics and operational metrics to monitor your integration health and optimize performance. When selecting your game in Stash Studio the first view that is presented is your **main dashboard**. Dashboard helps you understand your revenue, player purchase activity, account linking, and more at a glance. The dashboard is split into two main tabs **Analytics** and **Operational** overview. ## Analytics tab ![Stash Studio Interface](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/dashboard-analytics.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=da3928cca2ba02f3b0e72ec0ef6fc3d6) When selecting your game in Stash Studio your dashboard shows the most important metrics at a glance. ### All time saved by using Stash This number reflects the amount of money you've earned over traditional platforms that offer in-app purchases (IAPs). Because Stash charges less than these platforms, you retain more of the money from each purchase. ### Avg revenue per paying user This is the all-time average revenue per paying user. This metric depends on many factors such as purchase frequency, average order value, and user lifespans. To be included, users have to complete at least one purchase in your webshop. Use this value to better understand how much users spend, and to help gauge the overall effectiveness of your shop. ### Gross Revenue This chart breaks down different revenue metrics: * The gross revenue, which is the total amount paid by users. * The net revenue, which is the amount left after tax and payment processing fees. * The net revenue that would have been obtained through traditional platforms like Google and Apple. ### Average Order Value This chart displays the average amount spent on each order or purchase. It also includes the total number of transactions on each day. Similar to the gross revenue chart, it compares the current value to the last value for the specified time period (either the last 7 or 28 days). Use this chart to better understand how much users spend per order over time. The values displayed in this chart are often inversely proportional. For example, if the number of purchases goes up, the average order value goes down. This happens during events when you discount prices. ### New Linked Accounts This chart displays several things: * The number of users that linked their accounts to your webshop. * The number of users that made their first purchase (their account could have been linked on a previous day, not necessarily on the same day as the purchase). * The number of returning users that made a purchase. This chart helps you understand conversion (the number of users making their first purchase), and how many transactions are made by returning users. When you run promotions and other acquisition events, review these values to better understand the impact of these efforts. ## Operations tab ![Stash Studio Interface](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/dashboard-operations.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=89c9c8cc84c1a9d8e3dcee5da066f310) Operations tab is a great tool for engineers to monitor the messaging between you game server and Stash API. Operations data includes transaction and outgoing events metrics. You can use this data help monitor the health of your integration. The visualizations are interactive, and you can specify timeframes for the data. You can also click individual elements to view more detailed information. ### Transaction status The **Transaction** graph provides a real-time view of all payment events in your webshop. Transactions are categorized into the following statuses: | Status | Description | | - | - | | Succeeded | Successfully completed payments | | Canceled | Transactions canceled by the developer | | Requires Action | Payments requiring additional player actions (e.g., 3D Secure verification) | | Requires Capture | Authorized payments that failed to complete (player was not charged) | | Requires Payment Method | Transactions awaiting payment information | | Unknown | Transactions that failed for unspecified reasons | The graph displays the total number of transactions and the percentage breakdown by status. You can click on any status to view detailed event logs for transactions in that category. ### Outgoing events The **Outgoing Events** graph tracks webhooks and other external notifications. Use this visualization to monitor integration points between Stash and your infrastructure. | Status | Description | | - | - | | Success | Percentage of events successfully delivered | | Failed | Percentage of events that failed to deliver | Click individual events to view detailed logs. This can help identify and troubleshoot integration issues or failed notifications. # Project Settings Source: https://stash-gg.mintlify.app/guides/get-started/stash-studio/project-settings Learn how to manage project settings that span across Stash products including webhooks, API keys, theme settings, and more. Understand how to configure general settings, customize themes, manage receipts, set up game backend communication, and manage API keys. Project settings span across the Stash products you use. They include webhooks, API keys, theme settings, and more. You can edit these settings at any time, and they take effect immediately. [Add a webhook](https://demo.arcade.software/xLtGAsMi4uohsFre7lrg?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo ## General In **General** settings, you configure your game name, logo, shop handle, page title, and page description. These settings are editable and you can change them at any time. The shop handle field controls the URL for your shop, and it's also used in API calls to Stash. If you change this value, make sure to also: * Update links that referenced the previous URL * Update any API calls that used the previous shop handle ## Theme Customize appearance settings across Stash products in the **Theme** section. You can modify colors and other general settings. For webshop-specific settings, see the [customize your webshop's appearance](/guides/stash-webshop/how-tos/customize-webshop-appearance) page. ## Receipts Use the **Receipts** section to test email receipts. In production, receipt emails are sent to players immediately after successful purchases (applies to both Web Shop and Stash Pay). ## App Backend The **App Backend** section is where you configure the server URL and headers that Stash uses to communicate with your backend. You can only set a single server URL, but you can add multiple headers. You will learn a lot more about the game backend and webhook configuration later in the integration process. ## Webhooks In this section, you can: * Add webhooks * Enable or disable existing webhooks * Delete existing webhooks * Select individual webhooks to view more detailed information (outgoing events sent to the webhook, the webhook ID, etc.) The URL configured for each webhook is where Stash sends event data to. You can configure multiple webhooks and update them at any time. ## API Keys Create and manage API keys in the **API Keys** section. An ingress key signs the requests your backend makes to Stash APIs, and an egress key lets your backend verify the requests Stash makes to it. You can view and delete existing keys, or create new ones. Always keep API keys secure, and never expose them in client-side code. For detailed information on creating, using, and managing API keys, including code examples, security best practices, and troubleshooting, see the [API Keys guide](/guides/get-started/stash-api-keys/overview). # Roles & Permissions Source: https://stash-gg.mintlify.app/guides/get-started/stash-studio/roles-and-permissions Understand how app-scoped roles and account-wide ownership work in Stash Studio, including what each role can access. Stash Studio uses role-based access control (RBAC) to help teams collaborate safely. Most roles are assigned **per app**, which means a user can have different permissions on different apps. ## Roles in Stash Studio Stash Studio supports four app-scoped roles: * **Admin** * **Developer** * **Finance / Analytics** * **Product / Live Ops** Each role controls what a user can view or manage for a specific app. ## Owner role (account-wide) The **Owner** role is separate from app-scoped roles. * The first user on a Studio account is automatically assigned as **Owner**. * Stash can also assign the Owner role to a user by email. * Owner has access to everything across **all apps**. ## Per-app role assignments Roles are assigned per app, not globally. That means the same user can have different responsibilities in different apps. For example: * **Admin** on App A * **Finance / Analytics** on App B When users switch between apps, their available pages and actions update based on their role for the selected app. ## Capability matrix The matrix below summarizes access by role: | Capability | Admin | Developer | Finance / Analytics | Product / Live Ops | Owner | | - | - | - | - | - | - | | Technical settings | Yes | Yes | No | No | Yes | | Payouts | Yes | No | Yes | No | Yes | | Analytics | Yes | No | Yes | Yes | Yes | | Product / catalog | Yes | No | No | Yes | Yes | | Logs | Yes | Yes | No | No | Yes | | User management | Yes | No | No | No | Yes | ## Restricted route behavior If a user tries to access a route they do not have permission to view for the selected app, Studio blocks access and shows a restricted message: **"No access for this app — contact an Admin."** If this happens: 1. Switch to the correct app (where you may have a different role), or 2. Contact an Admin to request access for this app. # View Logs in Stash Studio Source: https://stash-gg.mintlify.app/guides/get-started/stash-studio/view-logs Learn how to use Stash Studio's comprehensive logging tools to inspect events, debug communication between Stash API and your game backend, and identify integration issues. Access logs for outgoing events, incoming events, payments, and linked accounts. Stash Studio provides comprehensive logging tools that are invaluable for engineers. You can inspect various types of events directly within the platform, making it easy to debug communication between the Stash API and your game backend or to identify hidden integration issues. # Logs Page Access your game's log by clicking the **"Logs"** icon in the main navigation. | Log Type | Description | | - | - | | Outgoing Events | Logs for calls made from Stash to your backend. | | Incoming Events | Logs for calls made from your backend to Stash. | | Payments | Logs related to payments. | | Linked Accounts | Logs that track when players link their accounts to the webshop. | Clicking individual events opens a detailed view with information like the URL, request body, a timestamp, and more. You also have several options for filtering logs by status, user ID, timeframe, etc. [View Logs Demo](https://demo.arcade.software/2AkpaOabVkxs4kS4yVEy?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo # Stash Webhooks Source: https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/overview Learn about Stash webhooks - automated notifications sent to your backend when events occur across Stash products. Understand how to configure webhooks in Stash Studio and handle webhook events for player interactions, purchases, and more. Webhooks are automated notifications that Stash sends to your backend when certain events occur in Stash products. They are a core component of integrating Stash Pay and Stash Webshop. When an event is triggered—such as a player making a purchase—Stash sends an HTTP POST request (with a JSON payload) to the webhook URL you've configured in Stash Studio. Common webhook event examples include: * Purchase completed successfully * Items added or removed from cart * User views a product * Payment intent created * Subscription created, renewed, or canceled By handling these webhook notifications, your backend can: * Grant items to players after successful purchases * Track user behavior and analytics * Maintain synchronization between your game and Stash * Manage subscription access and renewals * Process refunds and handle edge cases The following diagram illustrates a typical webhook flow: ```mermaid theme={null} sequenceDiagram participant User as User participant Stash as Stash Server participant Backend as Your Backend User->>Stash: Completes action (purchase, etc.) Stash->>Backend: Sends webhook notification Backend->>Backend: Process event (grant items, etc.) Backend-->>Stash: Returns 200 OK ``` ## Webhook formats Stash webhooks use two payload formats: ### v1 format (existing) Used by purchase and webshop events (`PURCHASE_SUCCEEDED`, `MUTATE_CART`, etc.). These use uppercase event types with camelCase nested objects: ```json theme={null} { "type": "PURCHASE_SUCCEEDED", "purchaseSucceeded": { ... } } ``` ### v2 format (new) Used by subscription events (`subscription.created`, `subscription.canceled`, etc.). These use lowercase dot-notation event types with a `data` object: ```json theme={null} { "type": "subscription.created", "data": { ... } } ``` **New webhook events will use the v2 format.** Your webhook handler should support both formats. See the [Webhook List](/guides/get-started/stash-webhooks/webhook-list) for detailed payload examples. ## Configure webhooks [Configure webhooks](https://demo.arcade.software/cr202HXWmXvGNvRfejst?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo To start receiving webhooks, you need to set them up in your Stash Studio project settings: **1. Open your project** Open your game project in Stash Studio. **2. Navigate to Settings** Go to the **Settings** section in the main navigation. **3. Configure Webhooks** Click on **Webhooks**. Here, you can add a new webhook by entering the URL of your webhook listener endpoint. Stash Studio will also provide you with a unique webhook secret, which you should use to verify the signature of each incoming webhook message. # Webhook Retries and Idempotency Source: https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/retries Learn about webhook retry behavior, how many retries are attempted, what happens on failure, and best practices for implementing idempotent webhook handlers. Stash retries a failed webhook delivery automatically, with exponential backoff. This page covers the uppercase events in the [Webhook List](/guides/get-started/stash-webhooks/webhook-list), such as `PURCHASE_SUCCEEDED` and `FREE_ITEM_REDEEMED`. It does not apply to the payment, refund and subscription events on that page, such as `payment.succeeded`, `payment.refunded` and `subscription.created`. ## How Many Retries * **Success**: your endpoint returns any `2xx` status within 5 seconds. * **Failure**: any other status, no response within 5 seconds, or a connection error. Stash retries every failure, including `401`, `403`, `429` and `5xx`. * **Schedule**: the first retries follow within seconds, and the gap doubles until Stash retries once an hour. * **Maximum**: up to 100 attempts over about 3.5 days. * **Permanent rejections**: if your endpoint keeps answering `400`, `404`, `405`, `410` or `422`, Stash stops retrying sooner. For `PURCHASE_SUCCEEDED`, `PURCHASE_FAILED`, `PURCHASE_REFUNDED`, `MUTATE_CART`, `LOYALTY_MILESTONE_CLAIMED` and `FREE_ITEM_REDEEMED` that is about 2 hours after the event; for every other event it is about 2 minutes. * **Test environment**: up to 10 attempts over about 9 minutes, with a 30-second timeout. The retry count is included in the `stash-retry-count` header (see [Webhook Headers](#webhook-headers) below). ## What Happens on Failure When a webhook delivery fails after all retry attempts are exhausted: 1. **No further automatic retries**: The webhook will not be automatically retried again 2. **Event is logged**: The failure is logged in Stash's internal systems for monitoring 3. **Manual reconciliation**: You may need to manually reconcile missed events by: * Querying the Stash API for transaction status * Checking your purchase history endpoints * Reviewing transaction logs in the Stash Studio dashboard > [!WARNING] > > **Important:** Webhook delivery failures do **not** affect the underlying transaction. If a `PURCHASE_SUCCEEDED` webhook fails to deliver, the purchase is still valid and the payment was processed. You should implement idempotent webhook handlers and have a reconciliation process to catch missed events. ## Webhook Headers Each webhook request includes the following HTTP headers: ### `Content-Type` * **Value**: `application/json` * **Description**: Indicates the request body is JSON ### `Stash-Hmac-Signature` * **Value**: Base64-encoded HMAC-SHA256 signature of the request body * **Description**: Used for signature verification (optional but recommended) * **Format**: Base64-encoded string * **See**: [Signature Verification](/guides/get-started/stash-webhooks/webhook-listener#signature-verification) ### `stash-retry-count` * **Value**: Integer string (e.g., `"0"`, `"1"`, `"2"`) * **Description**: Current retry attempt number (0 = initial attempt, 1 = first retry, etc.) * **Use Case**: Track retry attempts, implement retry-specific logic, debugging You can use the `stash-retry-count` header to: * Log retry attempts for debugging * Implement different handling logic for retries vs initial attempts * Monitor webhook delivery reliability ## Best Practices ### 1. Idempotent Handlers Design your webhook handlers to be **idempotent** (safe to process the same event multiple times). This ensures that if a webhook is retried, you don't accidentally: * Grant items twice * Charge a user multiple times * Create duplicate records **Example:** ```javascript theme={null} async function handlePurchaseSucceeded(event) { const { orderId, userId, items } = event.purchaseSucceeded; // Check if this order has already been processed const existingOrder = await db.getOrder(orderId); if (existingOrder && existingOrder.status === 'completed') { // Already processed, return success return { status: 'ok', message: 'Already processed' }; } // Process the order await grantItemsToUser(userId, items); await db.saveOrder(orderId, { status: 'completed', ...event }); return { status: 'ok' }; } ``` ### 2. Use Transaction IDs Use `orderId` or `transactionId` to deduplicate events. `FREE_ITEM_REDEEMED` carries neither; use its `redemptionId` (see the [Webhook List](/guides/get-started/stash-webhooks/webhook-list)). ```javascript theme={null} // Use orderId as a unique key const orderId = event.purchaseSucceeded.orderId; // Check if already processed if (await isOrderProcessed(orderId)) { return; // Skip duplicate } // Process and mark as complete await processOrder(orderId, event); await markOrderProcessed(orderId); ``` ### 3. Reconciliation Periodically query transaction status to catch missed webhooks: ```javascript theme={null} // Run this periodically (e.g., daily) async function reconcileMissedWebhooks() { const recentOrders = await stashApi.getRecentOrders(); for (const order of recentOrders) { if (!await isOrderProcessed(order.id)) { // Webhook was missed, process manually await handlePurchaseSucceeded({ purchaseSucceeded: order }); } } } ``` ### 4. Monitoring Monitor webhook delivery success rates and set up alerts for failures: * Track the `stash-retry-count` header to identify frequently retried webhooks * Set up alerts for webhook delivery failures * Monitor your endpoint's response times (must stay under 5 seconds) * Track error rates and response codes ### 5. Fast Response Respond within 5 seconds. A slower response counts as a failure and is retried: ```javascript theme={null} // Good: Process asynchronously and respond immediately app.post('/webhook', async (req, res) => { // Verify signature first if (!verifySignature(req)) { return res.status(401).send(); } // Respond immediately res.status(200).json({ received: true }); // Process asynchronously processWebhookAsync(req.body).catch(err => { console.error('Webhook processing error:', err); // Handle error (e.g., queue for retry, send alert) }); }); ``` ## Handling Retries You can use the `stash-retry-count` header to implement retry-specific logic: ```javascript theme={null} app.post('/webhook', async (req, res) => { const retryCount = parseInt(req.headers['stash-retry-count'] || '0'); if (retryCount > 0) { console.log(`Processing retry attempt ${retryCount} for webhook`); // You might want to log this differently or handle retries with extra care } // Process webhook... res.status(200).json({ received: true }); }); ``` ## Common Issues ### Duplicate Processing **Problem:** Webhook is processed multiple times due to retries. **Solution:** Implement idempotent handlers using `orderId` or `transactionId` as unique keys. ### Slow Processing **Problem:** Webhook processing takes too long, causing timeouts and retries. **Solution:** * Respond immediately with `200 OK` * Process the webhook asynchronously * Use background jobs or queues for heavy processing ### Missing Events **Problem:** Some webhooks are never received even after retries. **Solution:** * Implement reconciliation process * Monitor webhook delivery logs in Stash Studio * Set up alerts for delivery failures # Webhook List Source: https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list Comprehensive list of all webhook events that Stash can send to your backend, including event types, triggers, payload structures, and detailed examples for purchase, subscription, and payment webhooks across Stash products. 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. > [!NOTE] > > **Product-specific events:** Some events are specific to Stash Pay or Stash > Webshop. See the [Stash Pay integration guide](/guides/stash-pay/integration) > or [Stash Webshop integration guide](/guides/stash-webshop/integration) 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. | Event Type | Required | Products | Description | | - | - | - | - | | `PURCHASE_SUCCEEDED` | **Yes** | Pay, Webshop | Purchase successfully completed. Use to grant items to the player. `source` is `"StashPay"`, `"Cart"` or `"BuyNow"`. | | `PURCHASE_FAILED` | No | Pay, Webshop | A payment was refused or canceled. Use it for support and analytics, not to grant or revoke items. `reasonCode` says why: never show it or `reason` to the player. | | `PURCHASE_REFUNDED` | Recommended | Pay, Webshop | Full or partial refund processed. Use to revoke or adjust granted items. | | `OPEN_PAYMENT` | No | Pay, Webshop | Payment process initiated (user starts checkout). | | `FREE_ITEM_REDEEMED` | No | Pay, Webshop | A player claimed a free item. | | `LOGGED_IN` | No | Webshop | A player signed in to your webshop with a login code, an authenticated URL or your own OAuth 2.0 server. | | `MUTATE_CART` | No | Webshop | Cart contents changed (add/remove/quantity). | | `VIEW_ITEM` | No | Webshop | User viewed an item. At most once per 100 seconds per item per player; a view without a `userId` is sent once per view, up to a per-shop limit. | | `VIEW_CATALOG_SECTION` | No | Webshop | User scrolled a catalog section into view. At most once per 100 seconds per section per player; a view without a `userId` is sent once per view, up to a per-shop limit. | | `VIEW_CHECKOUT_PAGE` | No | Webshop | User opened the checkout page. | | `VIEW_PRODUCT_DETAIL_PAGE` | No | Webshop | User opened a product detail page. | | `CART_BUTTON_CLICK` | No | Webshop | User interacted with a cart button. | | `BUY_NOW_ITEM_CLICK` | No | Webshop | User clicked an item that opens checkout directly, without the cart. | | `PAY_BUTTON_CLICK` | No | Pay, Webshop | User clicked the pay button on the checkout page. | | `LOYALTY_MILESTONE_CLAIMED` | No | Webshop | Player claimed a loyalty milestone. Only fires when the loyalty program uses async webhook delivery mode. | | `LOGIN_FAILED` | No | Webshop | A player's sign-in to your webshop was declined, by your server or by Stash. `reason` says why. Off until Stash turns it on for your shop. | | `OFFER_SLOT_MISMATCH` | No | Webshop | Offers used a template key, or reward, buy button or text slot names, their catalog's templates do not have. The offers still showed. At most once per clock hour per template and set of mismatches. | | `CATALOG_REJECTED` | No | Webshop | Stash could not fetch your Real-time Catalog or decode its response. At most once per shop per 10-minute window. | | `CATALOG_ITEMS_DROPPED` | No | Webshop | Your Real-time Catalog was shown, but items were left out or a declared bonus has a missing or invalid picture. At most once per shop per 10-minute window from Stash's server, and once from your webshop. | | `CATALOG_DATA_CONFLICT` | No | Webshop | Your Real-time Catalog contradicts itself or your shop's configuration. At most once per shop and conflict per 10-minute window; `RESET_TIME_PASSED` once per item and reset time. | | `CATALOG_TEXT_FALLBACK` | No | Webshop | Catalog texts showed their `defaultText` because their `localizationKey` is not in your shop's localizations, or has no translation in the player's language. The offers still showed. At most once per shop per clock hour. | `CATALOG_REJECTED`, `CATALOG_ITEMS_DROPPED`, `CATALOG_DATA_CONFLICT` and `CATALOG_TEXT_FALLBACK` report problems in your [Real-time Catalog](/guides/stash-webshop/catalog/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: ```json title="Base Webhook Structure" theme={null} { "type": "PURCHASE_SUCCEEDED", "environment": "test", "shopId": "your-shop-uuid", "purchaseSucceeded": { // Event-specific payload } } ``` `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. ### Analytics consent `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. | Value | Meaning | | - | - | | `"ACCEPTED"` | The player accepted analytics. | | `"DECLINED"` | The player declined analytics. | | `"UNANSWERED"` | The player has not answered the banner yet. | 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. > [tab] PURCHASE_SUCCEEDED > > Triggered when a purchase is successfully completed. The `source` field says where the purchase started: > > | `source` | Purchase | > | :- | :- | > | `"StashPay"` | A Stash Pay checkout link your backend created | > | `"Cart"` | A Webshop cart checkout | > | `"BuyNow"` | A single item bought directly from the Webshop, without the cart | > > 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](/guides/stash-webshop/catalog/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: > > | Field | Type | Description | > | :- | :- | :- | > | `id` | string | The item's product ID. Several offers can share one product ID; use `guid` to tell them apart. | > | `guid` | string (optional) | The `guid` of the offer the item was sold under: the `guid` your catalog sent, or the one Stash generated for the item when your catalog sent none. On a `"Cart"` purchase it matches the `guid` on `ConfirmPayment`. | > | `quantity` | number | Units bought. | > | `price` | string | Price of one unit. | > | `priceId` | string (optional) | The Studio price ID the item was priced from: your catalog's `price.priceId`, or the item's product ID when the price was looked up by product ID. Only on `"Cart"` purchases, and omitted when your catalog sent a `price.amount`. See [Studio price lookup](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#studio-price-lookup). | > | `metadata` | object (optional) | Metadata attached to the item, such as the `metadata` you set on a catalog item. | > | `purchasePackId` | string (optional) | The `id` of the purchase pack the item belongs to. | > | `version` | string (optional) | The offer's `version`. | > | `templateKey` | string (optional) | The offer's `templateKey`. | > > 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. > > | `paymentMethodType` | Payment method | > | :- | :- | > | `"PAYMENT_METHOD_TYPE_CARD"` | Credit or debit card | > | `"PAYMENT_METHOD_TYPE_APPLE_PAY"` | Apple Pay | > | `"PAYMENT_METHOD_TYPE_GOOGLE_PAY"` | Google Pay | > | `"PAYMENT_METHOD_TYPE_PAYPAL"` | PayPal | > | `"PAYMENT_METHOD_TYPE_KLARNA"` | Klarna | > | `"PAYMENT_METHOD_TYPE_IDEAL"` | iDEAL | > | `"PAYMENT_METHOD_TYPE_EPS"` | EPS | > | `"PAYMENT_METHOD_TYPE_AFTERPAY"` | Afterpay | > | `"PAYMENT_METHOD_TYPE_BANCONTACT"` | Bancontact | > > `taxInclusive` says whether the item prices already include `tax`. It has the same value as on the purchase's [`ConfirmPayment`](/api/egress/purchase/confirmpayment): > > | `taxInclusive` | Meaning | > | :- | :- | > | `true` | The item prices include `tax`, as in markets where prices include VAT. `tax` is the share inside them. | > | `false` | `tax` is added on top of the item prices, or the purchase has no tax. | > > `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`. > > ```json title="Purchase Succeeded Event (Stash Pay example)" theme={null} > { > "type": "PURCHASE_SUCCEEDED", > "environment": "test", > "shopId": "your-shop-uuid", > "purchaseSucceeded": { > "timeMillis": 1640995200000, > "transactionId": "txn_789", > "orderId": "order_abc123", > "checkoutLinkId": "checkout_xyz789", > "currency": "USD", > "userId": "user_123", > "items": [ > { > "id": "item_456", > "guid": "item_456_summer", > "quantity": 2, > "price": "9.99", > "metadata": { > "category": "weapons", > "rarity": "legendary" > }, > "purchasePackId": "summer-offer", > "version": "5", > "templateKey": "starter-offer-v2" > } > ], > "tax": "1.50", > "total": "21.48", > "taxInclusive": false, > "taxDetails": { > "items": [ > { > "label": "Sales Tax", > "isInclusive": false, > "amount": "1.50", > "percentage": "7.5", > "country": "US", > "state": "CA" > } > ] > }, > "emailMarketingOptIn": true, > "regionCode": "US", > "source": "StashPay", > "ipAddress": "192.168.1.1", > "paymentMethodType": "PAYMENT_METHOD_TYPE_CARD", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] PURCHASE_FAILED > > Triggered when the payment provider refuses a payment (for example, a declined card) or a payment is canceled after authorization. Use it for support and analytics, not to grant or revoke items. > > > [!WARNING] > > > > **Never show `reasonCode` or `reason` to the player.** For a card or payment refusal, show a generic message, such as "Your payment could not be completed." Refusal details such as insufficient funds, suspected fraud or blocked-card signals help bad actors probe payment checks. This applies to `PURCHASE_FAILED` only; a decline your server returns from [`ConfirmPayment`](/api/egress/purchase/confirmpayment) is a different case. > > `reasonCode` says why the payment failed. It is always one of the values below, and the same refusal gives the same value whichever payment provider handled the payment. Build your analytics and support tooling on it. > > | `reasonCode` | Meaning | > | - | - | > | `insufficient_funds` | The account cannot cover the amount. | > | `card_expired` | The card's expiry date has passed. | > | `invalid_card` | The card cannot be charged: invalid number, unknown issuer or closed account. | > | `invalid_card_details` | The details entered don't match the card: wrong CVC, expiry date, postal code or PIN. | > | `suspected_fraud` | The payment was flagged as potential fraud. | > | `card_lost_or_stolen` | The card was reported lost or stolen. | > | `card_blocked` | The card is blocked or restricted. | > | `issuer_declined` | The bank declined the payment without a more specific cause. | > | `transaction_not_allowed` | This kind of payment is not permitted for the card. | > | `limit_exceeded` | An amount or frequency limit was exceeded. | > | `issuer_unavailable` | The bank or card network could not be reached. Trying again later may work. | > | `authentication_failed` | 3D Secure authentication failed or the player abandoned it. | > | `authentication_required` | The bank requires 3D Secure authentication for this payment. | > | `payment_stopped` | The cardholder or the bank stopped or revoked the payment. | > | `declined_other` | Any other cause, including a payment canceled after authorization. | > > Treat any value you don't recognize as `declined_other`: new values may be added over time. > > `reason` is free text for your logs and support team. Its wording can change, so read `reasonCode` instead of parsing it. See [Testing refusal reasons](/guides/get-started/test-cards#testing-refusal-reasons) for the refusals you can trigger in the test environment. > > ```json title="Purchase Failed Event" theme={null} > { > "type": "PURCHASE_FAILED", > "environment": "test", > "shopId": "your-shop-uuid", > "purchaseFailed": { > "timeMillis": 1640995200000, > "transactionId": "txn_789", > "checkoutLinkId": "checkout_xyz789", > "userId": "user_123", > "items": [ > { > "id": "item_456", > "quantity": 2, > "price": "9.99" > } > ], > "totalPrice": "21.48", > "currency": "USD", > "decimalPlaces": 2, > "reasonCode": "insufficient_funds", > "reason": "Payment failed: Insufficient funds (Warning: do not expose specific refusal reasons to shoppers, to prevent malicious use of details)", > "regionCode": "US", > "source": "StashPay", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] PURCHASE_REFUNDED > > Triggered when a refund is successfully processed for a previous purchase. Both full and partial refunds fire this event; multiple partial refunds on the same order each generate a separate event. > > The `items` array contains all items from the original purchase, not just refunded ones. The `total` field reflects the actual refund amount. > > ```json title="Purchase Refunded Event" theme={null} > { > "type": "PURCHASE_REFUNDED", > "environment": "test", > "shopId": "your-shop-uuid", > "purchaseRefunded": { > "timeMillis": 1640995200000, > "orderId": "order_abc123", > "userId": "user_123", > "items": [ > { > "id": "item_456", > "quantity": 2, > "price": "9.99", > "metadata": { > "category": "weapons", > "rarity": "legendary" > } > } > ], > "total": "21.48", > "currency": "USD", > "reason": "Customer requested refund", > "regionCode": "US", > "source": "StashPay", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] OPEN_PAYMENT > > Triggered when the payment process is initiated. The `source` field is `"StashPay"` for Stash Pay or `"Cart"` for Webshop. > > ```json title="Open Payment Event" theme={null} > { > "type": "OPEN_PAYMENT", > "environment": "test", > "shopId": "your-shop-uuid", > "openPayment": { > "cartId": "cart_789", > "userId": "user_123", > "items": [ > { > "id": "item_456", > "quantity": 2 > } > ], > "source": "StashPay" > } > } > ``` > [tab] FREE_ITEM_REDEEMED > > Triggered when a player claims a free item in your shop. Promo codes never trigger it: a promo code applies at checkout, as a discount or a bonus item (see [Create and Edit Promo Codes](/guides/stash-webshop/how-tos/create-promo-codes)). > > `itemId` is the catalog item that was granted. `claimId` is the claim it consumed, for catalogs that declare a stable claim identity on free items; it appears only when it differs from `itemId`. See [Free items and claim identity](/guides/stash-webshop/catalog/real-time-catalog/free-items). > > `redemptionId` identifies one redemption. Every delivery of that redemption carries the same `redemptionId`, so de-duplicate on it and treat it as an opaque string. This includes delivery retries, and the webhook from a player's new claim after a claim that did not complete (see [Claim status](/guides/stash-webshop/catalog/real-time-catalog/free-items#claim-status)). A redemption in a later claim window gets a new `redemptionId`, so keep your own rule for how often a claim can be granted. > > If a payload has no `redemptionId`, de-duplicate on `userId` + `itemId` + `timeMillis` instead. A retried delivery repeats the original payload unchanged, including `timeMillis`. > > `metadata` describes the item, not how it was claimed. For a Real-time Catalog it repeats the `metadata` you set on that free item, and `version` and `templateKey` repeat the free item's `version` and `templateKey`. Each is omitted when your catalog did not send it. > > ```json title="Free Item Redeemed Event" theme={null} > { > "type": "FREE_ITEM_REDEEMED", > "environment": "test", > "shopId": "your-shop-uuid", > "freeItemRedeemed": { > "timeMillis": 1640995200000, > "userId": "user_123", > "itemId": "item_free_001_gold_tier", > "claimId": "daily_gift", > "redemptionId": "6f1c2a9e-4b7d-4e2a-9c3f-8d5e1b0a7c42", > "version": "3", > "templateKey": "daily-gift-v1", > "ipAddress": "192.168.1.1", > "metadata": { > "rewardTier": "gold" > }, > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] LOGGED_IN > > Triggered when a player signs in to your webshop by one of these methods. Stash sends it once the player is signed in. > > | Sign-in | `checkoutSessionId` | > | :- | :- | > | An [account linking](/guides/stash-webshop/player-authentication/account-linking) login code | Present | > | A URL from [Generate authenticated URL](/api/ingress/server-urls/generateauthenticatedurl) | Present | > | Your own OAuth 2.0 server, set up by Stash for your shop | Omitted | > > [Direct Sign in (SSO)](/guides/stash-webshop/player-authentication/authentication-methods#direct-sign-in-sso) with providers such as Google, Apple or Facebook sends no `LOGGED_IN`. > > ```json title="Logged In Event" theme={null} > { > "type": "LOGGED_IN", > "environment": "test", > "shopId": "your-shop-uuid", > "loggedIn": { > "userId": "user_123", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] MUTATE_CART > > Triggered when cart contents are modified. Quantity deltas can be negative (removal) or positive (addition). > > ```json title="Mutate Cart Event" theme={null} > { > "type": "MUTATE_CART", > "environment": "test", > "shopId": "your-shop-uuid", > "mutateCart": { > "cartId": "cart_789", > "timeMillis": 1640995200000, > "userId": "user_123", > "items": [ > { > "id": "item_456", > "quantity": 3 > }, > { > "id": "item_789", > "quantity": -1 > } > ], > "regionCode": "US", > "source": "Cart", > "ipAddress": "192.168.1.1" > } > } > ``` > [tab] VIEW_ITEM > > Triggered when a user views an item. A view with a `userId` is debounced to once per 100 seconds per item per user. A view without a `userId` is sent once per view, up to a per-shop limit; past that limit, it is debounced to once per 100 seconds per item. > > `analyticsConsent` is the player's answer to your webshop's analytics consent banner. See [Analytics consent](#analytics-consent). > > ```json title="View Item Event" theme={null} > { > "type": "VIEW_ITEM", > "environment": "test", > "shopId": "your-shop-uuid", > "viewItem": { > "userId": "user_123", > "itemId": "item_456", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46", > "analyticsConsent": "ACCEPTED" > } > } > ``` > [tab] VIEW_CATALOG_SECTION > > Triggered when a catalog section scrolls into view. A view with a `userId` is debounced to once per 100 seconds per section per user. A view without a `userId` is sent once per view, up to a per-shop limit; past that limit, it is debounced to once per 100 seconds per section. > > `sectionId` is the section's ID. `sectionName` is the section's header, and is omitted when the section has none. `analyticsConsent` is the player's answer to your webshop's analytics consent banner. See [Analytics consent](#analytics-consent). > > ```json title="View Catalog Section Event" theme={null} > { > "type": "VIEW_CATALOG_SECTION", > "environment": "test", > "shopId": "your-shop-uuid", > "viewCatalogSection": { > "userId": "user_123", > "sectionId": "daily-deals", > "sectionName": "Daily Deals", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46", > "analyticsConsent": "ACCEPTED" > } > } > ``` > [tab] VIEW_CHECKOUT_PAGE > > Triggered when the checkout page is viewed. > > ```json title="View Checkout Page Event" theme={null} > { > "type": "VIEW_CHECKOUT_PAGE", > "environment": "test", > "shopId": "your-shop-uuid", > "viewCheckoutPage": { > "userId": "user_123", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] VIEW_PRODUCT_DETAIL_PAGE > > Triggered when a product detail page is viewed. > > ```json title="View Product Detail Page Event" theme={null} > { > "type": "VIEW_PRODUCT_DETAIL_PAGE", > "environment": "test", > "shopId": "your-shop-uuid", > "viewProductDetailsPage": { > "userId": "user_123", > "itemId": "item_456", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] CART_BUTTON_CLICK > > Triggered when a cart-related button (icon, badge, etc.) is clicked. > > ```json title="Cart Button Click Event" theme={null} > { > "type": "CART_BUTTON_CLICK", > "environment": "test", > "shopId": "your-shop-uuid", > "sendCartButtonClick": { > "userId": "user_123", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] BUY_NOW_ITEM_CLICK > > Triggered when a player clicks an item that opens checkout directly, without the cart. > > `itemId` is the clicked item. `productId` is the product ID shared by every offer of that item, and is omitted when Stash has none for the item. `analyticsConsent` is the player's answer to your webshop's analytics consent banner. See [Analytics consent](#analytics-consent). > > ```json title="Buy Now Item Click Event" theme={null} > { > "type": "BUY_NOW_ITEM_CLICK", > "environment": "test", > "shopId": "your-shop-uuid", > "buyNowItemClick": { > "userId": "user_123", > "itemId": "item_456", > "productId": "gems_100", > "regionCode": "US", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46", > "analyticsConsent": "ACCEPTED" > } > } > ``` > [tab] PAY_BUTTON_CLICK > > Triggered when a player clicks the pay button on the checkout page: > > * **Webshop cart checkout:** `cartId` is the cart being paid. > * **Stash Pay checkout opened from your webshop:** `cartId` is omitted, and `items` lists the checkout link's items. > > Each entry in `items` has the item's `id` and `quantity`, plus `productId` when Stash has one for the item. > > ```json title="Pay Button Click Event" theme={null} > { > "type": "PAY_BUTTON_CLICK", > "environment": "test", > "shopId": "your-shop-uuid", > "payButtonClick": { > "userId": "user_123", > "regionCode": "US", > "items": [ > { > "id": "item_456", > "quantity": 2, > "productId": "gems_100" > } > ], > "cartId": "cart_789", > "checkoutSessionId": "8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46" > } > } > ``` > [tab] LOYALTY_MILESTONE_CLAIMED > > Triggered when a player claims a loyalty milestone. Only fires when your loyalty program is configured for async webhook delivery mode (not synchronous API mode). This event carries the shared `loyalty` payload and a `milestoneTierId`. See [Loyalty webhooks](/guides/stash-webshop/how-tos/loyalty/analytics-app-integration) for the full contract and the [loyalty guide](/guides/stash-webshop/how-tos/loyalty) for configuration. > > ```json title="Loyalty Milestone Claimed Event" theme={null} > { > "type": "LOYALTY_MILESTONE_CLAIMED", > "environment": "production", > "shopId": "your-shop-uuid", > "loyaltyMilestoneClaimed": { > "timeMillis": 1748476800000, > "userId": "player_external_account_id", > "milestoneId": "milestone_uuid", > "rewards": [ > { > "itemId": "reward_type_id", > "quantity": 500 > } > ] > } > } > ``` > [tab] LOGIN_FAILED > > Triggered when a player's sign-in to your webshop is declined: > > * **By your server:** it called [`DeclineCustomLogin`](/api/ingress/webshop-account-linking/declinecustomlogin) for an [account linking](/guides/stash-webshop/player-authentication/account-linking) login code. > * **By Stash:** your server sent a client version below your shop's [minimum app version](/guides/stash-webshop/player-authentication/account-linking#set-a-minimum-app-version-optional) for the player's platform, on [`ApproveCustomLogin`](/api/ingress/webshop-account-linking/approvecustomlogin) or on [Generate authenticated URL](/api/ingress/server-urls/generateauthenticatedurl). Stash declines the login instead of approving the code or creating the link. > > An account linking login code sends at most 1 event: retrying the decline, or retrying an approve Stash already declined, sends no second one. Each declined Generate authenticated URL call sends its own event. A login code that expires without being approved or declined sends none. > > | `reason` | Meaning | > | :- | :- | > | `"NOT_ELIGIBLE"` | The store is not available to this player yet. | > | `"NOT_IN_ROLLOUT"` | The store is not enabled for this player in the current rollout. | > | `"CLIENT_OUTDATED"` | The player's app is older than the minimum version your shop requires. | > | `"OTHER"` | Any other reason. | > > Stash only declines with `CLIENT_OUTDATED`. Your server can send any of the reasons: see [Decline a login](/guides/stash-webshop/player-authentication/account-linking#decline-a-login) for when to send each. > > | Field | Type | Description | > | :- | :- | :- | > | `reason` | string | Why the login was declined: one of the values above. | > | `declinedBy` | string | `"PARTNER"` when your server declined the login, `"STASH"` when Stash did. | > | `loginMethod` | string | `"CUSTOM_LOGIN"` for an account linking login code, `"AUTHENTICATED_LINK"` for a Generate authenticated URL call. | > | `occurredAt` | string | When the login was declined, as an RFC 3339 timestamp in UTC. | > | `userId` | string (optional) | The player ID your server sent on the declining call. | > | `clientVersion` | string (optional) | The client version your server sent. | > | `gameVersion` | string (optional) | The game version your server sent. | > | `minAppVersion` | string (optional) | The minimum app version that applied to the player's platform. Only when `declinedBy` is `"STASH"`. | > | `regionCode` | string (optional) | The player's region your server sent, as a Unicode CLDR region code. Only when `declinedBy` is `"STASH"`. | > > Optional fields are omitted when the declining call did not carry them. > > ```json title="Login Failed Event" theme={null} > { > "type": "LOGIN_FAILED", > "environment": "production", > "shopId": "your-shop-uuid", > "loginFailed": { > "userId": "player_123", > "reason": "CLIENT_OUTDATED", > "declinedBy": "STASH", > "clientVersion": "2.13.0", > "gameVersion": "512", > "minAppVersion": "2.14.0", > "loginMethod": "CUSTOM_LOGIN", > "regionCode": "BR", > "occurredAt": "2026-09-30T12:00:00Z" > } > } > ``` > [tab] OFFER_SLOT_MISMATCH > > Triggered when the web shop shows [Real-time Catalog](/guides/stash-webshop/catalog/real-time-catalog) offers whose template key or slot names do not fit their templates (see [Offer templates with named slots](/guides/stash-webshop/catalog/real-time-catalog/offer-templates)): > > * **Unknown template key:** an offer's `templateKey` names no template your shop has, so the offer showed in your shop's default template. Sent even when nothing else is wrong, so you can tell a misspelled or not-yet-added template from a slot mismatch. > * **Unmatched layout keys:** a reward's `layoutKey` names no reward slot of the template. > * **Missing layout keys:** the template has reward slots and a reward has no `layoutKey`. Only reported when at least one offer on the page sends a `layoutKey`, so a catalog that does not use layout keys gets no such reports. > * **Unmatched text slots:** a `textSlots` name is no text slot of the template. > * **Unmatched buy button key:** a buy button's `layoutKey` names no buy button slot of the template. A buy button with no `layoutKey` is not reported. > > The offers still showed: those rewards, buy buttons and texts were placed by the template's fallback rules. Use the event to correct the names in your catalog. > > You get at most one event per clock hour (UTC) for each template and set of mismatches, however many players see the offers, so the same mismatch can arrive twice a few minutes apart across the hour. A new or changed mismatch is sent right away. `offers` lists up to 10 of the affected offers by the IDs your catalog sent, and each name list is sorted and holds up to 20 names. > > `unmatchedBuyButtonLayoutKey` is the buy button `layoutKey` the offers sent, and is present only when it names no buy button slot of the template. > > `templateKey` is the template key the offers sent, and is omitted when they sent none. When `unknownTemplateKey` is `true`, the key names no template your shop has, the offers showed in your shop's default template, and any other mismatches are against that template's slots. > > ```json title="Offer Slot Mismatch Event" theme={null} > { > "type": "OFFER_SLOT_MISMATCH", > "environment": "production", > "shopId": "your-shop-uuid", > "offerSlotMismatch": { > "templateKey": "starter-offer-v2", > "unknownTemplateKey": false, > "unmatchedLayoutKeys": ["Middle"], > "missingLayoutKeys": true, > "unmatchedTextSlots": ["Subtitle"], > "unmatchedBuyButtonLayoutKey": "SKU_Top", > "offers": [ > { > "itemId": "starter_bundle", > "productId": "starter_bundle" > } > ], > "detectedAt": "2026-10-15T21:05:00Z" > } > } > ``` > [tab] CATALOG_REJECTED > > Triggered when Stash requests your catalog from your [`GetCatalog`](/api/egress/catalog/getcatalog) endpoint and the request fails. Until your endpoint answers again, players may see an earlier cached copy of your catalog, or no catalog. > > | `reason` | What happened | What to check | > | :- | :- | :- | > | `"ENDPOINT_UNAVAILABLE"` | Stash could not reach your endpoint, or it did not answer in time. | Your endpoint's availability and response time. | > | `"ENDPOINT_ERROR_STATUS"` | Your endpoint answered with an HTTP 4xx or 5xx status. | Your endpoint's logs for the failed requests. | > | `"RESPONSE_UNDECODABLE"` | Your endpoint answered, but the body is not a valid `GetCatalog` response. | The response body against the [`GetCatalog` reference](/api/egress/catalog/getcatalog). | > > Stash does not send the event for a failure on its own side before the request reaches you, or when the player leaves the page before your endpoint answers. > > You get at most 1 event per shop in each 10-minute window (windows start on the hour and every 10 minutes after it, UTC), however many requests fail. > > | Field | Type | Description | > | :- | :- | :- | > | `timeMillis` | number | When Stash saw the failure that sent this event, in milliseconds since the Unix epoch. | > | `windowStartMillis` | number | Start of the period `occurrences` covers, in milliseconds since the Unix epoch. | > | `occurrences` | number | Failed requests from `windowStartMillis` to `timeMillis`. Counted on the Stash server that sent the event, so treat it as a minimum. | > | `endpoint` | string | Always `"CATALOG"`: your `GetCatalog` endpoint. | > | `reason` | string | Why the request failed: one of the values above. | > > ```json title="Catalog Rejected Event" theme={null} > { > "type": "CATALOG_REJECTED", > "environment": "production", > "shopId": "your-shop-uuid", > "catalogRejected": { > "timeMillis": 1700000600000, > "windowStartMillis": 1700000000000, > "occurrences": 42, > "endpoint": "CATALOG", > "reason": "ENDPOINT_ERROR_STATUS" > } > } > ``` > [tab] CATALOG_ITEMS_DROPPED > > Triggered when catalog items cannot be read or shown, or a bonus you declared has a missing or invalid picture. Use `items` to find each problem in your catalog response. > > Problems are reported from 2 places, each separately: > > * **Stash's server**, when it cannot read an item, hides a streak's free items because the streak's layout breaks the [streak rules](/guides/stash-webshop/catalog/real-time-catalog/free-items#keep-the-layout-whole), or finds a missing or invalid picture for a declared bonus. Bonus-picture reports use `path: "bonusItems[n]"` and the bonus ID as `value`, including bonuses combined into another reward on the card. A bonus-picture report does not mean the server removed the offer. Check the bonus ID and its picture in your shop's reward configuration. > * **Your webshop**, when it draws the page in the player's browser and cannot show an item, for example because a picture it needs is missing, is not an `https` URL, or fails to load. These entries carry `path` and `value`, which point at the field to fix. > > You get at most 1 event per shop from each place in each 10-minute window (windows start on the hour and every 10 minutes after it, UTC), so at most 2 in one window. `droppedCount` and `items` describe the single page load that sent the event; `occurrences` counts page loads with reportable problems. An item you have already fixed can still be reported until the cached copy of your catalog refreshes (see [Caching](/guides/stash-webshop/catalog/real-time-catalog/caching)). > > | Field | Type | Description | > | :- | :- | :- | > | `timeMillis` | number | When the page load that sent this event happened, in milliseconds since the Unix epoch. | > | `windowStartMillis` | number | Start of the period `occurrences` covers, in milliseconds since the Unix epoch. | > | `occurrences` | number | Page loads with reportable problems, from `windowStartMillis` to `timeMillis`. Counted on the Stash server that sent the event, so treat it as a minimum. Always `1` on an event from your webshop, whose `windowStartMillis` equals its `timeMillis`. | > | `droppedCount` | number | Count of distinct problem entries for that page load, including bonus-picture findings on offers the server kept. A truncated webshop report may carry a larger omitted-item count supplied by the browser. May exceed the length of `items`. | > | `items` | array | Up to 20 reported problems. Server reports list removed items before bonus-picture findings on retained offers, except that a hidden streak lists only its first `STREAK_LAYOUT_INVALID` entry before those findings and the rest after them. Always present. | > | `truncated` | boolean | `true` when the report contains more problems than `items` holds. | > > Each entry in `items`: > > | Field | Type | Description | > | :- | :- | :- | > | `itemId` | string (optional) | Your ID for the item: the `productId` of a `product` or of a pack's price point, the `itemId` of an `info` or `free` item, or the first link's `productId` for a `chain`. | > | `guid` | string (optional) | The `guid` you sent for the item. | > | `reason` | string | Why the item was left out. See below. | > | `field` | string (optional) | What in the item was malformed, with `ITEM_NOT_CONVERTIBLE`, or which streak rule the section broke, with `STREAK_LAYOUT_INVALID`. Only with these 2 reasons. See below. | > | `path` | string (optional) | Where in the item the picture problem is, in your catalog's field names, for example `image`, `contents[2].unitImage` or `bonusItems[0]`. | > | `value` | string (optional) | The reported value, cut to 512 bytes. For `bonusItems[n]`, the bonus ID you sent, rather than its resolved picture URL. Otherwise, the picture value; omitted when absent. | > | `rewardGuid` | string (optional) | The `guid` you sent for the reward, when the problem is in one of the item's `contents`. | > | `layoutKey` | string (optional) | The `layoutKey` you sent for the affected reward or declared bonus. | > > `itemId` and `guid` are always values from your catalog, never IDs Stash generated. Each is omitted when Stash has none to report, for example for an item of a type Stash does not recognize. > > | `reason` | Why the item was left out | > | :- | :- | > | `"DUPLICATE_ITEM_ID"` | An earlier item in the response has the same `guid`, or the item repeats the free offer configured for your shop. Stash shows the first one. | > | `"UNKNOWN_ITEM_VARIANT"` | The item is none of the [catalog item types](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#catalog-items) Stash recognizes. Reported with no `itemId` or `guid`. | > | `"PRICE_NOT_RESOLVABLE"` | Stash could not look up a Studio price for the item's `priceId`, or for its `productId` when `price` is omitted. See [Studio price lookup](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#studio-price-lookup). | > | `"CONTENT_LIMIT_EXCEEDED"` | The item has more `contents` entries (in total, featured or not featured) than your shop's content limits allow. | > | `"PACK_MISSING_ID"` | The item is in a `pack` with no `id`, so the whole pack is left out. Reported once per item in the pack; a pack with no items is reported once, with no `itemId` or `guid`. | > | `"ITEM_NOT_RENDERABLE"` | Stash read the item but could not draw it, for example an offer chain whose link statuses are out of order, or a `contents` quantity too large for an unsigned 32-bit integer. Also reported by your webshop for an item it cannot draw for another reason. | > | `"ITEM_NOT_CONVERTIBLE"` | A value in the item is malformed. `field` names it when Stash can. | > | `"IMAGE_MISSING"` | A required picture is absent or empty. `path` identifies the picture or declared bonus. Reported by your webshop, or by Stash's server for declared bonus pictures. | > | `"IMAGE_INVALID"` | A picture is not an absolute `https` URL. `path` identifies the picture or declared bonus; `value` contains the picture value or bonus ID. Reported by your webshop, or by Stash's server for declared bonus pictures. | > | `"IMAGE_LOAD_FAILED"` | A picture's URL did not load in the player's browser. `path` names it and `value` carries the URL. Reported by your webshop. | > | `"STREAK_LAYOUT_INVALID"` | The item is a `free` item of a [streak tracked by Stash](/guides/stash-webshop/catalog/real-time-catalog/free-items#streaks-tracked-by-stash) whose section breaks the [streak rules](/guides/stash-webshop/catalog/real-time-catalog/free-items#keep-the-layout-whole), so Stash hides the section's free items. Reported once per hidden item; `field` names the rule broken. Not reported when Stash only inferred the section and shows it as you sent it. Reported by Stash's server. | > > | `field` | What was malformed | > | :- | :- | > | `"ITEM_EMPTY"` | The item, or a link of an offer chain, is empty, or the item has neither an ID nor a `guid`. | > | `"PRICE_AMOUNT_INVALID"` | `price.amount` cannot be read, for example because it has no `currency`. | > | `"PRICE_TYPE_UNKNOWN"` | `price` is present but sets neither `amount` nor `priceId`. | > | `"PRICE_MISSING"` | The item has no `price`, and Studio price lookup is not set up for your shop. | > | `"CONTENT_QUANTITY_INVALID"` | A `contents` entry's `quantity` is not an integer. | > | `"REWARD_BUFF_INVALID"` | A `contents` entry's `rewardBuff` has a `type` Stash does not recognize. | > | `"BONUS_INVALID"` | The bonus amount in the item's `metadata` is not a whole number from 0 to 4294967295. | > | `"CHAIN_EMPTY"` | An offer chain has no links. | > | `"CONTENTS_MISSING"` | A `free` item has no `contents`. | > > With `STREAK_LAYOUT_INVALID`, `field` names the streak rule the section broke: > > | `field` | Rule broken | > | :- | :- | > | `"STREAK_ORDER_GAP"` | The `streakOrder` values do not run from 1 with no gaps. | > | `"STREAK_ORDER_MIXED"` | Some free items in the section set `streakOrder` and some do not. | > | `"STREAK_ORDER_DUPLICATE"` | Two items share a `streakOrder` and a `targetTierId`, or share a `streakOrder` and neither sets `targetTierId`. | > | `"STREAK_ITEM_ID_DUPLICATE"` | Two free items in the section share an `itemId`. | > | `"STREAK_SEQUENCE_PARTIAL"` | The steps do not make a whole number of sequences of the length set for your shop. | > | `"STREAK_ORDER_IN_SEVERAL_SECTIONS"` | More than 1 section sets `streakOrder`. The free items of each are reported. | > | `"STREAK_TIER_LISTS_UNEQUAL"` | No item sets `streakOrder`, and the tiers' lists of items have different lengths. | > | `"STREAK_TIER_WITH_FREE_OFFER"` | An item sets `targetTierId` while a free offer is configured for your shop. | > | `"STREAK_STEP_IS_FREE_OFFER"` | An item sets `rewardHiddenWhileLocked`, sets no `targetTierId`, and its `itemId` or its `claimId` is the item ID of the free offer configured for your shop. | > | `"STREAK_HIDDEN_IDENTITY_SHARED"` | An item sets `rewardHiddenWhileLocked`, and another item in the catalog uses its `itemId` or `guid`, or claims as it. | > > ```json title="Catalog Items Dropped Event" theme={null} > { > "type": "CATALOG_ITEMS_DROPPED", > "environment": "production", > "shopId": "your-shop-uuid", > "catalogItemsDropped": { > "timeMillis": 1700000600000, > "windowStartMillis": 1700000000000, > "occurrences": 3, > "droppedCount": 2, > "items": [ > { > "itemId": "gems_100", > "guid": "gems-guid", > "reason": "ITEM_NOT_CONVERTIBLE", > "field": "PRICE_AMOUNT_INVALID" > }, > { > "reason": "UNKNOWN_ITEM_VARIANT" > } > ], > "truncated": false > } > } > ``` > > ```json title="Catalog Items Dropped Event (from your webshop)" theme={null} > { > "type": "CATALOG_ITEMS_DROPPED", > "environment": "production", > "shopId": "your-shop-uuid", > "catalogItemsDropped": { > "timeMillis": 1700000600000, > "windowStartMillis": 1700000600000, > "occurrences": 1, > "droppedCount": 2, > "items": [ > { > "itemId": "starter_bundle", > "guid": "starter-bundle-guid", > "reason": "IMAGE_INVALID", > "path": "contents[0].unitImage", > "value": "CoinIcon", > "rewardGuid": "coins-guid", > "layoutKey": "Reward_Panel_0" > }, > { > "itemId": "starter_bundle", > "guid": "starter-bundle-guid", > "reason": "IMAGE_MISSING", > "path": "image" > } > ], > "truncated": false > } > } > ``` > [tab] CATALOG_DATA_CONFLICT > > Triggered when your catalog contradicts itself or your shop's configuration, so Stash shows something other than what you intended. > > You get at most 1 event per shop and `conflict` value in each 10-minute window (windows start on the hour and every 10 minutes after it, UTC), so 2 different conflicts in the same window are both sent. `"RESET_TIME_PASSED"` is the exception: you get 1 event for each item and reset time, not per window (a reset time that stays in your catalog for hours can occasionally be reported again), and Stash sends a limited number per shop in any 10 minutes, so with many late items the rest arrive in later windows if their time is still in the past then. This event has no `occurrences` or `windowStartMillis`. > > | `conflict` | What happened | Fields set | > | :- | :- | :- | > | `"FREE_OFFER_ID_NOT_MATCHED"` | Your catalog sent `free` items, but none of them matches the free offer configured for your shop. Stash keeps showing the configured free offer. See [Free items and claim identity](/guides/stash-webshop/catalog/real-time-catalog/free-items). | `configuredValue`: the configured free offer's item ID. `receivedValue`: the `itemId` of each `free` item you sent, comma-separated, up to 20. | > | `"FREE_OFFER_CLAIM_ID_CONFLICT"` | The `free` item whose `itemId` is the configured free offer's item ID declares a different `claimId`. Seen when a player claims the item: Stash ignores that `claimId` and uses the `itemId` as the claim identity. | `itemId` and `configuredValue`: the item ID. `receivedValue`: the `claimId` you sent. | > | `"PURCHASE_PACK_DUPLICATE_ID"` | 2 or more packs share an `id`, so purchases from any of them carry the same `purchasePackId`. | `itemId`: the pack `id`. | > | `"PURCHASE_PACK_MULTIPLE_WHOLE_PACK_ITEMS"` | A pack has more than 1 item with `type: PURCHASE_PACK_ITEM_TYPE_WHOLE_PURCHASE_PACK`. See [Purchase packs](/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#purchase-packs). | `itemId`: the pack `id`. | > | `"RESET_TIME_PASSED"` | When Stash fetched your catalog, it still carried a reset time more than 1 minute in the past: a `refreshAt` on a `product`, `pack` or `free` item, `catalog.refreshAt`, or a trigger's `nextResetAt`. The state you promised from that time was not in the response yet. Return the post-reset catalog from the reset time onward; see [Caching](/guides/stash-webshop/catalog/real-time-catalog/caching). | `itemId`: the product `productId`, pack `id` or free item `itemId`; omitted for `catalog.refreshAt` and a trigger's `nextResetAt`. `receivedValue`: the reset time you sent, as an RFC 3339 UTC timestamp. | > > When several packs have the same conflict, the event names the first by `id` in sort order. Once you fix it, a later window names the next pack still affected. > > | Field | Type | Description | > | :- | :- | :- | > | `timeMillis` | number | When Stash saw the conflict, in milliseconds since the Unix epoch. | > | `conflict` | string | What contradicts what: one of the values above. | > | `itemId` | string (optional) | The pack `id`, free item `itemId` or product `productId` the conflict is about. | > | `configuredValue` | string (optional) | The value configured for your shop. | > | `receivedValue` | string (optional) | The value your catalog sent. | > > A field the conflict does not use is omitted. Every value is one you sent in your catalog or one configured for your shop. > > ```json title="Catalog Data Conflict Event" theme={null} > { > "type": "CATALOG_DATA_CONFLICT", > "environment": "production", > "shopId": "your-shop-uuid", > "catalogDataConflict": { > "timeMillis": 1700000600000, > "conflict": "FREE_OFFER_ID_NOT_MATCHED", > "configuredValue": "daily_gift", > "receivedValue": "daily_gift_v2" > } > } > ``` > [tab] CATALOG_TEXT_FALLBACK > > Triggered when catalog texts on offers your webshop showed fell back to their `defaultText` because of their `localizationKey` (see [Localization](/guides/stash-webshop/catalog/real-time-catalog/localization-and-text#localization)). The offers are still shown; the event tells you which keys to fix. > > | `reason` | What happened | > | :- | :- | > | `"KEY_UNKNOWN"` | Your shop's localizations have no English entry for the key. A player whose language has a translation for the key still sees it; every other player, English included, sees `defaultText`. Usually a mistyped key, or an offer published before its localization row was imported. | > | `"TRANSLATION_MISSING"` | The key has an English entry but none in the player's language, so `defaultText` showed in an otherwise translated page. `locale` names the language. | > > Keys are matched exactly, including case. > > You get at most 1 event per shop in each clock hour (UTC). Unlike `CATALOG_ITEMS_DROPPED`, whose `items` describe one page load, `texts` gathers what one Stash server saw since its previous event, so a key that only some players' catalogs or languages produce still reaches you. One event may not list every text: `keyUnknownCount` and `translationMissingCount` say how many there were. A text keeps being reported each hour until it is fixed, and a fixed text can still be reported until your next localization import and the cached copy of your catalog refresh (see [Caching](/guides/stash-webshop/catalog/real-time-catalog/caching)). > > | Field | Type | Description | > | :- | :- | :- | > | `timeMillis` | number | When the page load that sent this event happened, in milliseconds since the Unix epoch. | > | `windowStartMillis` | number | Start of the period the event covers, in milliseconds since the Unix epoch. | > | `occurrences` | number | Page loads with at least 1 text that fell back, from `windowStartMillis` to `timeMillis`. Counted on the Stash server that sent the event, so treat it as a minimum. | > | `keyUnknownCount` | number | Distinct keys with `KEY_UNKNOWN` in that period. A minimum; may exceed the entries in `texts`. | > | `translationMissingCount` | number | Distinct pairs of key and `locale` with `TRANSLATION_MISSING` in that period. A minimum; may exceed the entries in `texts`. | > | `texts` | array | Up to 20 entries, `KEY_UNKNOWN` first, then `TRANSLATION_MISSING`. Always present. | > | `truncated` | boolean | `true` when there were more texts than `texts` holds. | > > Each entry in `texts` names one key once per reason and language, at the first place it was found: > > | Field | Type | Description | > | :- | :- | :- | > | `reason` | string | `"KEY_UNKNOWN"` or `"TRANSLATION_MISSING"`. | > | `localizationKey` | string | The `localizationKey` you sent, cut to 512 bytes. | > | `locale` | string (optional) | The player's language, for example `"nl-NL"`. Only on `TRANSLATION_MISSING`. | > | `itemId` | string (optional) | Your ID for the item the text is on: the `productId` of a `product` or of a pack's price point, the `id` of a pack for the pack's own texts, the `itemId` of an `info` or `free` item, or the first link's `productId` for a `chain`. Omitted for a text outside any item. | > | `guid` | string (optional) | The `guid` you sent for the item. | > | `path` | string (optional) | Where the text is, in your catalog's field names, relative to the item (`name`, `contents[2].name`, `textSlots.Title`, `items[1].name` in a pack), or from the response root for a text outside any item (`catalog.sections[0].header`, `catalog.banner.title`). | > | `textOmitted` | boolean | `true` when `defaultText` was empty too, so nothing showed. | > > ```json title="Catalog Text Fallback Event" theme={null} > { > "type": "CATALOG_TEXT_FALLBACK", > "environment": "production", > "shopId": "your-shop-uuid", > "catalogTextFallback": { > "timeMillis": 1700003600000, > "windowStartMillis": 1700000000000, > "occurrences": 7, > "keyUnknownCount": 1, > "translationMissingCount": 2, > "texts": [ > { > "reason": "KEY_UNKNOWN", > "localizationKey": "offer.starter.titel", > "itemId": "starter_499", > "guid": "starter-guid", > "path": "textSlots.Title", > "textOmitted": false > }, > { > "reason": "TRANSLATION_MISSING", > "localizationKey": "offer.starter.title", > "locale": "nl-NL", > "itemId": "starter_499", > "path": "name", > "textOmitted": false > }, > { > "reason": "TRANSLATION_MISSING", > "localizationKey": "section.daily", > "locale": "nl-NL", > "path": "catalog.sections[0].header", > "textOmitted": false > } > ], > "truncated": false > } > } > ``` ## 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. | Field | Type | Description | | - | - | - | | `type` | string | Event type identifier (e.g. `"PURCHASE_SUCCEEDED"`). | | `environment` | string | Environment that sent the webhook. Always present. `"test"` or `"production"`. | | `shopId` | string | ID of the shop that sent the event. Always present on v1 events. | | `userId` | string | External user identifier from your system. | | `regionCode` | string | Unicode CLDR region code (e.g. `"US"`, `"FR"`) based on user location. | | `ipAddress` | string | User's IP address when the event occurred. | | `timeMillis` | number | When the event happened, in milliseconds since the Unix epoch. Present on `PURCHASE_SUCCEEDED`, `PURCHASE_REFUNDED`, `FREE_ITEM_REDEEMED`, `MUTATE_CART`, `LOYALTY_MILESTONE_CLAIMED`, `CATALOG_REJECTED`, `CATALOG_ITEMS_DROPPED`, `CATALOG_DATA_CONFLICT` and `CATALOG_TEXT_FALLBACK`. Not on the view and click events. | | `checkoutSessionId` | string | The player's webshop browsing session: the same value on every event of the session, and a new value after 30 minutes without activity. Omitted when the event is not tied to a webshop session, and may be omitted when `analyticsConsent` is `"DECLINED"` or `"UNANSWERED"`. See [Webshop session](#webshop-session). | | `analyticsConsent` | string | The player's answer to your webshop's analytics consent banner: `"ACCEPTED"`, `"DECLINED"` or `"UNANSWERED"`. On `VIEW_ITEM`, `VIEW_CATALOG_SECTION` and `BUY_NOW_ITEM_CLICK`; omitted when no answer was reported. See [Analytics consent](#analytics-consent). | *** ## Subscription Events (v2) > [!NOTE] > > 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](/guides/stash-pay/subscriptions/about) for full integration details. ### Available subscription events | Event Type | Description | Trigger | | - | - | - | | `subscription.created` | New subscription created | Player completes subscription checkout | | `subscription.updated` | Subscription changed | Plan or status was modified | | `subscription.canceled` | Subscription canceled | Player cancels their subscription | | `subscription.reactivated` | Subscription reactivated | Canceled subscription was reactivated before expiration | | `subscription.expired` | Subscription expired | Subscription reached terminal state | | `subscription.payment_failed` | Payment failed | Renewal payment attempt failed; subscription enters `past_due` | | `subscription.payment_succeeded` | Payment succeeded | Renewal payment processed successfully | ### v2 Payload structure Subscription webhooks use a different structure from v1 events: ```json title="v2 Webhook Structure" theme={null} { "type": "subscription.event_name", "data": { // Subscription object } } ``` ### Detailed subscription payloads > [tab] created > > Triggered when a new subscription is created. > > ```json title="subscription.created" theme={null} > { > "type": "subscription.created", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "active", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": "2024-02-01T00:00:00Z", > "access_end_date": "2024-03-01T00:00:00Z", > "current_period_end": "2024-03-01T00:00:00Z", > "next_billing_date": "2024-03-01T00:00:00Z", > "cancel_at_period_end": false, > "canceled_at": null, > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] updated > > Triggered when a subscription's plan or status changes. > > ```json title="subscription.updated" theme={null} > { > "type": "subscription.updated", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "active", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-04-01T00:00:00Z", > "current_period_end": "2024-04-01T00:00:00Z", > "next_billing_date": "2024-04-01T00:00:00Z", > "cancel_at_period_end": false, > "canceled_at": null, > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] canceled > > Triggered when a player cancels their subscription. > > ```json title="subscription.canceled" theme={null} > { > "type": "subscription.canceled", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "canceled", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-03-01T00:00:00Z", > "current_period_end": "2024-03-01T00:00:00Z", > "next_billing_date": "2024-03-01T00:00:00Z", > "cancel_at_period_end": true, > "canceled_at": "2024-02-15T14:30:00Z", > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] reactivated > > Triggered when a canceled subscription is reactivated before expiration. > > ```json title="subscription.reactivated" theme={null} > { > "type": "subscription.reactivated", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "active", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-03-01T00:00:00Z", > "current_period_end": "2024-03-01T00:00:00Z", > "next_billing_date": "2024-03-01T00:00:00Z", > "cancel_at_period_end": false, > "canceled_at": null, > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] expired > > Triggered when a subscription reaches its terminal state. > > ```json title="subscription.expired" theme={null} > { > "type": "subscription.expired", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "expired", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-03-01T00:00:00Z", > "current_period_end": "2024-03-01T00:00:00Z", > "next_billing_date": "2024-03-01T00:00:00Z", > "cancel_at_period_end": true, > "canceled_at": "2024-02-15T14:30:00Z", > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] payment_failed > > Triggered when a renewal payment attempt fails. The subscription enters `past_due` status and Stash will retry. The `reason` field gives a normalized failure reason; see [Testing payment declines and reasons](/guides/stash-pay/subscriptions/integration#testing-payment-declines-and-reasons) for the full list of values and test cards. > > ```json title="subscription.payment_failed" theme={null} > { > "type": "subscription.payment_failed", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "past_due", > "reason": "insufficient_funds", > "retry_count": 0, > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-03-03T00:00:00Z", > "current_period_end": "2024-03-01T00:00:00Z", > "next_billing_date": "2024-03-02T00:00:00Z", > "cancel_at_period_end": false, > "canceled_at": null, > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` > [tab] payment_succeeded > > Triggered when a renewal payment is processed successfully. > > ```json title="subscription.payment_succeeded" theme={null} > { > "type": "subscription.payment_succeeded", > "data": { > "id": "sub_xyz789", > "external_account_id": "player_123", > "plan_id": "plan_abc123", > "status": "active", > "period": { > "value": 1, > "unit": "month" > }, > "trial_end": null, > "access_end_date": "2024-04-01T00:00:00Z", > "current_period_end": "2024-04-01T00:00:00Z", > "next_billing_date": "2024-04-01T00:00:00Z", > "cancel_at_period_end": false, > "canceled_at": null, > "created_at": "2024-01-01T00:00:00Z" > } > } > ``` ### Subscription object fields | Field | Type | Description | | - | - | - | | `id` | string | Unique identifier for the subscription. | | `external_account_id` | string | Identifier for the player/user. | | `plan_id` | string | Plan identifier. | | `status` | string | `active`, `past_due`, `canceled`, or `expired`. | | `period` | object | Billing period with `value` (integer) and `unit` (`day` / `week` / `month` / `year`). | | `trial_end` | string (nullable) | ISO 8601 timestamp when trial ends. | | `access_end_date` | string | ISO 8601 timestamp when access expires. | | `current_period_end` | string | ISO 8601 timestamp for current period end. | | `next_billing_date` | string | ISO 8601 timestamp for next billing attempt. | | `cancel_at_period_end` | boolean | Whether cancellation is scheduled. | | `canceled_at` | string (nullable) | ISO 8601 timestamp when canceled. | | `created_at` | string | ISO 8601 timestamp when created. | *** ## 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 | Event Type | Description | Trigger | | - | - | - | | `payment.succeeded` | Payment completed successfully | A payment is captured | | `payment.failed` | Payment attempt failed | A payment is declined or fails | | `payment.refunded` | Payment was refunded | A refund is processed | | `dispute.opened` | Dispute opened | A cardholder disputes a payment | | `dispute.closed` | Dispute closed | A dispute is resolved (includes `won` boolean) | ### Detailed payment payloads > [tab] payment.succeeded > > Triggered when a payment completes successfully. > > ```json title="payment.succeeded" theme={null} > { > "type": "payment.succeeded", > "data": { > "id": "pay_abc123", > "external_account_id": "player_123", > "currency": "USD", > "subscription_id": "sub_xyz789", > "succeeded_at": "2024-01-01T00:00:00Z", > "tax": "1.50", > "tax_inclusive": false, > "total": "10.99", > "metadata": { > "custom-key": "customer-value" > } > } > } > ``` > [tab] payment.failed > > Triggered when a payment attempt fails. The `reason` field gives a normalized failure reason; see [Testing payment declines and reasons](/guides/stash-pay/subscriptions/integration#testing-payment-declines-and-reasons) for the full list of values and test cards. > > ```json title="payment.failed" theme={null} > { > "type": "payment.failed", > "data": { > "id": "pay_abc456", > "external_account_id": "player_123", > "currency": "USD", > "subscription_id": "sub_xyz789", > "reason": "insufficient_funds", > "failed_at": "2024-01-01T00:00:00Z", > "tax": "1.50", > "tax_inclusive": false, > "total": "10.99", > "metadata": { > "custom-key": "customer-value" > } > } > } > ``` > [tab] payment.refunded > > Triggered when a payment is refunded. > > ```json title="payment.refunded" theme={null} > { > "type": "payment.refunded", > "data": { > "id": "pay_abc789", > "external_account_id": "player_123", > "currency": "USD", > "subscription_id": "sub_xyz789", > "refunded_at": "2024-01-01T00:00:00Z", > "total_refunded": "10.99", > "metadata": { > "custom-key": "customer-value" > } > } > } > ``` > [tab] dispute.opened > > Triggered when a dispute is opened. > > ```json title="dispute.opened" theme={null} > { > "type": "dispute.opened", > "data": { > "id": "pay_abc123", > "external_account_id": "player_123", > "currency": "USD", > "subscription_id": "sub_xyz789", > "total_disputed": "10.99", > "metadata": { > "custom-key": "custom-value" > } > } > } > ``` > [tab] dispute.closed > > Triggered when a dispute is closed. The `won` field indicates whether you won the dispute. > > ```json title="dispute.closed" theme={null} > { > "type": "dispute.closed", > "data": { > "id": "pay_abc123", > "won": true, > "external_account_id": "player_123", > "currency": "USD", > "subscription_id": "sub_xyz789", > "total_disputed": "10.99", > "metadata": { > "custom-key": "custom-value" > } > } > } > ``` ### Payment object fields | Field | Type | Description | | - | - | - | | `id` | string | Payment identifier. | | `external_account_id` | string | Identifier for the player/user. | | `currency` | string | Currency code (e.g. `"USD"`, `"EUR"`). | | `subscription_id` | string (optional) | Subscription identifier when the payment is related to a subscription. | | `succeeded_at` | string | ISO 8601 timestamp when payment succeeded (`payment.succeeded` only). | | `failed_at` | string | ISO 8601 timestamp when payment failed (`payment.failed` only). | | `reason` | string | Normalized failure reason (`payment.failed` only). | | `refunded_at` | string | ISO 8601 timestamp when payment was refunded (`payment.refunded` only). | | `tax` | string (optional) | Tax amount as a decimal string, zero when the payment has no tax (`payment.succeeded` and `payment.failed`). If Stash cannot read the payment's tax, both `tax` and `tax_inclusive` are absent. | | `tax_inclusive` | boolean (optional) | `true` when the item prices already include `tax`, as in markets where prices include VAT; `false` when `tax` is added to the item prices or is zero (`payment.succeeded` and `payment.failed`). If Stash cannot read the payment's tax, both fields are absent. | | `total` | string | Total payment amount as decimal string (`payment.succeeded` and `payment.failed`). | | `total_refunded` | string | Total refunded amount as decimal string (`payment.refunded` only). | | `total_disputed` | string | Total disputed amount as decimal string (`dispute.opened` and `dispute.closed`). | | `won` | boolean | Whether you won the dispute (`dispute.closed` only). | | `metadata` | object (optional) | Custom metadata attached to the payment. | # Webhook Listener Source: https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-listener Learn how to create a webhook listener on your backend to receive incoming Stash webhook requests, verify their authenticity using HMAC SHA-256 signatures, and respond appropriately to process events securely. Begin by creating a webhook listener on your backend. A webhook listener is a server-side program that receives incoming Stash webhook requests at a designated URL, verifies their authenticity (checking the signature), and responds appropriately (if needed) to the Stash. ## Example webhook ```json Purchase Succeeded Webhook Payload theme={null} { "type": "PURCHASE_SUCCEEDED", "purchaseSucceeded": { "timeMillis": 1753993257000, "orderId": "8ZVBabLrnCMm9zPdu9QpfCWzNaA", "currency": "usd", "userId": "user_id", "items": [ { "id": "item_id", "quantity": 1, "price": "199" } ], "tax": "0", "total": "199", "regionCode": "US", "source": "StashPay" } } ``` > [!NOTE] > > **Note:** The `source` field indicates which product generated the webhook. It will be `"StashPay"` for Stash Pay events or `"Cart"` for Stash Webshop events. See the [webhook event list](/guides/get-started/stash-webhooks/webhook-list) for all available events and their product associations. Each webhook payload includes a `type` field that indicates the event type enum (ex: `PURCHASE_SUCCEEDED`). The payload also contains a corresponding object with event-specific details. For a complete overview of all available webhook event types and their payload structures, refer to the [webhook event list](/guides/get-started/stash-webhooks/webhook-list). ## Signature verification Stash signs every webhook with HMAC-SHA256. New apps (created on or after 2026-08-15) receive only the versioned header; earlier apps receive both during the migration window: * **`x-stash-hmac-signature`** — versioned, self-describing format; use this for all new integrations * **`stash-hmac-signature`** — legacy format; still sent for apps created before 2026-08-15 ### Versioned signature (x-stash-hmac-signature) The versioned header carries the protocol version, your App ID, a request timestamp, and the base64 HMAC: ``` x-stash-hmac-signature: v1;;; ``` | Field | Description | | :- | :- | | `v1` | Protocol version | | `` | Your immutable App ID (Studio → Project Settings → General) | | `` | Request timestamp in Unix milliseconds | | `` | Standard base64-encoded HMAC-SHA256 signature | The signature covers `"." + `, where `` is the exact raw webhook body bytes. The HMAC key is your webhook secret base64-decoded: in Studio → Project Settings → Webhooks, select the webhook, click **View Secret**, and decode the value with `Buffer.from(secret, 'base64')`. Each webhook URL has its own secret. Reject requests where `` is more than 5 minutes from your server clock. For Node.js, Python, and Go implementation code, see [API Keys → HMAC Verification](/guides/get-started/stash-api-keys/overview#hmac-verification). ### Legacy signature (stash-hmac-signature) The legacy header contains only the base64 HMAC of the raw request body, without a timestamp or version: ``` stash-hmac-signature: ``` **Verification steps:** **1. Retrieve the signature** Extract the signature from the `stash-hmac-signature` header of the incoming Stash webhook request. **2. Obtain the request body** Read the raw JSON payload of the webhook request exactly as received (do not parse and re-serialize, as this may change whitespace or formatting). **3. Generate your own signature** Compute HMAC-SHA256 of the raw request body, keyed by your webhook secret base64-decoded (Studio → Project Settings → Webhooks → select the webhook → **View Secret**). Encode the result as standard base64. **4. Compare signatures** Compare your generated signature to the header value using a constant-time comparison. If they match, the webhook is authentic. > [!NOTE] > > Always use the exact raw request body as received. Never expose your webhook secret in client-side code or logs. Reject any request where signatures do not match. ## Security Best Practices 1. **Always verify signatures in production**: Even if optional, signature verification should be enabled for production endpoints 2. **Use timing-safe comparison**: Use constant-time comparison functions (e.g., `crypto.timingSafeEqual`, `hmac.compare_digest`, `hmac.Equal`) to prevent timing attacks 3. **Store secrets securely**: Never commit webhook secrets to version control; use environment variables or secret management services 4. **Rotate secrets periodically**: Periodically rotate webhook secrets and update endpoints ## Disabling Signature Verification > [!WARNING] > > If you choose not to verify signatures (not recommended for production), you can simply ignore the `Stash-Hmac-Signature` header. However, this leaves your endpoint vulnerable to fake webhook events. Always enable signature verification in production environments. # Test Card Numbers Source: https://stash-gg.mintlify.app/guides/get-started/test-cards Use test card numbers to test your Stash Pay and Stash Webshop integrations. These test cards work with Stash's test environment and Stash Howling Woods demo. > [!NOTE] > > **Important:** Test cards do not create real charges. All transactions using these test card numbers are processed in Stash's test environment and will never result in actual payment processing or charges to any real payment method. > [!WARNING] > > **Apple Pay and Google Pay do not work in the test environment without individual setup.** Both require sandbox accounts. Contact your Stash representative to provision them for your test environment if needed. ## Quick Start Test Card For quick testing, you can use this simple test card: | Form field | Value | | :- | :- | | Card number | 4400 0020 0000 0004 | | Expiration | 03/30 | | CVC | 737 | | Country | Any address | | ZIP | Any five digits | | Card Number | Card Type | Issuing Country/region | Expiry Date | CVV2 | | - | - | - | - | - | | 4111 1111 4555 1142 (Security code optional) | Classic | NL | 03/2030 | 737 | | 4111 1120 1426 7661 (eight-digit BIN) | Debit | FR | 12/2030 | 737 | | 4988 4388 4388 4305 | Classic | ES | 03/2030 | 737 | | 4166 6766 6766 6746 | Classic | NL | 03/2030 | 737 | | 4646 4646 4646 4644 | Classic | PL | 03/2030 | 737 | | 4000 6200 0000 0007 | Commercial Credit | US | 03/2030 | 737 | | 4000 0600 0000 0006 | Commercial Debit | US | 03/2030 | 737 | | 4293 1891 0000 0008 | Commercial Premium Credit | AU | 03/2030 | 737 | | 4988 0800 0000 0000 | Commercial Premium Debit | IN | 03/2030 | 737 | | 4111 1111 1111 1111 | Consumer | NL | 03/2030 | 737 | | 4444 3333 2222 1111 | Corporate | GB | 03/2030 | 737 | | 4001 5900 0000 0001 | Corporate Credit | IL | 03/2030 | 737 | | 4000 1800 0000 0002 | Corporate Debit | IN | 03/2030 | 737 | | 4000 0200 0000 0000 | Credit | US | 03/2030 | 737 | | 4000 1600 0000 0004 | Debit | IN | 03/2030 | 737 | | 4002 6900 0000 0008 | Debit | AU | 03/2030 | 737 | | 4400 0000 0000 0008 | Debit | US | 03/2030 | 737 | | 4484 6000 0000 0004 | Fleet Credit | US | 03/2030 | 737 | | 4607 0000 0000 0009 | Fleet Debit | MX | 03/2030 | 737 | | 4977 9494 9494 9497 | Gold | FR | 03/2030 | 737 | | 4000 6400 0000 0005 | Premium Credit | AZ | 03/2030 | 737 | | 4003 5500 0000 0003 | Premium Credit | TW | 03/2030 | 737 | | 4000 7600 0000 0001 | Premium Debit | MU | 03/2030 | 737 | | 4017 3400 0000 0003 | Premium Debit | RU | 03/2030 | 737 | | 4005 5190 0000 0006 | Purchasing Credit | US | 03/2030 | 737 | | 4131 8400 0000 0003 | Purchasing Debit | GT | 03/2030 | 737 | | 4035 5010 0000 0008 | Visa | FR | 03/2030 | 737 | | 4151 5000 0000 0008 | Visa Credit | US | 03/2030 | 737 | | 4199 3500 0000 0002 | Visa Proprietary | FR | 03/2030 | 737 | | Card Number | Issuing Country/region | Expiry Date | CVV2/CVC3 | | - | - | - | - | | 4001 0200 0000 0009 | BR | 03/2030 | 737 | | Card Number | Card Type | Issuing Country/region | Expiry Date | CVC3 | | - | - | - | - | - | | 2222 4000 7000 0005 | Commercial Debit | CA | 03/2030 | 737 | | 5555 3412 4444 1115 (Security code optional) | Consumer | NL | 03/2030 | 737 | | 5577 0000 5577 0004 | Consumer | PL | 03/2030 | 737 | | 5555 4444 3333 1111 | Consumer | GB | 03/2030 | 737 | | 2222 4107 4036 0010 | Corporate | NL | 03/2030 | 737 | | 5555 5555 5555 4444 | Credit | GB | 03/2030 | 737 | | 2222 4107 0000 0002 | Corporate Credit | NL | 03/2030 | 737 | | 2222 4000 1000 0008 | Credit | CA | 03/2030 | 737 | | 2223 0000 4841 0010 | Credit | NL | 03/2030 | 737 | | 5130 2900 0000 0009 | Credit | FR | 03/2030 | 737 | | 2222 4000 6000 0007 | Debit | CA | 03/2030 | 737 | | 2223 5204 4356 0010 | Debit | NL | 03/2030 | 737 | | 2222 4000 3000 0004 | Fleet Credit | CA | 03/2030 | 737 | | 5100 0600 0000 0002 | Premium Credit | US | 12/2029 | 737 | | 2222 4000 5000 0009 | Purchasing Credit | CA | 03/2030 | 737 | | 5103 2219 1119 9245 | Prepaid | BR | 03/2030 | 737 | | Card Number | Card Type | Issuing Country/region | Expiry Date | Security Code | | - | - | - | - | - | | 3714 4963 5398 431 | Credit | US | 03/2030 | 7373 | | 3700 0000 0000 002 | Credit | US | 03/2030 | 7373 | ## US Debit | Card Number | Card Type | Issuing Country | Expiry Date | CVV2/CVC3 | | - | - | - | - | - | | 4400 0020 0000 0004 | Visa Debit / Accel / STAR / Maestro USA | US | 03/30 | 737 | | 4000 0330 0330 0335 | Visa Debit / PULSE / NYCE | US | 03/30 | 737 | | 5002 5100 0000 0013 | Mastercard Debit / Accel / STAR / Maestro USA | US | 03/30 | 737 | | 5413 3300 3300 3303 | Mastercard Debit / PULSE / NYCE | US | 03/30 | 737 | | 6011 6099 0000 0003 | Discover Debit / Accel / STAR / Maestro USA | US | 03/30 | 737 | | 6445 6450 0000 0002 | Discover Debit / PULSE / NYCE | US | 03/30 | 737 | ## 3D Secure Test Cards The following cards are enrolled in 3D Secure 2. You can use them to test 3D Secure 2 authentication scenarios. | Card Type | Card Number | Expiry Date | Security Code (CVC/CVV/CID) | | - | - | - | - | | American Express | 3714 4963 5398 431 | 03/2030 | 7373 | | Bancontact / Maestro | 6703 4444 4444 4449 | 03/2030 | Not applicable | | Bancontact / Visa | 4871 0499 9999 9910 | 03/2030 | 737 | | Cartes Bancaires / Visa Debit | 4035 5014 2814 6300 | 03/2030 | 737 | | Cartes Bancaires | 4360 0000 0100 0005 | 03/2030 | 737 | | China UnionPay (Credit) | 6250 9470 0000 0014 | 03/2030 | 123 | | China UnionPay (Debit) | 6250 9460 0000 0016 | 03/2030 | 123 | | Diners | 3056 9309 0259 04 | 03/2030 | 737 | | Discover | 6011 1111 1111 1117 | 03/2030 | 737 | | JCB / Mastercard | 3566 1111 1111 1113 | 03/2030 | 737 | | Maestro | 5000 5500 0000 0029 | 03/2030 | Not applicable | | Mastercard | 5454 5454 5454 5454 | 03/2030 | 737 | | Mastercard Credit | 2222 4000 1000 0008 | 03/2030 | 737 | | Visa | 4917 6100 0000 0000 | 03/2030 | 737 | | Visa Classic | 4166 6766 6766 6746 | 03/2030 | 737 | ## Testing refusal reasons You can simulate specific decline scenarios — insufficient balance, blocked cards, fraud, expired cards, and more — by typing a special value into the **cardholder name** field at checkout. Any of the test card numbers above will work; the cardholder name decides which refusal reason is returned. ### How to use 1. Pick any test card from the tables above. 2. Enter the **expiration date** and **CVC** as listed. 3. In the **cardholder name** field, enter one of the values from the table below (case-insensitive). 4. Submit the payment. The checkout will fail with the matching refusal reason, and a `PURCHASE_FAILED` webhook will be delivered with the matching [`reasonCode`](/guides/get-started/stash-webhooks/webhook-list) in the payload. > [!NOTE] > > Cardholder-name overrides only apply in the test environment. In production, the cardholder name is treated as a normal name and has no effect on the transaction outcome. ### Refusal reasons | Cardholder name | Refusal reason | | :- | :- | | `NOT_ENOUGH_BALANCE` | Not enough balance | | `CARD_EXPIRED` | Expired card | | `INVALID_CARD_NUMBER` | Invalid card number | | `INVALID_AMOUNT` | Invalid amount | | `INVALID_PIN` | Invalid PIN | | `PIN_TRIES_EXCEEDED` | PIN tries exceeded | | `PIN_VALIDATION_NOT_POSSIBLE` | PIN validation not possible | | `CVC_DECLINED` | CVC declined | | `AVS_DECLINED` | AVS declined | | `BLOCKED_CARD` | Blocked card | | `RESTRICTED_CARD` | Restricted card | | `WITHDRAWAL_AMOUNT_EXCEEDED` | Withdrawal amount exceeded | | `WITHDRAWAL_COUNT_EXCEEDED` | Withdrawal count exceeded | | `TRANSACTION_NOT_PERMITTED` | Transaction not permitted | | `NOT_SUPPORTED` | Not supported | | `FRAUD` | Fraud | | `FRAUD_CANCELLED` | Fraud — cancelled | | `ISSUER_SUSPECTED_FRAUD` | Issuer suspected fraud | | `ISSUER_UNAVAILABLE` | Issuer unavailable | | `ACQUIRER_ERROR` | Acquirer error | | `REVOCATION_OF_AUTH` | Revocation of authorisation | | `REFERRAL` | Referral | | `SHOPPER_CANCELLED` | Shopper cancelled | | `3D_NOT_AUTHENTICATED` | 3D Secure not authenticated | | `DECLINED_NON_GENERIC` | Declined — non generic | | `NOT_SUBMITTED` | Not submitted | # Stash Docs MCP Source: https://stash-gg.mintlify.app/guides/stash-docs-mcp Connect an AI agent to the Stash documentation over MCP, or load every page as a single Markdown file. ## Connect an agent The MCP server runs at `https://docs.stash.gg/api/mcp` over HTTP and needs no credentials. Most MCP clients take this config: ```json theme={null} { "mcpServers": { "stash-docs": { "url": "https://docs.stash.gg/api/mcp" } } } ``` | Tool | Returns | | - | - | | `list_pages` | Every page, grouped by section, with title, description, and URL | | `get_page` | The Markdown of one page. Takes the page URL, such as `/guides/stash-pay/about` | | `search` | Full-text matches, grouped by section | ## Markdown files Use these when the client can't speak MCP. * Every page: [`llms-full.txt`](https://stash-gg.mintlify.site/llms-full.txt), 96 pages in one file, \~430 KB. * One page: append `.mdx` to its URL, for example `https://docs.stash.gg/guides/stash-pay/about.mdx`. # About Stash Launcher Source: https://stash-gg.mintlify.app/guides/stash-launcher/about Discover Stash Launcher - a customizable direct-to-consumer distribution platform for delivering PC games directly to players on Windows and macOS. Experience features like custom branding, incremental updates, in-game purchases, community engagement tools, and seamless management through Stash Studio or CLI automation. > [!NOTE] > > Experience the player journey by downloading our [Howling Woods demoshop launcher](https://store.howlingwoods.shop/download). Stash Launcher is a customizable direct-to-consumer (D2C) distribution platform that enables you to deliver PC games directly to players on Windows and macOS. Built for developers who want complete control over their distribution, the launcher supports incremental updates, branded experiences, and seamless integration with your existing game ecosystem. [Stash Launcher Demo](https://demo.arcade.software/Ks2ev2PszLdiIHTQckVM?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo ## Highlights * **Custom branding**: Fully customize the launcher based on your game-specific branding and design. * **Incremental updates**: Automatically patch and deliver game updates to players, with smaller downloads. * **In-game purchases**: Integrate Stash Pay directly in your game binary. The checkout experience stays consistent across your webshop and launcher. * **Community engagement**: Create features like social hubs to foster player interaction and retention. * **Seamless management and deployment**: Manage updates through Stash Studio or use the Stash CLI to automate deploys using your existing CI/CD pipeline. * **Multiple release channels**: Set up separate channels for beta testing, QA, or gated access to specific builds. Control which players can access each version and manage staged rollouts with ease. ## Use cases ### Direct game distribution Distribute your PC games directly to players without relying on third-party platforms. Maintain complete control over pricing, player relationships, and the download experience while reducing platform fees and restrictions. ### Beta testing and release management Create separate distribution channels for production, beta, and internal testing builds. Control who has access to specific versions and gather feedback from targeted user groups before wider releases. ### Community hub integration # Manage Builds, Releases, and Channels Source: https://stash-gg.mintlify.app/guides/stash-launcher/build-management/build-management Learn how to organize and distribute your game binaries using Stash Launcher. Understand how to create and update builds, manage channels for different audiences, and control player access with public or restricted configurations. > [!WARNING] > > The launcher is currently in beta. Use Stash Launcher to organize and distribute your game binaries. A release contains one or more builds, and builds are assigned to channels that control how players access them. ## Create and update builds A build connects to a specific game binary. To create a build, add a name, upload the binary, and assign channels. You can update or archive builds at any time. Use Stash Studio or the [Stash CLI](/guides/stash-launcher/build-management/stash-cli) to upload binaries and create builds. ## Create and update channels Channels organize and distribute builds to different audiences. For example, use one channel for production builds and another for testing or beta builds. # Stash CLI Source: https://stash-gg.mintlify.app/guides/stash-launcher/build-management/stash-cli Learn how to use the Stash CLI to integrate build uploads and release management into your pipelines and CI/CD workflows. Download the CLI for Windows or macOS and automate your game distribution. Use the Stash CLI to integrate build uploads and release management into your pipelines and CI/CD workflows. ## One-line installers Run the following one-line installers to set up the Stash CLI: **Windows:** ```bash Windows theme={null} powershell.exe -ExecutionPolicy Bypass -Command "IEX (Invoke-WebRequest 'https://cli.stash.gg/install.ps1')" ``` **Unix (macOS, Linux):** ```bash Unix theme={null} /bin/bash -c "$(curl -fsSL https://cli.stash.gg/install.sh)" ``` After installation, run the CLI with `stash-cli`. ## Upload builds Use the Stash CLI to upload and configure builds. Run a separate command for each target platform. ```bash Upload a build theme={null} stash-cli upload --env= \ --secret= \ --file_path= \ --executable_path="Build\my_game.exe" \ --platform= --channel= ``` ### Parameters The following table lists the parameters for the upload command. | Parameter | Description | Example | Required | | :- | :- | :- | :- | | `secret` | Your Stash Studio secret. Find it in **Settings > API Secrets** | `HFeMGWYd-Tn` | Yes | | `file_path` | Local path to the ZIP file you want to upload | `/Users/dev/builds/test.zip` | Yes | | `executable_path` | The path to the game executable within the zip folder | `/build/test-build.exe` (Windows) `/build/test-build.app/Contents/MacOS/TestBuild` (Mac) | Yes | | `platform` | The platform for the binary | `windows` or `mac` | Yes | | `env` | The environment to upload the binary | `test` or `prod` | No | | `channel` | The release channel ID. Find it in **Launcher > Channels** | `933e5aae-2e9-c8bd30` | No | ## Maintenance mode The Stash CLI can also turn launcher maintenance mode on and off, so your maintenance automation can block game downloads and launches while your servers are down. See [Launcher Maintenance Mode](/guides/stash-launcher/how-tos/launcher-maintenance-mode) for the commands and behavior. ## CI/CD The Stash CLI is great for CI/CD pipelines to automate your build uploads to the launcher. Here is a simple GitHub Actions / Jenkins sample: ```yaml GitHub Actions example theme={null} # Install Stash CLI on Unix runner - name: Install Stash CLI run: | /bin/bash -c "$(curl -fsSL https://cli.stash.gg/install.sh)" echo "Stash CLI installed" stash-cli --version # Upload macOS build to Stash Studio using Stash CLI - name: Upload macOS build to Stash Studio run: | stash-cli upload \ --env=test \ --secret="${{ secrets.STASH_API_KEY }}" \ --file_path="${{ github.workspace }}/StandaloneOSX-latest.zip" \ --executable_path="${{ env.EXECUTABLE_PATH }}" \ --platform=mac \ --channel="${{ env.LAUNCHER_CHANNEL_ID }}" echo "Build uploaded to Stash Studio" ``` # Customize Your Launcher's Appearance Source: https://stash-gg.mintlify.app/guides/stash-launcher/how-tos/customize-launcher-appearance Learn how to customize and preview your launcher's appearance in Stash Studio, including general settings like background images, platform-specific configurations for Windows and Mac installers, and the download page customization. > [!WARNING] > > The launcher is currently in beta. In Stash Studio, you can customize and preview how your launcher looks in the **Appearance** settings. This includes general settings like the background image, but also platform-specific configurations for Windows and Mac installers. You can also customize the page that players use to download your launcher. # Launcher Maintenance Mode Source: https://stash-gg.mintlify.app/guides/stash-launcher/how-tos/launcher-maintenance-mode Learn how to enable maintenance mode for your Stash Launcher from Stash Studio or the Stash CLI. Block game downloads and launches during server maintenance while keeping the launcher itself updatable. > [!WARNING] > > The launcher is currently in beta. When your game servers are down for maintenance, you can put the launcher into maintenance mode. While it is on, players see a standard maintenance screen in your launcher's branding, and game downloads, updates, and launches are blocked. You can turn it on and off from Stash Studio, or from the Stash CLI so your maintenance tooling can automate it. ## What players see Players see a full screen message in the launcher, styled with your game's logo and background: > **Down for maintenance** > > The game is temporarily unavailable while maintenance is performed. Please check back soon. This copy is standardized and translated automatically in the launcher. It cannot be customized, and there is no message field to fill in. While maintenance mode is on: * New game downloads, game updates, and game launches are blocked. * Players already in a running game are not affected. Maintenance mode only blocks new launches. * Launcher self updates keep working, so a launcher fix can still ship during your maintenance window. * The launcher download page keeps working, so new players can still install the launcher itself. Maintenance mode applies to your whole game: every release channel, every platform, every build. It cannot be enabled for a single channel. > [!NOTE] > > Launcher maintenance mode is separate from web shop maintenance mode. Enabling one does not affect the other. ## Enable maintenance mode in Stash Studio 1. In Stash Studio, go to **Launcher > Maintenance**. 2. Turn on the **Maintenance Mode** switch. 3. Confirm in the dialog. The page shows a preview of the exact message players will see. Turning it off works the same way: turn the switch off and confirm. You need the Admin or Developer role for the game to change maintenance mode. The switch always shows the current state, including changes made through the CLI. ## Enable maintenance mode with the Stash CLI Use the [Stash CLI](/guides/stash-launcher/build-management/stash-cli) to control maintenance mode from scripts and pipelines, for example as part of the same automation that takes your game servers down and brings them back up. The CLI reads your API secret from the `STASH_API_SECRET` environment variable. It is never passed as a command line flag, so it cannot leak through process listings or CI logs. Find your secret in **Settings > API Secrets** in Stash Studio. ```bash Enable maintenance mode theme={null} export STASH_API_SECRET= stash-cli maintenance --env=prod --on ``` ```bash Disable maintenance mode theme={null} stash-cli maintenance --env=prod --off ``` ```bash Check the current state theme={null} stash-cli maintenance --env=prod ``` ### Parameters | Parameter | Description | Required | | :- | :- | :- | | `env` | The environment to target: `test` or `prod` | Yes | | `on` | Enable maintenance mode | No | | `off` | Disable maintenance mode | No | Run the command with neither `--on` nor `--off` to print the current state. Passing both is an error. The command is idempotent: enabling maintenance mode when it is already on succeeds without changing anything, so pipeline retries are safe. The command exits with code `1` for usage or connection problems and `2` when the request is rejected, so your scripts can fail loudly. ## How quickly it takes effect * Launchers that are open pick up the change within about five minutes, or as soon as the player brings the launcher window back into focus. * Any attempt to launch the game checks the live state first, so a player cannot start the game in the window between you enabling maintenance mode and their launcher showing the screen. * Players who go offline keep the last state their launcher saw, so an offline launcher still shows the maintenance screen. * Turning maintenance mode off clears the screen the same way. Players do not need to restart the launcher. # Integrating Stash Launcher Source: https://stash-gg.mintlify.app/guides/stash-launcher/integration Learn how to set up Stash Launcher with no coding required. Customize your launcher's appearance, configure release channels, and upload your first build through an intuitive interface in Stash Studio. Base Stash Launcher setup requires no coding. Simply customize your launcher's appearance, configure your release channels, and upload your first build—all through an intuitive interface. ## 1. Configure Appearance [Configure Launcher Appearance](https://demo.arcade.software/WPaJWpjWmIOks45QXvQP?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo Open Stash Studio to begin customizing your launcher's appearance and branding. **1. Select your game project** Select your game project in Stash Studio. **2. Navigate to Launcher** Click on "Launcher" in the main navigation. **3. Open Appearance settings** Go to the "Appearance" section in the sub-navigation. Here, you can set your launcher's background image, logo, and other visual elements. You can also configure how your installers and download page will look for both Windows and macOS—all from this single interface. > [!NOTE] > > To see your download page live, navigate to **General Settings** in Stash Studio and find your project URL. Use `/download` to access your download hub. ## 2. Create Your Channels [Create Launcher Channels](https://demo.arcade.software/KzCeas1wkEtcOO63nfmo?embed\&embed_mobile=tab\&embed_desktop=inline\&show_copy_link=true) Interactive Demo In the "Channels" section of Stash Studio, you'll find your default Public channel. This channel can have a build attached, or not. If no build is attached to the Public channel, players will need an access code to download your game. You can use the default Public channel or create new channels as needed. When creating a new channel, you can choose whether it should be code-protected or open to all players. # Launcher Concepts Source: https://stash-gg.mintlify.app/guides/stash-launcher/launcher-concepts Learn the core concepts behind Stash Launcher including releases and build management, launcher deployment methods, incremental updates using the wharf protocol, silent self-updating capabilities, player authentication, and in-game purchases with Stash Pay. Before you upload your game build and configure your launcher, let's get familiar with the core concepts behind Stash Launcher. ## Releases and build management Releases are collections of game builds for Windows and macOS, organized into channels. Each channel can include both Windows and Mac builds, letting you manage who gets access to which version—such as "Beta" for testing or "Stable" for production. Upload builds via Stash Studio or the [CLI](/guides/stash-launcher/build-management/stash-cli). Every project has a public channel open to all players. For restricted access, create private channels that require access codes, which you can manage in Stash Studio. Codes control who can join a channel and how many times they can be used. ```mermaid theme={null} flowchart LR Game[Game] --> Public[Public Channel] Game --> Beta[Beta Channel - code protected] Game --> Internal[Internal Channel - code protected] Public --> Build1[Build 1] Beta --> Build2[Build 2] Internal --> Build3[Build 3] ``` ## Launcher deployment ### Installers Your launcher is deployed to players using a standalone **NSIS installer (Windows)** or **universal disk image (macOS)**. All launcher related binaries are **automatically code signed and notarized by Stash** to ensure players receive a fully compliant binary with no security warning. Both the Windows installer and Mac disk image are customizable via Stash Studio. You can use customized icons, graphical assets, EULAs, and other extensions like deep link registration, registry entries, or a custom install process. ![Stash Launcher Installer](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/launcher/installer.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=1be6fa490ced28eea5bacf37ee422153) Configuring your Launcher visual appearance and install experience inside Stash Studio. ### Download Hub In addition to the installer, Stash automatically creates a fully customizable [download hub](https://store.howlingwoods.shop/download) with always up-to-date links for every supported platform. You can integrate this download page into your Stash webshop or host it as a completely standalone page. This download page then acts as a default method of delivery.