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.
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 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:
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.
PURCHASE_SUCCEEDED
PURCHASE_FAILED
PURCHASE_REFUNDED
OPEN_PAYMENT
FREE_ITEM_REDEEMED
LOGGED_IN
MUTATE_CART
VIEW_ITEM
VIEW_CATALOG_SECTION
VIEW_CHECKOUT_PAGE
VIEW_PRODUCT_DETAIL_PAGE
CART_BUTTON_CLICK
BUY_NOW_ITEM_CLICK
PAY_BUTTON_CLICK
LOYALTY_MILESTONE_CLAIMED
LOGIN_FAILED
OFFER_SLOT_MISMATCH
CATALOG_REJECTED
CATALOG_ITEMS_DROPPED
CATALOG_DATA_CONFLICT
CATALOG_TEXT_FALLBACK
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, 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.
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:
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.
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.
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 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 for the refusals you can trigger in the test environment.
Purchase Failed Event
{ "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" }}
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.
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).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.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). 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.
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.
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.
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.
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 for the full contract and the loyalty guide for configuration.
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 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.
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.
Triggered when Stash requests your catalog from your 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.
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.
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, 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).
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 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.
"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 whose section breaks the streak rules, 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.
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.
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.
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.
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.
Triggered when catalog texts on offers your webshop showed fell back to their defaultText because of their localizationKey (see 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).
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.
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.
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.
Subscription Events (v2)
Subscription webhooks use a v2 payload format with lowercase dot-notation
event types, unlike the v1 format used by purchase and webshop events above.
Subscription events notify your system of subscription lifecycle changes. See the Subscriptions guide for full integration details.
Available subscription events
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
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 for the full list of values and test cards.
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.
Triggered when a payment attempt fails. The reason field gives a normalized failure reason; see Testing payment declines and reasons for the full list of values and test cards.
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Stash Documentation","description":"Integrate Stash Pay, Stash Webshop, and Stash Launcher. Guides and partner resources for the Stash direct-to-consumer platform.","colors":{"primary":"#1e1e1e","light":"#f7f9f4","dark":"#1e1e1e"},"logo":{"light":"https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/logo/light.svg?fit=max\u0026auto=format\u0026n=I_GbdmJR4L85eJZA\u0026q=85\u0026s=c58d1a385fd52c013aef762b9f06da39","dark":"https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/logo/dark.svg?fit=max\u0026auto=format\u0026n=I_GbdmJR4L85eJZA\u0026q=85\u0026s=012af7b9b89de597a472667a86a65eef","href":"/guides"},"favicon":"https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/favicon.png?fit=max\u0026auto=format\u0026n=I_GbdmJR4L85eJZA\u0026q=85\u0026s=6f4e9b8b8e5068337b7712264275bd28","api":{"playground":{"display":"interactive"}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#f7f9f4","dark":"#1e1e1e"}},"navbar":{"primary":{"type":"button","label":"Studio","href":"https://studio.stash.gg"}},"seo":{"metatags":{"og:image":"https://docs.stash.gg/og-image.png"}},"fonts":{"heading":{"family":"Factor A","weight":500,"source":"https://storage.googleapis.com/stash_assets/fonts/FactorA-Medium.woff2","format":"woff2"},"body":{"family":"Factor A","weight":300,"source":"https://storage.googleapis.com/stash_assets/fonts/FactorA-Regular.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"stash-gg","hasAudioNarration":false,"actualSubdomain":"stash-gg","customDomains":[],"gitSource":{"type":"github","owner":"stashgg","repo":"stash-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6afccf82d3f0f72f2b169b4c"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0e1f15d09a38910d349f35:success","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Integration Guides","count":66},{"language":"default","tag":"API Reference","count":41},{"language":"default","tag":"Changelog","count":38},{"language":"default","tag":"Ingress","count":34},{"language":"default","tag":"Stash Webshop","count":28},{"language":"default","tag":"Features \u0026 Customizations","count":19},{"language":"default","tag":"Stash Pay","count":18},{"language":"default","tag":"Getting Started","count":11},{"language":"default","tag":"Catalog Management","count":11},{"language":"default","tag":"Partner With Us","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--sidebar-width: 286px;--stash-menu-surface: #f4f6f1;--stash-menu-glass: rgba(244, 246, 241, 0.8);--stash-menu-border: rgba(153, 153, 153, 0.2)}html.dark{--stash-menu-surface: #1c1c1c;--stash-menu-glass: rgba(28, 28, 28, 0.8);--stash-menu-border: rgba(153, 153, 153, 0.2)}#navbar>div:not(#navbar-transition),div:has(>[data-layout-item=\"sidebar\"]){max-width:none}#navbar-transition,[data-layout-item=\"sidebar\"]{background-color:var(--stash-menu-glass);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border-color:var(--stash-menu-border)}[data-layout-item=\"sidebar\"]{border-inline-end:1px solid var(--stash-menu-border)}#sidebar-content div:has(>#navigation-items)>div:first-child{background-image:linear-gradient(to bottom, var(--stash-menu-surface), transparent)}#mobile-nav,[data-layout-item=\"mobile-nav\"],.nav-dropdown-content,[data-component-part=\"theme-preference-menu-content\"]{background-color:var(--stash-menu-surface);border-color:var(--stash-menu-border)}@media (min-width: 1024px){div:has(>[data-layout-item=\"sidebar\"]){padding-inline:0}#sidebar-content{padding-inline-start:1rem}}@font-face{font-family:\"Factor A\";src:url(\"https://storage.googleapis.com/stash_assets/fonts/FactorA-Bold.woff2\") format(\"woff2\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"Factor A\";src:url(\"https://storage.googleapis.com/stash_assets/fonts/FactorA-Extrabold35.woff2\") format(\"woff2\");font-weight:900;font-style:normal;font-display:swap}:root{--stash-page-background: #f7f9f4;--stash-header-glass: rgba(244, 246, 241, 0.8);--stash-header-border: rgba(128, 128, 128, 0.2);--stash-muted: #737373;--stash-foreground: #1e1e1e;--stash-control: rgba(235, 235, 235, 0.5);--stash-control-active: #e6e6e6;--stash-header-height: 104px}html.dark{--stash-page-background: #1e1e1e;--stash-header-glass: rgba(28, 28, 28, 0.8);--stash-muted: #999;--stash-foreground: #f7f9f4;--stash-control: rgba(33, 33, 33, 0.5);--stash-control-active: #262626}body{font-feature-settings:\"kern\" 1, \"liga\" 1, \"calt\" 1;-webkit-font-smoothing:antialiased}#page-title,#page-header h1{font-size:28px;line-height:42px;font-weight:500!important;letter-spacing:normal}#content h2,#content h3,#content h4,#content h5,#content h6{font-weight:400!important;letter-spacing:normal}#content strong{font-weight:700!important}#navbar-transition{background-color:var(--stash-header-glass);border-color:var(--stash-header-border)}#navbar .nav-logo{width:96px;height:24px}#navbar .nav-tabs-item{font-weight:500!important;text-shadow:none;color:var(--stash-muted)}#navbar .nav-tabs-item[data-active=\"true\"],#navbar .nav-tabs-item:hover{color:var(--stash-foreground)}#topbar-cta-button a{height:36px;padding:6px 12px;border:1px solid var(--stash-header-border);border-radius:9999px;color:var(--stash-muted);font-weight:300!important}#topbar-cta-button a:hover{background:var(--stash-control-active);color:var(--stash-foreground)}#topbar-cta-button a>span{display:none}#topbar-cta-button a>div{gap:6px}#topbar-cta-button a>div>span{color:inherit}#topbar-cta-button a>div>svg{display:none}#topbar-cta-button a>div::before{content:\"\";width:14px;height:14px;background:currentColor;mask:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20105%20104%22%3E%3Cpath%20d%3D%22M3.53358%20104L3.73942%2075.4788H64.8398C68.2705%2075.4788%2070.6719%2074.8897%2072.1128%2073.7461C73.5537%2072.6025%2074.2742%2070.9044%2074.2742%2068.6864C74.2742%2064.2159%2071.5296%2061.7901%2066.0406%2061.3742L35.5761%2059.5375C11.8701%2058.1859%200%2048.3439%200%2029.9767C0%2020.5851%203.25914%2013.2383%209.81174%207.93602C16.3643%202.63379%2026.3819%200%2039.8988%200H97.8086L98.0145%2028.5212H39.9331C36.571%2028.5212%2034.2039%2029.0756%2032.7973%2030.15C31.3907%2031.2243%2030.6703%2032.8184%2030.6703%2034.9324C30.6703%2039.1256%2033.4148%2041.4822%2038.9039%2042.0366L70.3632%2043.8734C93.4174%2045.017%20104.944%2054.6858%20104.944%2072.8104C104.944%2082.4099%20101.651%2090.034%2095.0984%2095.6135C88.5458%20101.193%2078.5968%20104%2065.2515%20104H3.53358Z%22%2F%3E%3C%2Fsvg%3E\") center / contain no-repeat;-webkit-mask:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20105%20104%22%3E%3Cpath%20d%3D%22M3.53358%20104L3.73942%2075.4788H64.8398C68.2705%2075.4788%2070.6719%2074.8897%2072.1128%2073.7461C73.5537%2072.6025%2074.2742%2070.9044%2074.2742%2068.6864C74.2742%2064.2159%2071.5296%2061.7901%2066.0406%2061.3742L35.5761%2059.5375C11.8701%2058.1859%200%2048.3439%200%2029.9767C0%2020.5851%203.25914%2013.2383%209.81174%207.93602C16.3643%202.63379%2026.3819%200%2039.8988%200H97.8086L98.0145%2028.5212H39.9331C36.571%2028.5212%2034.2039%2029.0756%2032.7973%2030.15C31.3907%2031.2243%2030.6703%2032.8184%2030.6703%2034.9324C30.6703%2039.1256%2033.4148%2041.4822%2038.9039%2042.0366L70.3632%2043.8734C93.4174%2045.017%20104.944%2054.6858%20104.944%2072.8104C104.944%2082.4099%20101.651%2090.034%2095.0984%2095.6135C88.5458%20101.193%2078.5968%20104%2065.2515%20104H3.53358Z%22%2F%3E%3C%2Fsvg%3E\") center / contain no-repeat}.stash-theme-controls{display:inline-flex;padding:4px;border:1px solid var(--stash-header-border);border-radius:9999px}.stash-theme-controls button{display:grid;place-items:center;width:26px;height:26px;padding:6px;border-radius:9999px;color:var(--stash-muted);cursor:pointer}.stash-theme-controls button[aria-pressed=\"true\"]{background:var(--stash-control-active);color:var(--stash-foreground)}.stash-theme-controls svg{width:14px;height:14px}.stash-sidebar-toggle{display:grid;place-items:center;width:32px;height:32px;margin-inline-end:-6px;padding:6px;border-radius:9999px;border:1px solid var(--stash-header-border);background:var(--stash-control);color:var(--stash-muted);cursor:pointer}.stash-sidebar-toggle svg{width:18px;height:18px}.stash-theme-controls button:hover,.stash-sidebar-toggle:hover{color:var(--stash-foreground)}.stash-theme-controls button:focus-visible,.stash-sidebar-toggle:focus-visible{outline:2px solid var(--stash-foreground);outline-offset:2px}html[data-stash-setting-theme] [data-component-part=\"theme-preference-menu-content\"]{visibility:hidden}.stash-background{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;user-select:none}#content .stash-background img{position:absolute;max-width:none;margin:0!important;object-fit:contain;filter:brightness(0.8);border-radius:0}@media (max-width: 767px){.stash-background{display:none}}@media (min-width: 1024px){#navbar>div:not(#navbar-transition)>div>div:has(>div>div>div>a>.nav-logo)>div:first-child{padding-inline:24px;margin-inline:0;border-bottom:1px solid var(--stash-header-border)}#navbar div:has(>div>a>.nav-logo){border-bottom:0}#navbar div:has(>#search-bar-entry){position:absolute;left:50%;transform:translateX(-50%);width:384px;flex:none}#search-bar-entry{height:36px;padding:6px 6px 6px 10px;border:1px solid var(--stash-header-border);color:var(--stash-muted);box-shadow:none;background:var(--stash-control);filter:none;font-size:14px;line-height:20px}#search-bar-entry [data-search-item=\"trigger-icon\"]{color:inherit;stroke-width:2}#search-bar-entry [data-search-item=\"trigger-hint\"]{display:inline-flex;gap:2px;font-size:14px;font-weight:300!important}#search-bar-entry kbd{border:1px solid var(--stash-header-border);border-radius:6px;padding:0 6px;background:var(--stash-page-background);font:inherit}#navbar div:has(>nav[aria-label=\"Main\"]){gap:8px}#navbar div:has(>nav[aria-label=\"Main\"])>*{margin-inline:0}#navbar div:has(>nav[aria-label=\"Main\"])>.stash-sidebar-toggle{margin-inline-end:-6px}#navbar div:has(>.nav-tabs){height:40px;padding-inline:24px}#navbar .nav-tabs{width:100%;align-items:flex-end;border-bottom:1px solid transparent}#navbar .nav-tabs-item{height:28px;padding-bottom:8px;line-height:20px}#navbar .nav-tabs-item>div{height:2px}#navbar div:has(>#search-bar-entry){left:calc(50% - 192px);transform:none}[data-layout-item=\"sidebar\"]{top:var(--stash-header-height);height:calc(100vh - var(--stash-header-height))}html[data-stash-sidebar-collapsed]{--sidebar-width: 0px}}@media (max-width: 1023px){#navbar>div:not(#navbar-transition)>div>div:has(>div>div>div>a>.nav-logo)>div:first-child{height:56px;border-bottom:1px solid var(--stash-header-border)}#navbar div:has(>div>a>.nav-logo){border-bottom:0}#navbar button:has(>div>span.sr-only){position:absolute;top:10.5px;right:10px;width:34px;height:34px;padding:8px}#navbar button:has(>div>span.sr-only)>div:last-child{display:none}#navbar button:has(>div>span.sr-only)>div:first-child>svg{width:18px;height:18px}#navbar button:has(>div>span.sr-only)::after{content:\"\";position:absolute;inset:8px;background:var(--stash-muted);mask:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%203v18%22%2F%3E%3C%2Fsvg%3E\") center / contain no-repeat;-webkit-mask:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%203v18%22%2F%3E%3C%2Fsvg%3E\") center / contain no-repeat}#navbar button:has(>div>span.sr-only)>div:first-child>svg{visibility:hidden}#search-bar-entry-mobile{position:absolute;right:28px;top:10.5px;width:34px;height:34px}#navbar button[aria-label=\"More actions\"]{display:none}#content-container>div:has(>#content-area){padding-top:96px}#mobile-nav .stash-mobile-studio{flex:none;margin:12px 16px 16px 64px;padding:8px 12px;border:1px solid var(--stash-header-border);border-radius:9999px;text-align:center;font-size:14px;color:var(--stash-muted)}}#assistant-entry,#assistant-entry-mobile{display:none!important}:root{--stash-content-border: rgba(153, 153, 153, 0.2);--stash-text: #262626;--stash-heading: #0a0a0a;--stash-card: #fff;--stash-active-nav: rgba(10, 10, 10, 0.1);--stash-ease: cubic-bezier(0.4, 0, 0.2, 1);--content-width: 900px}html.dark{--stash-text: #e5e5e5;--stash-heading: #fafafa;--stash-card: #262626;--stash-active-nav: rgba(250, 250, 250, 0.1)}#header>div:first-child,#header>div:first-child>div{margin-top:0}#header nav[aria-label=\"Breadcrumb\"]{display:none}#page-title{color:var(--stash-heading)}#header>.prose{margin-top:16px;color:var(--stash-muted);line-height:28px}#header>.prose>p{margin:0;color:inherit}#header::after{content:\"\";display:block;margin-top:24px;border-bottom:1px solid var(--stash-content-border)}#content{margin-top:24px;margin-bottom:16px;color:var(--stash-text)}#content h2,#content h3,#content h4{color:var(--stash-heading)}#content h2{font-size:24px;line-height:32px;margin-top:48px;margin-bottom:24px}#content h3{font-size:20px;line-height:28px}#content>:first-child:not(.stash-background){margin-top:0}#content .card{border-radius:12px;background:var(--stash-card);border-color:var(--stash-content-border);box-shadow:none}#content [data-component-part=\"card-content-container\"]{padding:16px}#content [data-component-part=\"card-title\"]{font-size:14px;line-height:20px;font-weight:500!important;color:var(--stash-heading);margin-top:0;margin-bottom:0}#content [data-component-part=\"card-content\"]{font-size:14px;line-height:21px;margin-top:4px;color:var(--stash-muted)}#content [data-component-part=\"card-icon\"]:has(>img){width:78px;height:78px;padding:7px;margin-bottom:8px;border:1px solid var(--stash-content-border);border-radius:8px;background:#f5f5f5;box-shadow:0 2px 3px rgb(0 0 0 / 0.1)}html.dark #content [data-component-part=\"card-icon\"]:has(>img){background:#303030}#content [data-component-part=\"card-icon\"]>img{width:64px;height:64px}#content .card{margin-block:0}#content div:has(>.card){gap:12px}#content .card:hover{background:var(--stash-menu-surface);border-color:var(--stash-content-border)}#content .callout{position:relative;border-radius:12px;border-color:var(--stash-content-border);background:var(--stash-card);box-shadow:0 2px 4px rgb(0 0 0 / 0.1)}#content [data-component-part=\"callout-content\"]{color:var(--stash-muted)}#content .callout::before{content:\"\";position:absolute;inset:10px auto 10px 5px;width:2px;background:currentColor;border-radius:2px}.feedback-toolbar{margin-top:16px;margin-bottom:16px;padding:12px 0;border-block:1px solid var(--stash-content-border);color:var(--stash-heading)}#feedback-thumbs-up,#feedback-thumbs-down{border:1px solid var(--stash-content-border);border-radius:9999px;padding:8px 12px;gap:8px;color:var(--stash-muted);background:transparent}#feedback-thumbs-up>small,#feedback-thumbs-down>small{line-height:20px}.feedback-toolbar>div:first-child{justify-content:flex-start;gap:8px}.feedback-toolbar>div:first-child>p{font-weight:500;color:var(--stash-heading);margin-right:8px}.feedback-toolbar>div:first-child>div{flex-grow:0;justify-content:flex-start;gap:8px}.feedback-toolbar>div:first-child>div>div{gap:8px}.stash-verification-badge{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin-inline-start:auto;padding:4px 10px;border:1px solid var(--stash-content-border);border-radius:9999px;color:var(--stash-muted);background:var(--stash-menu-glass);font-size:12px;font-weight:500;line-height:18px;white-space:nowrap}.stash-verification-badge svg{width:16px;height:16px;flex-shrink:0}.stash-verification-badge[data-status=\"verified\"]{color:var(--stash-heading);background:transparent}.stash-verification-badge[data-status=\"verified\"] svg{color:#4d7c0f;fill:#b6ff00}.stash-verification-badge[data-status=\"outdated\"] svg{color:#a16207}html.dark .stash-verification-badge[data-status=\"outdated\"] svg{color:#facc15}.stash-verification-row{display:flex;align-items:center;justify-content:flex-end;min-height:64px;margin-block:16px;padding-block:12px;border-block:1px solid var(--stash-content-border)}#pagination{gap:16px;margin-top:16px;padding:0}#pagination>a{flex:1 1 0%;min-height:70px;padding:16px;gap:8px;border:1px solid var(--stash-content-border);border-radius:8px;background:var(--stash-menu-glass);backdrop-filter:blur(4px);color:var(--stash-heading);font-weight:500}#pagination>a[rel=\"next\"]{justify-content:flex-end}#pagination>a:hover{background:var(--stash-control-active)}#footer{margin-top:24px;border-color:var(--stash-content-border);padding-top:24px}[data-assistant-bar]{display:block;margin-top:24px}#sidebar-content{padding-inline:15px 0}#sidebar-content>[data-component-part=\"scroll-area-viewport\"]{padding-right:16px}#sidebar-content div:has(>#navigation-items)>div:first-child{height:40px}#sidebar-content .sidebar-group-header,#mobile-nav .sidebar-group-header{padding-left:8px;font-weight:300;color:var(--stash-heading)}#sidebar-content .sidebar-title,#mobile-nav .sidebar-title{font-weight:300!important}#navigation-items>div+div{margin-top:24px}.sidebar-group-header{margin-bottom:6px;line-height:20px}.sidebar-group>li,.sidebar-group ul>li{margin-top:0;margin-bottom:0}.sidebar-group>li>a,.sidebar-group>li>button{border-radius:8px;gap:8px;color:var(--stash-muted);text-shadow:none;padding-block:8px;line-height:20px;font-size:14px}#navigation-items>div>.sidebar-group>li>a,#navigation-items>div>.sidebar-group>li>button{padding-left:8px!important;padding-right:8px}.sidebar-group>li[data-active]>a{background:var(--stash-active-nav);color:var(--stash-heading)}.sidebar-group>li>a:hover,.sidebar-group>li>button:hover{color:var(--stash-heading);background:var(--stash-control-active)}.sidebar-group>li>button[aria-expanded]>div:last-child{margin-left:auto}.sidebar-group>li>button[aria-expanded]>div:last-child>svg{width:14px;height:14px}.sidebar-group a>div:has(>.method-nav-pill){order:2}.method-nav-pill{width:auto}.method-nav-pill>span{font-family:ui-monospace, monospace;font-size:12px;font-weight:400;padding:0;background:transparent!important}.sidebar-group a>div:has(>.method-nav-pill){align-self:center}.method-nav-pill[data-stash-method=\"get\"]>span{color:#00bc3a}.method-nav-pill[data-stash-method=\"post\"]>span{color:#2b7fff}.method-nav-pill[data-stash-method=\"put\"]>span{color:#d08700}.stash-api-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:32px;border:1px solid var(--stash-content-border);border-radius:8px}.stash-api-switch>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;border:1px solid transparent;border-radius:6px;color:var(--stash-muted);font-size:14px;font-weight:500;line-height:20px}.stash-api-switch svg{width:16px;height:16px}.stash-api-switch>a:hover{color:var(--stash-heading);background:var(--stash-control-active)}.stash-api-switch>a[aria-current=\"true\"]{color:var(--stash-heading);background:rgb(255 255 255 / 0.85);border-color:rgb(255 255 255 / 0.6);box-shadow:0 1px 2px rgb(0 0 0 / 0.05);backdrop-filter:blur(4px)}html.dark .stash-api-switch>a[aria-current=\"true\"]{background:rgb(255 255 255 / 0.15);border-color:rgb(255 255 255 / 0.2)}.stash-api-switch>a:focus-visible{outline:2px solid var(--stash-heading);outline-offset:2px}.nav-dropdown-trigger[data-stash-api-switch]{display:none}.stash-api-overview>.sidebar-group-header{display:none}#navigation-items>.stash-api-overview{margin-top:0}html[data-current-path^=\"/api/\"] #sidebar-content div:has(>#navigation-items)>div:first-child{height:16px}@media (min-width: 1024px){#content-container>div:has(>#content-area){gap:24px;padding:32px 0 0 24px;max-width:1200px;margin-inline:auto}#content-area{padding:0;margin:0;min-width:0;width:0;max-width:none;flex:1 1 0%}#content-side-layout{width:286px;flex-shrink:0;top:152px;height:calc(100dvh - 152px)}#table-of-contents-layout{padding-left:0;padding-right:16px;width:286px}#content-container>div:has(>#content-side-layout[data-api-example]){display:grid;grid-template-columns:minmax(0, 1fr) 400px;row-gap:0;padding-right:24px;max-width:1200px}#content-side-layout[data-api-example]{grid-column:2;grid-row:2;width:400px;top:136px;height:calc(100dvh - 160px)}#content-side-layout[data-api-example]>div{width:400px}#content-side-layout[data-api-example]+#content-area{display:contents}#content-side-layout[data-api-example]+#content-area>*{grid-column:1 / -1}#content-side-layout[data-api-example]+#content-area>#header{margin-bottom:16px}#content-side-layout[data-api-example]+#content-area>#api-playground-2-operation-page{grid-column:1;grid-row:2}#content-side-layout[data-api-example]+#content-area>[data-assistant-bar]{grid-column:1}#content-side-layout[data-api-example]+#content-area>#header::after{display:none}@media (max-width: 1279px){#content-container>div:has(>#content-area){padding-right:24px}#content-container>div:has(>#content-side-layout[data-api-example]){display:flex}#content-side-layout[data-api-example]+#content-area{display:block}}[data-layout-item=\"sidebar\"]{overflow:clip}#sidebar-content{width:285px}html[data-stash-sidebar-collapsed] [data-layout-item=\"sidebar\"]{border-right-width:0}html[data-stash-sidebar-collapsed] #sidebar-content{transform:translateX(-100%);visibility:hidden;pointer-events:none}}#api-playground-2-operation-page>div:first-child{margin-top:0}#content-area:has(>#api-playground-2-operation-page)>#header::after{display:none}.api-section-heading-title{color:var(--stash-heading);font-weight:400!important;font-size:20px;line-height:28px}html:is([data-current-path=\"/api/ingress\"],[data-current-path=\"/api/egress\"]) #content-side-layout{display:none}html:is([data-current-path=\"/api/ingress\"],[data-current-path=\"/api/egress\"]) #content-container>div:has(>#content-area){max-width:1200px}html:is([data-current-path=\"/api/ingress\"],[data-current-path=\"/api/egress\"]) #header::after{margin-top:32px}@media (min-width: 1024px){html:is([data-current-path=\"/api/ingress\"],[data-current-path=\"/api/egress\"]) #content-container>div:has(>#content-area){padding-right:24px}}@media (max-width: 1023px){#content-container>div:has(>#content-area){padding-top:88px}#content-area{padding-inline:0}#search-bar-entry-mobile{right:48px}#header>#page-context-menu{margin-top:16px}#header::after{margin-top:24px}#pagination{gap:12px}#pagination>a{padding:12px}.stash-api-switch{margin:8px 0 24px}}#stash-mobile-contents{display:none}@media (max-width: 1023px){#stash-mobile-contents{display:block;position:fixed;inset:56px 0 auto;z-index:35;color:var(--stash-muted);background:var(--stash-header-glass);border-bottom:1px solid var(--stash-content-border);backdrop-filter:blur(4px);font-size:14px;line-height:20px}#stash-mobile-contents>summary{display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;cursor:pointer;list-style:none}#stash-mobile-contents>summary::-webkit-details-marker{display:none}#stash-mobile-contents>summary>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#stash-mobile-contents svg{width:20px;height:20px;flex:none}#stash-mobile-contents svg:first-child{opacity:0.3}#stash-mobile-contents svg:last-child{width:16px;height:16px;margin-left:auto}#stash-mobile-contents[open] svg:last-child{transform:rotate(180deg)}#stash-mobile-contents nav{max-height:min(60dvh, 320px);overflow:auto;padding:8px 16px 12px;border-top:1px solid var(--stash-content-border);background:var(--stash-menu-surface)}#stash-mobile-contents nav a{display:block;padding:6px 12px;border-radius:6px}#stash-mobile-contents nav a:hover{background:var(--stash-control-active);color:var(--stash-heading)}#stash-mobile-contents :focus-visible{outline:2px solid var(--stash-heading);outline-offset:-2px}html[data-stash-mobile-contents] #content-container>div:has(>#content-area){padding-top:128px}#content :is(h2,h3,h4)[id]{scroll-margin-top:112px}}@media (max-width: 767px){#content-container>div:has(>#content-area){padding-top:80px}html[data-stash-mobile-contents] #content-container>div:has(>#content-area){padding-top:120px}}html:is([data-current-path=\"/changelog\"],[data-current-path^=\"/changelog/\"]){--sidebar-width: 0px}html:is([data-current-path=\"/changelog\"],[data-current-path^=\"/changelog/\"]) :is(#sidebar,#content-side-layout,.stash-sidebar-toggle){display:none}html:is([data-current-path=\"/changelog\"],[data-current-path^=\"/changelog/\"]) #content-container>div:has(>#content-area){max-width:768px;padding-inline:24px}html[data-current-path=\"/changelog\"] [data-component-part=\"update-tag-list\"]{gap:6px;padding-inline:0}html[data-current-path=\"/changelog\"] [data-component-part=\"update-tag\"],.stash-changelog-tag{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid var(--stash-content-border);border-radius:6px;background:var(--stash-control);color:var(--stash-foreground);font-size:12px;font-weight:500;line-height:16px;white-space:nowrap}.stash-changelog-tag{margin:0 6px 6px 0}html[data-current-path=\"/changelog\"] #content h2 a{color:inherit;border-bottom:0;text-decoration:none}html[data-current-path=\"/changelog\"] #content h2 a:hover{text-decoration:underline}@property --sidebar-width{syntax:\"\u003clength>\";inherits:true;initial-value:286px}@media (prefers-reduced-motion: no-preference){:root{transition:--sidebar-width 200ms var(--stash-ease)}#sidebar-content{transition:transform 200ms var(--stash-ease), visibility 200ms}#navbar .nav-tabs-item,#topbar-cta-button a,.stash-theme-controls button,.stash-sidebar-toggle,.sidebar-group>li>a,.sidebar-group>li>button,.stash-api-switch>a,#pagination>a,#content .card,.feedback-toolbar button{transition:color 150ms var(--stash-ease), background-color 150ms var(--stash-ease), border-color 150ms var(--stash-ease), box-shadow 150ms var(--stash-ease)}.sidebar-group button[aria-expanded] svg{transition:transform 200ms var(--stash-ease)}#stash-mobile-contents svg{transition:transform 200ms var(--stash-ease)}#navbar-transition,#content-side-layout{transition:top 200ms var(--stash-ease), height 150ms var(--stash-ease)}}@media (prefers-reduced-motion: reduce){:root,#sidebar-content,.sidebar-group *,.stash-api-switch *,#mobile-nav,#content .card,#navbar *,#pagination *,.feedback-toolbar *,[data-assistant-bar] *,#stash-mobile-contents *{transition-duration:0s!important;animation-duration:0s!important}}"}]}
{"page":{"pagePath":"guides/get-started/stash-webhooks/webhook-list","slug":"/guides/get-started/stash-webhooks/webhook-list","pageMetadata":{"title":"Webhook List","description":"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.","href":"/guides/get-started/stash-webhooks/webhook-list"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"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.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Tab,Table,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Product-specific events:`}),` Some events are specific to Stash Pay or Stash\nWebshop. See the `,_jsx(_components.a,{href:`/guides/stash-pay/integration`,children:`Stash Pay integration guide`}),`\nor `,_jsx(_components.a,{href:`/guides/stash-webshop/integration`,children:`Stash Webshop integration guide`}),` for\nproduct-specific webhook details.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`available-webhooks`,children:`Available webhooks`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),` is the `,_jsx(_components.strong,{children:`primary event for granting items`}),`; always subscribe to it. `,_jsx(_components.code,{children:`PURCHASE_REFUNDED`}),` should be handled to revoke or adjust granted items. The remaining events are `,_jsx(_components.strong,{children:`optional`}),` and used mainly for analytics, marketing, and behavior tracking.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Products`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`})}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Yes`})}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsxs(_components.td,{children:[`Purchase successfully completed. Use to grant items to the player. `,_jsx(_components.code,{children:`source`}),` is `,_jsx(_components.code,{children:`\"StashPay\"`}),`, `,_jsx(_components.code,{children:`\"Cart\"`}),` or `,_jsx(_components.code,{children:`\"BuyNow\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PURCHASE_FAILED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsxs(_components.td,{children:[`A payment was refused or canceled. Use it for support and analytics, not to grant or revoke items. `,_jsx(_components.code,{children:`reasonCode`}),` says why: never show it or `,_jsx(_components.code,{children:`reason`}),` to the player.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PURCHASE_REFUNDED`})}),_jsx(_components.td,{children:`Recommended`}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsx(_components.td,{children:`Full or partial refund processed. Use to revoke or adjust granted items.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`OPEN_PAYMENT`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsx(_components.td,{children:`Payment process initiated (user starts checkout).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FREE_ITEM_REDEEMED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsx(_components.td,{children:`A player claimed a free item.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LOGGED_IN`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`A player signed in to your webshop with a login code, an authenticated URL or your own OAuth 2.0 server.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MUTATE_CART`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`Cart contents changed (add/remove/quantity).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_ITEM`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsxs(_components.td,{children:[`User viewed an item. At most once per 100 seconds per item per player; a view without a `,_jsx(_components.code,{children:`userId`}),` is sent once per view, up to a per-shop limit.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_CATALOG_SECTION`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsxs(_components.td,{children:[`User scrolled a catalog section into view. At most once per 100 seconds per section per player; a view without a `,_jsx(_components.code,{children:`userId`}),` is sent once per view, up to a per-shop limit.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_CHECKOUT_PAGE`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`User opened the checkout page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_PRODUCT_DETAIL_PAGE`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`User opened a product detail page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CART_BUTTON_CLICK`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`User interacted with a cart button.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BUY_NOW_ITEM_CLICK`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`User clicked an item that opens checkout directly, without the cart.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PAY_BUTTON_CLICK`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Pay, Webshop`}),_jsx(_components.td,{children:`User clicked the pay button on the checkout page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LOYALTY_MILESTONE_CLAIMED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`Player claimed a loyalty milestone. Only fires when the loyalty program uses async webhook delivery mode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LOGIN_FAILED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsxs(_components.td,{children:[`A player’s sign-in to your webshop was declined, by your server or by Stash. `,_jsx(_components.code,{children:`reason`}),` says why. Off until Stash turns it on for your shop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`OFFER_SLOT_MISMATCH`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`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.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CATALOG_REJECTED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`Stash could not fetch your Real-time Catalog or decode its response. At most once per shop per 10-minute window.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CATALOG_ITEMS_DROPPED`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsx(_components.td,{children:`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.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CATALOG_DATA_CONFLICT`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsxs(_components.td,{children:[`Your Real-time Catalog contradicts itself or your shop’s configuration. At most once per shop and conflict per 10-minute window; `,_jsx(_components.code,{children:`RESET_TIME_PASSED`}),` once per item and reset time.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CATALOG_TEXT_FALLBACK`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Webshop`}),_jsxs(_components.td,{children:[`Catalog texts showed their `,_jsx(_components.code,{children:`defaultText`}),` because their `,_jsx(_components.code,{children:`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.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CATALOG_REJECTED`}),`, `,_jsx(_components.code,{children:`CATALOG_ITEMS_DROPPED`}),`, `,_jsx(_components.code,{children:`CATALOG_DATA_CONFLICT`}),` and `,_jsx(_components.code,{children:`CATALOG_TEXT_FALLBACK`}),` report problems in your `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog`,children:`Real-time Catalog`}),` that you can fix. To start receiving them, contact your Stash engineering partner.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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.`]}),`\n`,_jsx(Heading,{level:`2`,id:`payload-structure`,children:`Payload structure`}),`\n`,_jsx(_components.p,{children:`All v1 webhooks follow a consistent base structure:`}),`\n`,_jsx(CodeBlock,{filename:`Base Webhook Structure`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PURCHASE_SUCCEEDED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purchaseSucceeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Event-specific payload`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`environment`}),` and `,_jsx(_components.code,{children:`shopId`}),` are on every v1 event. The event’s payload sits under a key named for the event, such as `,_jsx(_components.code,{children:`purchaseSucceeded`}),` for `,_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),`; each example below shows its key.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`environment`}),` is `,_jsx(_components.code,{children:`\"test\"`}),` (test/staging) or `,_jsx(_components.code,{children:`\"production\"`}),` (live). Use it to distinguish test traffic from real transactions.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`shopId`}),` is the ID of the shop that sent the event. Use it to route events when one endpoint serves several shops.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`webshop-session`,children:`Webshop session`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`checkoutSessionId`}),`. A new browser tab can also start a new session. Treat it as an opaque string.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Group a session’s events:`}),` collect every event with the same `,_jsx(_components.code,{children:`checkoutSessionId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Join a purchase to its funnel:`}),` a `,_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),` or `,_jsx(_components.code,{children:`PURCHASE_FAILED`}),` carries the `,_jsx(_components.code,{children:`checkoutSessionId`}),` of the views and clicks that led to it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Match the purchase to your purchase calls:`}),` use `,_jsx(_components.code,{children:`transactionId`}),` (or `,_jsx(_components.code,{children:`orderId`}),` on a `,_jsx(_components.code,{children:`\"Cart\"`}),` purchase), as described under `,_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),`. `,_jsx(_components.code,{children:`checkoutSessionId`}),` is not sent on `,_jsx(_components.code,{children:`RegisterPayment`}),` or `,_jsx(_components.code,{children:`ConfirmPayment`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`On `,_jsx(_components.code,{children:`PURCHASE_REFUNDED`}),`, `,_jsx(_components.code,{children:`checkoutSessionId`}),` is the session of the original purchase, not of the refund.`]}),`\n`,_jsxs(_components.p,{children:[`These events can carry it: `,_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),`, `,_jsx(_components.code,{children:`PURCHASE_FAILED`}),`, `,_jsx(_components.code,{children:`PURCHASE_REFUNDED`}),`, `,_jsx(_components.code,{children:`FREE_ITEM_REDEEMED`}),`, `,_jsx(_components.code,{children:`LOGGED_IN`}),`, `,_jsx(_components.code,{children:`VIEW_ITEM`}),`, `,_jsx(_components.code,{children:`VIEW_CATALOG_SECTION`}),`, `,_jsx(_components.code,{children:`VIEW_CHECKOUT_PAGE`}),`, `,_jsx(_components.code,{children:`VIEW_PRODUCT_DETAIL_PAGE`}),`, `,_jsx(_components.code,{children:`CART_BUTTON_CLICK`}),`, `,_jsx(_components.code,{children:`BUY_NOW_ITEM_CLICK`}),` and `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`analyticsConsent`}),` is `,_jsx(_components.code,{children:`\"DECLINED\"`}),` or `,_jsx(_components.code,{children:`\"UNANSWERED\"`}),`. `,_jsx(_components.code,{children:`OPEN_PAYMENT`}),`, `,_jsx(_components.code,{children:`MUTATE_CART`}),`, `,_jsx(_components.code,{children:`LOYALTY_MILESTONE_CLAIMED`}),`, `,_jsx(_components.code,{children:`LOGIN_FAILED`}),`, `,_jsx(_components.code,{children:`OFFER_SLOT_MISMATCH`}),` and the `,_jsx(_components.code,{children:`CATALOG_*`}),` events never carry it.`]}),`\n`,_jsx(Heading,{level:`3`,id:`analytics-consent`,children:`Analytics consent`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`analyticsConsent`}),` is the player’s answer to your webshop’s analytics consent banner. `,_jsx(_components.code,{children:`VIEW_ITEM`}),`, `,_jsx(_components.code,{children:`VIEW_CATALOG_SECTION`}),` and `,_jsx(_components.code,{children:`BUY_NOW_ITEM_CLICK`}),` carry it.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"ACCEPTED\"`})}),_jsx(_components.td,{children:`The player accepted analytics.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"DECLINED\"`})}),_jsx(_components.td,{children:`The player declined analytics.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"UNANSWERED\"`})}),_jsx(_components.td,{children:`The player has not answered the banner yet.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Depending on your webshop, `,_jsx(_components.code,{children:`userId`}),` and `,_jsx(_components.code,{children:`checkoutSessionId`}),` are either sent with every answer, or omitted unless the answer is `,_jsx(_components.code,{children:`\"ACCEPTED\"`}),`. A view or click without a `,_jsx(_components.code,{children:`userId`}),` can also come from a signed-out visitor. To find out which applies to your shop, contact your Stash engineering partner.`]}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`detailed-payload-examples`,children:`Detailed payload examples`}),`\n`,_jsx(_components.p,{children:`Pick the event you’re integrating to see its full JSON payload.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`PURCHASE_SUCCEEDED`,id:`purchase_succeeded`,children:[_jsxs(_components.p,{children:[`Triggered when a purchase is successfully completed. The `,_jsx(_components.code,{children:`source`}),` field says where the purchase started:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`source`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Purchase`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"StashPay\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A Stash Pay checkout link your backend created`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"Cart\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A Webshop cart checkout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"BuyNow\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`A single item bought directly from the Webshop, without the cart`})]})]})]}),_jsxs(_components.p,{children:[`To match the event to the purchase your backend saw on `,_jsx(_components.code,{children:`RegisterPayment`}),` or `,_jsx(_components.code,{children:`ConfirmPayment`}),`, use `,_jsx(_components.code,{children:`transactionId`}),`: it is the transaction ID Stash sent on those calls. On a `,_jsx(_components.code,{children:`\"Cart\"`}),` purchase, `,_jsx(_components.code,{children:`orderId`}),` carries that ID. `,_jsx(_components.code,{children:`transactionId`}),` may be absent on a `,_jsx(_components.code,{children:`\"Cart\"`}),` purchase, so match on `,_jsx(_components.code,{children:`orderId`}),` there.`]}),_jsxs(_components.p,{children:[`Each entry in `,_jsx(_components.code,{children:`items`}),` describes one purchased item. For a `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog`,children:`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:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item’s product ID. Several offers can share one product ID; use `,_jsx(_components.code,{children:`guid`}),` to tell them apart.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`guid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`guid`}),` of the offer the item was sold under: the `,_jsx(_components.code,{children:`guid`}),` your catalog sent, or the one Stash generated for the item when your catalog sent none. On a `,_jsx(_components.code,{children:`\"Cart\"`}),` purchase it matches the `,_jsx(_components.code,{children:`guid`}),` on `,_jsx(_components.code,{children:`ConfirmPayment`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`quantity`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Units bought.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`price`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Price of one unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`priceId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The Studio price ID the item was priced from: your catalog’s `,_jsx(_components.code,{children:`price.priceId`}),`, or the item’s product ID when the price was looked up by product ID. Only on `,_jsx(_components.code,{children:`\"Cart\"`}),` purchases, and omitted when your catalog sent a `,_jsx(_components.code,{children:`price.amount`}),`. See `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#studio-price-lookup`,children:`Studio price lookup`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`object (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Metadata attached to the item, such as the `,_jsx(_components.code,{children:`metadata`}),` you set on a catalog item.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`purchasePackId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`id`}),` of the purchase pack the item belongs to.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`version`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The offer’s `,_jsx(_components.code,{children:`version`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`templateKey`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The offer’s `,_jsx(_components.code,{children:`templateKey`}),`.`]})]})]})]}),_jsxs(_components.p,{children:[`Optional fields are omitted when Stash has no value for them, for example when the catalog did not send them. `,_jsx(_components.code,{children:`PURCHASE_FAILED`}),` and `,_jsx(_components.code,{children:`PURCHASE_REFUNDED`}),` items carry the same fields.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`paymentMethodType`}),` says how the player paid. It is omitted when the payment method is unknown.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`paymentMethodType`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Payment method`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_CARD\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Credit or debit card`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_APPLE_PAY\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Apple Pay`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_GOOGLE_PAY\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Google Pay`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_PAYPAL\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`PayPal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_KLARNA\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Klarna`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_IDEAL\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`iDEAL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_EPS\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`EPS`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_AFTERPAY\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Afterpay`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PAYMENT_METHOD_TYPE_BANCONTACT\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Bancontact`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`taxInclusive`}),` says whether the item prices already include `,_jsx(_components.code,{children:`tax`}),`. It has the same value as on the purchase’s `,_jsx(_components.a,{href:`/api/egress/purchase/confirmpayment`,children:_jsx(_components.code,{children:`ConfirmPayment`})}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`taxInclusive`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`true`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item prices include `,_jsx(_components.code,{children:`tax`}),`, as in markets where prices include VAT. `,_jsx(_components.code,{children:`tax`}),` is the share inside them.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`tax`}),` is added on top of the item prices, or the purchase has no tax.`]})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`taxInclusive`}),` is absent only when Stash cannot determine the tax mode. `,_jsx(_components.code,{children:`isInclusive`}),` on each `,_jsx(_components.code,{children:`taxDetails`}),` line gives the same mode per tax line. For a purchase without a cash coupon, `,_jsx(_components.code,{children:`total`}),`, minus `,_jsx(_components.code,{children:`tax`}),` when `,_jsx(_components.code,{children:`taxInclusive`}),` is `,_jsx(_components.code,{children:`false`}),`, equals the sum of `,_jsx(_components.code,{children:`price`}),` × `,_jsx(_components.code,{children:`quantity`}),` over `,_jsx(_components.code,{children:`items`}),`.`]}),_jsx(CodeBlock,{filename:`Purchase Succeeded Event (Stash Pay example)`,numberOfLines:`49`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`49`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PURCHASE_SUCCEEDED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purchaseSucceeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1640995200000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txn_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutLinkId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"checkout_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456_summer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"weapons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rarity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"legendary\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purchasePackId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"summer-offer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"templateKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter-offer-v2\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tax\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"21.48\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taxInclusive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taxDetails\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Sales Tax\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isInclusive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"percentage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7.5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CA\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"emailMarketingOptIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StashPay\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ipAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"192.168.1.1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethodType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAYMENT_METHOD_TYPE_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`PURCHASE_FAILED`,id:`purchase_failed`,children:[_jsx(_components.p,{children:`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.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Never show `,_jsx(_components.code,{children:`reasonCode`}),` or `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`PURCHASE_FAILED`}),` only; a decline your server returns from `,_jsx(_components.a,{href:`/api/egress/purchase/confirmpayment`,children:_jsx(_components.code,{children:`ConfirmPayment`})}),` is a different case.`]})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`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.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`reasonCode`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_funds`})}),_jsx(_components.td,{children:`The account cannot cover the amount.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card_expired`})}),_jsx(_components.td,{children:`The card’s expiry date has passed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_card`})}),_jsx(_components.td,{children:`The card cannot be charged: invalid number, unknown issuer or closed account.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_card_details`})}),_jsx(_components.td,{children:`The details entered don’t match the card: wrong CVC, expiry date, postal code or PIN.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`suspected_fraud`})}),_jsx(_components.td,{children:`The payment was flagged as potential fraud.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card_lost_or_stolen`})}),_jsx(_components.td,{children:`The card was reported lost or stolen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card_blocked`})}),_jsx(_components.td,{children:`The card is blocked or restricted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`issuer_declined`})}),_jsx(_components.td,{children:`The bank declined the payment without a more specific cause.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`transaction_not_allowed`})}),_jsx(_components.td,{children:`This kind of payment is not permitted for the card.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit_exceeded`})}),_jsx(_components.td,{children:`An amount or frequency limit was exceeded.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`issuer_unavailable`})}),_jsx(_components.td,{children:`The bank or card network could not be reached. Trying again later may work.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authentication_failed`})}),_jsx(_components.td,{children:`3D Secure authentication failed or the player abandoned it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authentication_required`})}),_jsx(_components.td,{children:`The bank requires 3D Secure authentication for this payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_stopped`})}),_jsx(_components.td,{children:`The cardholder or the bank stopped or revoked the payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`declined_other`})}),_jsx(_components.td,{children:`Any other cause, including a payment canceled after authorization.`})]})]})]}),_jsxs(_components.p,{children:[`Treat any value you don’t recognize as `,_jsx(_components.code,{children:`declined_other`}),`: new values may be added over time.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`reason`}),` is free text for your logs and support team. Its wording can change, so read `,_jsx(_components.code,{children:`reasonCode`}),` instead of parsing it. See `,_jsx(_components.a,{href:`/guides/get-started/test-cards#testing-refusal-reasons`,children:`Testing refusal reasons`}),` for the refusals you can trigger in the test environment.`]}),_jsx(CodeBlock,{filename:`Purchase Failed Event`,numberOfLines:`26`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`26`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PURCHASE_FAILED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purchaseFailed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1640995200000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"txn_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutLinkId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"checkout_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9.99\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"21.48\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"decimalPlaces\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reasonCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient_funds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Payment failed: Insufficient funds (Warning: do not expose specific refusal reasons to shoppers, to prevent malicious use of details)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StashPay\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`PURCHASE_REFUNDED`,id:`purchase_refunded`,children:[_jsx(_components.p,{children:`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.`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`items`}),` array contains all items from the original purchase, not just refunded ones. The `,_jsx(_components.code,{children:`total`}),` field reflects the actual refund amount.`]}),_jsx(CodeBlock,{filename:`Purchase Refunded Event`,numberOfLines:`27`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PURCHASE_REFUNDED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purchaseRefunded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1640995200000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"weapons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rarity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"legendary\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"21.48\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer requested refund\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StashPay\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`OPEN_PAYMENT`,id:`open_payment`,children:[_jsxs(_components.p,{children:[`Triggered when the payment process is initiated. The `,_jsx(_components.code,{children:`source`}),` field is `,_jsx(_components.code,{children:`\"StashPay\"`}),` for Stash Pay or `,_jsx(_components.code,{children:`\"Cart\"`}),` for Webshop.`]}),_jsx(CodeBlock,{filename:`Open Payment Event`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"OPEN_PAYMENT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"openPayment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cartId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cart_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StashPay\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`FREE_ITEM_REDEEMED`,id:`free_item_redeemed`,children:[_jsxs(_components.p,{children:[`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 `,_jsx(_components.a,{href:`/guides/stash-webshop/how-tos/create-promo-codes`,children:`Create and Edit Promo Codes`}),`).`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`itemId`}),` is the catalog item that was granted. `,_jsx(_components.code,{children:`claimId`}),` is the claim it consumed, for catalogs that declare a stable claim identity on free items; it appears only when it differs from `,_jsx(_components.code,{children:`itemId`}),`. See `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items`,children:`Free items and claim identity`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`redemptionId`}),` identifies one redemption. Every delivery of that redemption carries the same `,_jsx(_components.code,{children:`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 `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items#claim-status`,children:`Claim status`}),`). A redemption in a later claim window gets a new `,_jsx(_components.code,{children:`redemptionId`}),`, so keep your own rule for how often a claim can be granted.`]}),_jsxs(_components.p,{children:[`If a payload has no `,_jsx(_components.code,{children:`redemptionId`}),`, de-duplicate on `,_jsx(_components.code,{children:`userId`}),` + `,_jsx(_components.code,{children:`itemId`}),` + `,_jsx(_components.code,{children:`timeMillis`}),` instead. A retried delivery repeats the original payload unchanged, including `,_jsx(_components.code,{children:`timeMillis`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`metadata`}),` describes the item, not how it was claimed. For a Real-time Catalog it repeats the `,_jsx(_components.code,{children:`metadata`}),` you set on that free item, and `,_jsx(_components.code,{children:`version`}),` and `,_jsx(_components.code,{children:`templateKey`}),` repeat the free item’s `,_jsx(_components.code,{children:`version`}),` and `,_jsx(_components.code,{children:`templateKey`}),`. Each is omitted when your catalog did not send it.`]}),_jsx(CodeBlock,{filename:`Free Item Redeemed Event`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FREE_ITEM_REDEEMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"freeItemRedeemed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1640995200000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_free_001_gold_tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"claimId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily_gift\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redemptionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6f1c2a9e-4b7d-4e2a-9c3f-8d5e1b0a7c42\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"templateKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily-gift-v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ipAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"192.168.1.1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rewardTier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gold\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`LOGGED_IN`,id:`logged_in`,children:[_jsx(_components.p,{children:`Triggered when a player signs in to your webshop by one of these methods. Stash sends it once the player is signed in.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Sign-in`}),_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`checkoutSessionId`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[`An `,_jsx(_components.a,{href:`/guides/stash-webshop/player-authentication/account-linking`,children:`account linking`}),` login code`]}),_jsx(_components.td,{style:{textAlign:`left`},children:`Present`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{style:{textAlign:`left`},children:[`A URL from `,_jsx(_components.a,{href:`/api/ingress/server-urls/generateauthenticatedurl`,children:`Generate authenticated URL`})]}),_jsx(_components.td,{style:{textAlign:`left`},children:`Present`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Your own OAuth 2.0 server, set up by Stash for your shop`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Omitted`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/guides/stash-webshop/player-authentication/authentication-methods#direct-sign-in-sso`,children:`Direct Sign in (SSO)`}),` with providers such as Google, Apple or Facebook sends no `,_jsx(_components.code,{children:`LOGGED_IN`}),`.`]}),_jsx(CodeBlock,{filename:`Logged In Event`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LOGGED_IN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loggedIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`MUTATE_CART`,id:`mutate_cart`,children:[_jsx(_components.p,{children:`Triggered when cart contents are modified. Quantity deltas can be negative (removal) or positive (addition).`}),_jsx(CodeBlock,{filename:`Mutate Cart Event`,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MUTATE_CART\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mutateCart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cartId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cart_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1640995200000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ipAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"192.168.1.1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`VIEW_ITEM`,id:`view_item`,children:[_jsxs(_components.p,{children:[`Triggered when a user views an item. A view with a `,_jsx(_components.code,{children:`userId`}),` is debounced to once per 100 seconds per item per user. A view without a `,_jsx(_components.code,{children:`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.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`analyticsConsent`}),` is the player’s answer to your webshop’s analytics consent banner. See `,_jsx(_components.a,{href:`#analytics-consent`,children:`Analytics consent`}),`.`]}),_jsx(CodeBlock,{filename:`View Item Event`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIEW_ITEM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"viewItem\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analyticsConsent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACCEPTED\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`VIEW_CATALOG_SECTION`,id:`view_catalog_section`,children:[_jsxs(_components.p,{children:[`Triggered when a catalog section scrolls into view. A view with a `,_jsx(_components.code,{children:`userId`}),` is debounced to once per 100 seconds per section per user. A view without a `,_jsx(_components.code,{children:`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.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sectionId`}),` is the section’s ID. `,_jsx(_components.code,{children:`sectionName`}),` is the section’s header, and is omitted when the section has none. `,_jsx(_components.code,{children:`analyticsConsent`}),` is the player’s answer to your webshop’s analytics consent banner. See `,_jsx(_components.a,{href:`#analytics-consent`,children:`Analytics consent`}),`.`]}),_jsx(CodeBlock,{filename:`View Catalog Section Event`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIEW_CATALOG_SECTION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"viewCatalogSection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sectionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily-deals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sectionName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Daily Deals\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analyticsConsent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACCEPTED\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`VIEW_CHECKOUT_PAGE`,id:`view_checkout_page`,children:[_jsx(_components.p,{children:`Triggered when the checkout page is viewed.`}),_jsx(CodeBlock,{filename:`View Checkout Page Event`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIEW_CHECKOUT_PAGE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"viewCheckoutPage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`VIEW_PRODUCT_DETAIL_PAGE`,id:`view_product_detail_page`,children:[_jsx(_components.p,{children:`Triggered when a product detail page is viewed.`}),_jsx(CodeBlock,{filename:`View Product Detail Page Event`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIEW_PRODUCT_DETAIL_PAGE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"viewProductDetailsPage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CART_BUTTON_CLICK`,id:`cart_button_click`,children:[_jsx(_components.p,{children:`Triggered when a cart-related button (icon, badge, etc.) is clicked.`}),_jsx(CodeBlock,{filename:`Cart Button Click Event`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CART_BUTTON_CLICK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sendCartButtonClick\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`BUY_NOW_ITEM_CLICK`,id:`buy_now_item_click`,children:[_jsx(_components.p,{children:`Triggered when a player clicks an item that opens checkout directly, without the cart.`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`itemId`}),` is the clicked item. `,_jsx(_components.code,{children:`productId`}),` is the product ID shared by every offer of that item, and is omitted when Stash has none for the item. `,_jsx(_components.code,{children:`analyticsConsent`}),` is the player’s answer to your webshop’s analytics consent banner. See `,_jsx(_components.a,{href:`#analytics-consent`,children:`Analytics consent`}),`.`]}),_jsx(CodeBlock,{filename:`Buy Now Item Click Event`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BUY_NOW_ITEM_CLICK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"buyNowItemClick\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gems_100\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analyticsConsent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACCEPTED\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`PAY_BUTTON_CLICK`,id:`pay_button_click`,children:[_jsx(_components.p,{children:`Triggered when a player clicks the pay button on the checkout page:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webshop cart checkout:`}),` `,_jsx(_components.code,{children:`cartId`}),` is the cart being paid.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stash Pay checkout opened from your webshop:`}),` `,_jsx(_components.code,{children:`cartId`}),` is omitted, and `,_jsx(_components.code,{children:`items`}),` lists the checkout link’s items.`]}),`\n`]}),_jsxs(_components.p,{children:[`Each entry in `,_jsx(_components.code,{children:`items`}),` has the item’s `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`quantity`}),`, plus `,_jsx(_components.code,{children:`productId`}),` when Stash has one for the item.`]}),_jsx(CodeBlock,{filename:`Pay Button Click Event`,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAY_BUTTON_CLICK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payButtonClick\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"US\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item_456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gems_100\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cartId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cart_789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8f3c2b1e-6a4d-4c9e-9b2f-5d7a1e0c3b46\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`LOYALTY_MILESTONE_CLAIMED`,id:`loyalty_milestone_claimed`,children:[_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`loyalty`}),` payload and a `,_jsx(_components.code,{children:`milestoneTierId`}),`. See `,_jsx(_components.a,{href:`/guides/stash-webshop/how-tos/loyalty/analytics-app-integration`,children:`Loyalty webhooks`}),` for the full contract and the `,_jsx(_components.a,{href:`/guides/stash-webshop/how-tos/loyalty`,children:`loyalty guide`}),` for configuration.`]}),_jsx(CodeBlock,{filename:`Loyalty Milestone Claimed Event`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LOYALTY_MILESTONE_CLAIMED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loyaltyMilestoneClaimed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1748476800000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"milestoneId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"milestone_uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rewards\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reward_type_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`LOGIN_FAILED`,id:`login_failed`,children:[_jsx(_components.p,{children:`Triggered when a player’s sign-in to your webshop is declined:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`By your server:`}),` it called `,_jsx(_components.a,{href:`/api/ingress/webshop-account-linking/declinecustomlogin`,children:_jsx(_components.code,{children:`DeclineCustomLogin`})}),` for an `,_jsx(_components.a,{href:`/guides/stash-webshop/player-authentication/account-linking`,children:`account linking`}),` login code.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`By Stash:`}),` your server sent a client version below your shop’s `,_jsx(_components.a,{href:`/guides/stash-webshop/player-authentication/account-linking#set-a-minimum-app-version-optional`,children:`minimum app version`}),` for the player’s platform, on `,_jsx(_components.a,{href:`/api/ingress/webshop-account-linking/approvecustomlogin`,children:_jsx(_components.code,{children:`ApproveCustomLogin`})}),` or on `,_jsx(_components.a,{href:`/api/ingress/server-urls/generateauthenticatedurl`,children:`Generate authenticated URL`}),`. Stash declines the login instead of approving the code or creating the link.`]}),`\n`]}),_jsx(_components.p,{children:`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.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"NOT_ELIGIBLE\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The store is not available to this player yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"NOT_IN_ROLLOUT\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The store is not enabled for this player in the current rollout.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"CLIENT_OUTDATED\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The player’s app is older than the minimum version your shop requires.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"OTHER\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Any other reason.`})]})]})]}),_jsxs(_components.p,{children:[`Stash only declines with `,_jsx(_components.code,{children:`CLIENT_OUTDATED`}),`. Your server can send any of the reasons: see `,_jsx(_components.a,{href:`/guides/stash-webshop/player-authentication/account-linking#decline-a-login`,children:`Decline a login`}),` for when to send each.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Why the login was declined: one of the values above.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`declinedBy`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`\"PARTNER\"`}),` when your server declined the login, `,_jsx(_components.code,{children:`\"STASH\"`}),` when Stash did.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`loginMethod`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`\"CUSTOM_LOGIN\"`}),` for an account linking login code, `,_jsx(_components.code,{children:`\"AUTHENTICATED_LINK\"`}),` for a Generate authenticated URL call.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`occurredAt`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the login was declined, as an RFC 3339 timestamp in UTC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`userId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The player ID your server sent on the declining call.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`clientVersion`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The client version your server sent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`gameVersion`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The game version your server sent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`minAppVersion`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The minimum app version that applied to the player’s platform. Only when `,_jsx(_components.code,{children:`declinedBy`}),` is `,_jsx(_components.code,{children:`\"STASH\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`regionCode`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The player’s region your server sent, as a Unicode CLDR region code. Only when `,_jsx(_components.code,{children:`declinedBy`}),` is `,_jsx(_components.code,{children:`\"STASH\"`}),`.`]})]})]})]}),_jsx(_components.p,{children:`Optional fields are omitted when the declining call did not carry them.`}),_jsx(CodeBlock,{filename:`Login Failed Event`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LOGIN_FAILED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loginFailed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CLIENT_OUTDATED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"declinedBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STASH\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"clientVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.13.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gameVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"512\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"minAppVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.14.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loginMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUSTOM_LOGIN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regionCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurredAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-30T12:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`OFFER_SLOT_MISMATCH`,id:`offer_slot_mismatch`,children:[_jsxs(_components.p,{children:[`Triggered when the web shop shows `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog`,children:`Real-time Catalog`}),` offers whose template key or slot names do not fit their templates (see `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/offer-templates`,children:`Offer templates with named slots`}),`):`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unknown template key:`}),` an offer’s `,_jsx(_components.code,{children:`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.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unmatched layout keys:`}),` a reward’s `,_jsx(_components.code,{children:`layoutKey`}),` names no reward slot of the template.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Missing layout keys:`}),` the template has reward slots and a reward has no `,_jsx(_components.code,{children:`layoutKey`}),`. Only reported when at least one offer on the page sends a `,_jsx(_components.code,{children:`layoutKey`}),`, so a catalog that does not use layout keys gets no such reports.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unmatched text slots:`}),` a `,_jsx(_components.code,{children:`textSlots`}),` name is no text slot of the template.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unmatched buy button key:`}),` a buy button’s `,_jsx(_components.code,{children:`layoutKey`}),` names no buy button slot of the template. A buy button with no `,_jsx(_components.code,{children:`layoutKey`}),` is not reported.`]}),`\n`]}),_jsx(_components.p,{children:`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.`}),_jsxs(_components.p,{children:[`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. `,_jsx(_components.code,{children:`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.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`unmatchedBuyButtonLayoutKey`}),` is the buy button `,_jsx(_components.code,{children:`layoutKey`}),` the offers sent, and is present only when it names no buy button slot of the template.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`templateKey`}),` is the template key the offers sent, and is omitted when they sent none. When `,_jsx(_components.code,{children:`unknownTemplateKey`}),` is `,_jsx(_components.code,{children:`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.`]}),_jsx(CodeBlock,{filename:`Offer Slot Mismatch Event`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"OFFER_SLOT_MISMATCH\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"offerSlotMismatch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"templateKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter-offer-v2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unknownTemplateKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unmatchedLayoutKeys\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Middle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingLayoutKeys\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unmatchedTextSlots\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unmatchedBuyButtonLayoutKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SKU_Top\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"offers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_bundle\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"detectedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-15T21:05:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CATALOG_REJECTED`,id:`catalog_rejected`,children:[_jsxs(_components.p,{children:[`Triggered when Stash requests your catalog from your `,_jsx(_components.a,{href:`/api/egress/catalog/getcatalog`,children:_jsx(_components.code,{children:`GetCatalog`})}),` endpoint and the request fails. Until your endpoint answers again, players may see an earlier cached copy of your catalog, or no catalog.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`What happened`}),_jsx(_components.th,{style:{textAlign:`left`},children:`What to check`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"ENDPOINT_UNAVAILABLE\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Stash could not reach your endpoint, or it did not answer in time.`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Your endpoint’s availability and response time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"ENDPOINT_ERROR_STATUS\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Your endpoint answered with an HTTP 4xx or 5xx status.`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Your endpoint’s logs for the failed requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"RESPONSE_UNDECODABLE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Your endpoint answered, but the body is not a valid `,_jsx(_components.code,{children:`GetCatalog`}),` response.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The response body against the `,_jsxs(_components.a,{href:`/api/egress/catalog/getcatalog`,children:[_jsx(_components.code,{children:`GetCatalog`}),` reference`]}),`.`]})]})]})]}),_jsx(_components.p,{children:`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.`}),_jsx(_components.p,{children:`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.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timeMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`When Stash saw the failure that sent this event, in milliseconds since the Unix epoch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`windowStartMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Start of the period `,_jsx(_components.code,{children:`occurrences`}),` covers, in milliseconds since the Unix epoch.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`occurrences`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Failed requests from `,_jsx(_components.code,{children:`windowStartMillis`}),` to `,_jsx(_components.code,{children:`timeMillis`}),`. Counted on the Stash server that sent the event, so treat it as a minimum.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`endpoint`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Always `,_jsx(_components.code,{children:`\"CATALOG\"`}),`: your `,_jsx(_components.code,{children:`GetCatalog`}),` endpoint.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Why the request failed: one of the values above.`})]})]})]}),_jsx(CodeBlock,{filename:`Catalog Rejected Event`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG_REJECTED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"catalogRejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"windowStartMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurrences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"endpoint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ENDPOINT_ERROR_STATUS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CATALOG_ITEMS_DROPPED`,id:`catalog_items_dropped`,children:[_jsxs(_components.p,{children:[`Triggered when catalog items cannot be read or shown, or a bonus you declared has a missing or invalid picture. Use `,_jsx(_components.code,{children:`items`}),` to find each problem in your catalog response.`]}),_jsx(_components.p,{children:`Problems are reported from 2 places, each separately:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stash’s server`}),`, when it cannot read an item, hides a streak’s free items because the streak’s layout breaks the `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items#keep-the-layout-whole`,children:`streak rules`}),`, or finds a missing or invalid picture for a declared bonus. Bonus-picture reports use `,_jsx(_components.code,{children:`path: \"bonusItems[n]\"`}),` and the bonus ID as `,_jsx(_components.code,{children:`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.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`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 `,_jsx(_components.code,{children:`https`}),` URL, or fails to load. These entries carry `,_jsx(_components.code,{children:`path`}),` and `,_jsx(_components.code,{children:`value`}),`, which point at the field to fix.`]}),`\n`]}),_jsxs(_components.p,{children:[`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. `,_jsx(_components.code,{children:`droppedCount`}),` and `,_jsx(_components.code,{children:`items`}),` describe the single page load that sent the event; `,_jsx(_components.code,{children:`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 `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/caching`,children:`Caching`}),`).`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timeMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the page load that sent this event happened, in milliseconds since the Unix epoch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`windowStartMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Start of the period `,_jsx(_components.code,{children:`occurrences`}),` covers, in milliseconds since the Unix epoch.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`occurrences`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Page loads with reportable problems, from `,_jsx(_components.code,{children:`windowStartMillis`}),` to `,_jsx(_components.code,{children:`timeMillis`}),`. Counted on the Stash server that sent the event, so treat it as a minimum. Always `,_jsx(_components.code,{children:`1`}),` on an event from your webshop, whose `,_jsx(_components.code,{children:`windowStartMillis`}),` equals its `,_jsx(_components.code,{children:`timeMillis`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`droppedCount`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`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 `,_jsx(_components.code,{children:`items`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`array`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`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 `,_jsx(_components.code,{children:`STREAK_LAYOUT_INVALID`}),` entry before those findings and the rest after them. Always present.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`truncated`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`boolean`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`true`}),` when the report contains more problems than `,_jsx(_components.code,{children:`items`}),` holds.`]})]})]})]}),_jsxs(_components.p,{children:[`Each entry in `,_jsx(_components.code,{children:`items`}),`:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`itemId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Your ID for the item: the `,_jsx(_components.code,{children:`productId`}),` of a `,_jsx(_components.code,{children:`product`}),` or of a pack’s price point, the `,_jsx(_components.code,{children:`itemId`}),` of an `,_jsx(_components.code,{children:`info`}),` or `,_jsx(_components.code,{children:`free`}),` item, or the first link’s `,_jsx(_components.code,{children:`productId`}),` for a `,_jsx(_components.code,{children:`chain`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`guid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`guid`}),` you sent for the item.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Why the item was left out. See below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`field`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`What in the item was malformed, with `,_jsx(_components.code,{children:`ITEM_NOT_CONVERTIBLE`}),`, or which streak rule the section broke, with `,_jsx(_components.code,{children:`STREAK_LAYOUT_INVALID`}),`. Only with these 2 reasons. See below.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`path`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Where in the item the picture problem is, in your catalog’s field names, for example `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`contents[2].unitImage`}),` or `,_jsx(_components.code,{children:`bonusItems[0]`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The reported value, cut to 512 bytes. For `,_jsx(_components.code,{children:`bonusItems[n]`}),`, the bonus ID you sent, rather than its resolved picture URL. Otherwise, the picture value; omitted when absent.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`rewardGuid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`guid`}),` you sent for the reward, when the problem is in one of the item’s `,_jsx(_components.code,{children:`contents`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`layoutKey`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`layoutKey`}),` you sent for the affected reward or declared bonus.`]})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`itemId`}),` and `,_jsx(_components.code,{children:`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.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Why the item was left out`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"DUPLICATE_ITEM_ID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An earlier item in the response has the same `,_jsx(_components.code,{children:`guid`}),`, or the item repeats the free offer configured for your shop. Stash shows the first one.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"UNKNOWN_ITEM_VARIANT\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item is none of the `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#catalog-items`,children:`catalog item types`}),` Stash recognizes. Reported with no `,_jsx(_components.code,{children:`itemId`}),` or `,_jsx(_components.code,{children:`guid`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PRICE_NOT_RESOLVABLE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Stash could not look up a Studio price for the item’s `,_jsx(_components.code,{children:`priceId`}),`, or for its `,_jsx(_components.code,{children:`productId`}),` when `,_jsx(_components.code,{children:`price`}),` is omitted. See `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#studio-price-lookup`,children:`Studio price lookup`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"CONTENT_LIMIT_EXCEEDED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item has more `,_jsx(_components.code,{children:`contents`}),` entries (in total, featured or not featured) than your shop’s content limits allow.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PACK_MISSING_ID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item is in a `,_jsx(_components.code,{children:`pack`}),` with no `,_jsx(_components.code,{children:`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 `,_jsx(_components.code,{children:`itemId`}),` or `,_jsx(_components.code,{children:`guid`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"ITEM_NOT_RENDERABLE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Stash read the item but could not draw it, for example an offer chain whose link statuses are out of order, or a `,_jsx(_components.code,{children:`contents`}),` quantity too large for an unsigned 32-bit integer. Also reported by your webshop for an item it cannot draw for another reason.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"ITEM_NOT_CONVERTIBLE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A value in the item is malformed. `,_jsx(_components.code,{children:`field`}),` names it when Stash can.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"IMAGE_MISSING\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A required picture is absent or empty. `,_jsx(_components.code,{children:`path`}),` identifies the picture or declared bonus. Reported by your webshop, or by Stash’s server for declared bonus pictures.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"IMAGE_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A picture is not an absolute `,_jsx(_components.code,{children:`https`}),` URL. `,_jsx(_components.code,{children:`path`}),` identifies the picture or declared bonus; `,_jsx(_components.code,{children:`value`}),` contains the picture value or bonus ID. Reported by your webshop, or by Stash’s server for declared bonus pictures.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"IMAGE_LOAD_FAILED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A picture’s URL did not load in the player’s browser. `,_jsx(_components.code,{children:`path`}),` names it and `,_jsx(_components.code,{children:`value`}),` carries the URL. Reported by your webshop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_LAYOUT_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item is a `,_jsx(_components.code,{children:`free`}),` item of a `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items#streaks-tracked-by-stash`,children:`streak tracked by Stash`}),` whose section breaks the `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items#keep-the-layout-whole`,children:`streak rules`}),`, so Stash hides the section’s free items. Reported once per hidden item; `,_jsx(_components.code,{children:`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.`]})]})]})]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`field`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`What was malformed`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"ITEM_EMPTY\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item, or a link of an offer chain, is empty, or the item has neither an ID nor a `,_jsx(_components.code,{children:`guid`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PRICE_AMOUNT_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`price.amount`}),` cannot be read, for example because it has no `,_jsx(_components.code,{children:`currency`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PRICE_TYPE_UNKNOWN\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`price`}),` is present but sets neither `,_jsx(_components.code,{children:`amount`}),` nor `,_jsx(_components.code,{children:`priceId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PRICE_MISSING\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The item has no `,_jsx(_components.code,{children:`price`}),`, and Studio price lookup is not set up for your shop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"CONTENT_QUANTITY_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A `,_jsx(_components.code,{children:`contents`}),` entry’s `,_jsx(_components.code,{children:`quantity`}),` is not an integer.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"REWARD_BUFF_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A `,_jsx(_components.code,{children:`contents`}),` entry’s `,_jsx(_components.code,{children:`rewardBuff`}),` has a `,_jsx(_components.code,{children:`type`}),` Stash does not recognize.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"BONUS_INVALID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The bonus amount in the item’s `,_jsx(_components.code,{children:`metadata`}),` is not a whole number from 0 to 4294967295.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"CHAIN_EMPTY\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`An offer chain has no links.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"CONTENTS_MISSING\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A `,_jsx(_components.code,{children:`free`}),` item has no `,_jsx(_components.code,{children:`contents`}),`.`]})]})]})]}),_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`STREAK_LAYOUT_INVALID`}),`, `,_jsx(_components.code,{children:`field`}),` names the streak rule the section broke:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`field`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`Rule broken`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_ORDER_GAP\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`streakOrder`}),` values do not run from 1 with no gaps.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_ORDER_MIXED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Some free items in the section set `,_jsx(_components.code,{children:`streakOrder`}),` and some do not.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_ORDER_DUPLICATE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Two items share a `,_jsx(_components.code,{children:`streakOrder`}),` and a `,_jsx(_components.code,{children:`targetTierId`}),`, or share a `,_jsx(_components.code,{children:`streakOrder`}),` and neither sets `,_jsx(_components.code,{children:`targetTierId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_ITEM_ID_DUPLICATE\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Two free items in the section share an `,_jsx(_components.code,{children:`itemId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_SEQUENCE_PARTIAL\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The steps do not make a whole number of sequences of the length set for your shop.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_ORDER_IN_SEVERAL_SECTIONS\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`More than 1 section sets `,_jsx(_components.code,{children:`streakOrder`}),`. The free items of each are reported.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_TIER_LISTS_UNEQUAL\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`No item sets `,_jsx(_components.code,{children:`streakOrder`}),`, and the tiers’ lists of items have different lengths.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_TIER_WITH_FREE_OFFER\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An item sets `,_jsx(_components.code,{children:`targetTierId`}),` while a free offer is configured for your shop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_STEP_IS_FREE_OFFER\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An item sets `,_jsx(_components.code,{children:`rewardHiddenWhileLocked`}),`, sets no `,_jsx(_components.code,{children:`targetTierId`}),`, and its `,_jsx(_components.code,{children:`itemId`}),` or its `,_jsx(_components.code,{children:`claimId`}),` is the item ID of the free offer configured for your shop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"STREAK_HIDDEN_IDENTITY_SHARED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`An item sets `,_jsx(_components.code,{children:`rewardHiddenWhileLocked`}),`, and another item in the catalog uses its `,_jsx(_components.code,{children:`itemId`}),` or `,_jsx(_components.code,{children:`guid`}),`, or claims as it.`]})]})]})]}),_jsx(CodeBlock,{filename:`Catalog Items Dropped Event`,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG_ITEMS_DROPPED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"catalogItemsDropped\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"windowStartMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurrences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"droppedCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gems_100\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gems-guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ITEM_NOT_CONVERTIBLE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PRICE_AMOUNT_INVALID\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UNKNOWN_ITEM_VARIANT\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"truncated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Catalog Items Dropped Event (from your webshop)`,numberOfLines:`29`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`29`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG_ITEMS_DROPPED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"catalogItemsDropped\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"windowStartMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurrences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"droppedCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter-bundle-guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"IMAGE_INVALID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contents[0].unitImage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CoinIcon\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rewardGuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"coins-guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"layoutKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reward_Panel_0\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter-bundle-guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"IMAGE_MISSING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"truncated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CATALOG_DATA_CONFLICT`,id:`catalog_data_conflict`,children:[_jsx(_components.p,{children:`Triggered when your catalog contradicts itself or your shop’s configuration, so Stash shows something other than what you intended.`}),_jsxs(_components.p,{children:[`You get at most 1 event per shop and `,_jsx(_components.code,{children:`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. `,_jsx(_components.code,{children:`\"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 `,_jsx(_components.code,{children:`occurrences`}),` or `,_jsx(_components.code,{children:`windowStartMillis`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`conflict`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`What happened`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Fields set`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"FREE_OFFER_ID_NOT_MATCHED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Your catalog sent `,_jsx(_components.code,{children:`free`}),` items, but none of them matches the free offer configured for your shop. Stash keeps showing the configured free offer. See `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/free-items`,children:`Free items and claim identity`}),`.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`configuredValue`}),`: the configured free offer’s item ID. `,_jsx(_components.code,{children:`receivedValue`}),`: the `,_jsx(_components.code,{children:`itemId`}),` of each `,_jsx(_components.code,{children:`free`}),` item you sent, comma-separated, up to 20.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"FREE_OFFER_CLAIM_ID_CONFLICT\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`free`}),` item whose `,_jsx(_components.code,{children:`itemId`}),` is the configured free offer’s item ID declares a different `,_jsx(_components.code,{children:`claimId`}),`. Seen when a player claims the item: Stash ignores that `,_jsx(_components.code,{children:`claimId`}),` and uses the `,_jsx(_components.code,{children:`itemId`}),` as the claim identity.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`itemId`}),` and `,_jsx(_components.code,{children:`configuredValue`}),`: the item ID. `,_jsx(_components.code,{children:`receivedValue`}),`: the `,_jsx(_components.code,{children:`claimId`}),` you sent.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PURCHASE_PACK_DUPLICATE_ID\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`2 or more packs share an `,_jsx(_components.code,{children:`id`}),`, so purchases from any of them carry the same `,_jsx(_components.code,{children:`purchasePackId`}),`.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`itemId`}),`: the pack `,_jsx(_components.code,{children:`id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"PURCHASE_PACK_MULTIPLE_WHOLE_PACK_ITEMS\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A pack has more than 1 item with `,_jsx(_components.code,{children:`type: PURCHASE_PACK_ITEM_TYPE_WHOLE_PURCHASE_PACK`}),`. See `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/items-and-prices#purchase-packs`,children:`Purchase packs`}),`.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`itemId`}),`: the pack `,_jsx(_components.code,{children:`id`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"RESET_TIME_PASSED\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`When Stash fetched your catalog, it still carried a reset time more than 1 minute in the past: a `,_jsx(_components.code,{children:`refreshAt`}),` on a `,_jsx(_components.code,{children:`product`}),`, `,_jsx(_components.code,{children:`pack`}),` or `,_jsx(_components.code,{children:`free`}),` item, `,_jsx(_components.code,{children:`catalog.refreshAt`}),`, or a trigger’s `,_jsx(_components.code,{children:`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 `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/caching`,children:`Caching`}),`.`]}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`itemId`}),`: the product `,_jsx(_components.code,{children:`productId`}),`, pack `,_jsx(_components.code,{children:`id`}),` or free item `,_jsx(_components.code,{children:`itemId`}),`; omitted for `,_jsx(_components.code,{children:`catalog.refreshAt`}),` and a trigger’s `,_jsx(_components.code,{children:`nextResetAt`}),`. `,_jsx(_components.code,{children:`receivedValue`}),`: the reset time you sent, as an RFC 3339 UTC timestamp.`]})]})]})]}),_jsxs(_components.p,{children:[`When several packs have the same conflict, the event names the first by `,_jsx(_components.code,{children:`id`}),` in sort order. Once you fix it, a later window names the next pack still affected.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timeMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`When Stash saw the conflict, in milliseconds since the Unix epoch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`conflict`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`What contradicts what: one of the values above.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`itemId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The pack `,_jsx(_components.code,{children:`id`}),`, free item `,_jsx(_components.code,{children:`itemId`}),` or product `,_jsx(_components.code,{children:`productId`}),` the conflict is about.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`configuredValue`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The value configured for your shop.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`receivedValue`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The value your catalog sent.`})]})]})]}),_jsx(_components.p,{children:`A field the conflict does not use is omitted. Every value is one you sent in your catalog or one configured for your shop.`}),_jsx(CodeBlock,{filename:`Catalog Data Conflict Event`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG_DATA_CONFLICT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"catalogDataConflict\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conflict\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FREE_OFFER_ID_NOT_MATCHED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"configuredValue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily_gift\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"receivedValue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily_gift_v2\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CATALOG_TEXT_FALLBACK`,id:`catalog_text_fallback`,children:[_jsxs(_components.p,{children:[`Triggered when catalog texts on offers your webshop showed fell back to their `,_jsx(_components.code,{children:`defaultText`}),` because of their `,_jsx(_components.code,{children:`localizationKey`}),` (see `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/localization-and-text#localization`,children:`Localization`}),`). The offers are still shown; the event tells you which keys to fix.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{style:{textAlign:`left`},children:`What happened`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"KEY_UNKNOWN\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`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 `,_jsx(_components.code,{children:`defaultText`}),`. Usually a mistyped key, or an offer published before its localization row was imported.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`\"TRANSLATION_MISSING\"`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The key has an English entry but none in the player’s language, so `,_jsx(_components.code,{children:`defaultText`}),` showed in an otherwise translated page. `,_jsx(_components.code,{children:`locale`}),` names the language.`]})]})]})]}),_jsx(_components.p,{children:`Keys are matched exactly, including case.`}),_jsxs(_components.p,{children:[`You get at most 1 event per shop in each clock hour (UTC). Unlike `,_jsx(_components.code,{children:`CATALOG_ITEMS_DROPPED`}),`, whose `,_jsx(_components.code,{children:`items`}),` describe one page load, `,_jsx(_components.code,{children:`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: `,_jsx(_components.code,{children:`keyUnknownCount`}),` and `,_jsx(_components.code,{children:`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 `,_jsx(_components.a,{href:`/guides/stash-webshop/catalog/real-time-catalog/caching`,children:`Caching`}),`).`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timeMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`When the page load that sent this event happened, in milliseconds since the Unix epoch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`windowStartMillis`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Start of the period the event covers, in milliseconds since the Unix epoch.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`occurrences`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Page loads with at least 1 text that fell back, from `,_jsx(_components.code,{children:`windowStartMillis`}),` to `,_jsx(_components.code,{children:`timeMillis`}),`. Counted on the Stash server that sent the event, so treat it as a minimum.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`keyUnknownCount`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Distinct keys with `,_jsx(_components.code,{children:`KEY_UNKNOWN`}),` in that period. A minimum; may exceed the entries in `,_jsx(_components.code,{children:`texts`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`translationMissingCount`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Distinct pairs of key and `,_jsx(_components.code,{children:`locale`}),` with `,_jsx(_components.code,{children:`TRANSLATION_MISSING`}),` in that period. A minimum; may exceed the entries in `,_jsx(_components.code,{children:`texts`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`texts`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`array`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Up to 20 entries, `,_jsx(_components.code,{children:`KEY_UNKNOWN`}),` first, then `,_jsx(_components.code,{children:`TRANSLATION_MISSING`}),`. Always present.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`truncated`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`boolean`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`true`}),` when there were more texts than `,_jsx(_components.code,{children:`texts`}),` holds.`]})]})]})]}),_jsxs(_components.p,{children:[`Each entry in `,_jsx(_components.code,{children:`texts`}),` names one key once per reason and language, at the first place it was found:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`\"KEY_UNKNOWN\"`}),` or `,_jsx(_components.code,{children:`\"TRANSLATION_MISSING\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`localizationKey`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`localizationKey`}),` you sent, cut to 512 bytes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`locale`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The player’s language, for example `,_jsx(_components.code,{children:`\"nl-NL\"`}),`. Only on `,_jsx(_components.code,{children:`TRANSLATION_MISSING`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`itemId`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Your ID for the item the text is on: the `,_jsx(_components.code,{children:`productId`}),` of a `,_jsx(_components.code,{children:`product`}),` or of a pack’s price point, the `,_jsx(_components.code,{children:`id`}),` of a pack for the pack’s own texts, the `,_jsx(_components.code,{children:`itemId`}),` of an `,_jsx(_components.code,{children:`info`}),` or `,_jsx(_components.code,{children:`free`}),` item, or the first link’s `,_jsx(_components.code,{children:`productId`}),` for a `,_jsx(_components.code,{children:`chain`}),`. Omitted for a text outside any item.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`guid`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(_components.code,{children:`guid`}),` you sent for the item.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`path`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string (optional)`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Where the text is, in your catalog’s field names, relative to the item (`,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`contents[2].name`}),`, `,_jsx(_components.code,{children:`textSlots.Title`}),`, `,_jsx(_components.code,{children:`items[1].name`}),` in a pack), or from the response root for a text outside any item (`,_jsx(_components.code,{children:`catalog.sections[0].header`}),`, `,_jsx(_components.code,{children:`catalog.banner.title`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`textOmitted`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`boolean`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`true`}),` when `,_jsx(_components.code,{children:`defaultText`}),` was empty too, so nothing showed.`]})]})]})]}),_jsx(CodeBlock,{filename:`Catalog Text Fallback Event`,numberOfLines:`38`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`38`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATALOG_TEXT_FALLBACK\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shopId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your-shop-uuid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"catalogTextFallback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timeMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700003600000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"windowStartMillis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1700000000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"occurrences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keyUnknownCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"translationMissingCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"texts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KEY_UNKNOWN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"localizationKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"offer.starter.titel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_499\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter-guid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"textSlots.Title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"textOmitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRANSLATION_MISSING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"localizationKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"offer.starter.title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nl-NL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"starter_499\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"textOmitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TRANSLATION_MISSING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"localizationKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"section.daily\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nl-NL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"catalog.sections[0].header\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"textOmitted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"truncated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`common-fields`,children:`Common fields`}),`\n`,_jsxs(_components.p,{children:[`Several fields appear across multiple webhook types. Only `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`environment`}),` and `,_jsx(_components.code,{children:`shopId`}),` are on every v1 event; check the event’s example above for the rest.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Event type identifier (e.g. `,_jsx(_components.code,{children:`\"PURCHASE_SUCCEEDED\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`environment`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Environment that sent the webhook. Always present. `,_jsx(_components.code,{children:`\"test\"`}),` or `,_jsx(_components.code,{children:`\"production\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shopId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ID of the shop that sent the event. Always present on v1 events.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`External user identifier from your system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`regionCode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Unicode CLDR region code (e.g. `,_jsx(_components.code,{children:`\"US\"`}),`, `,_jsx(_components.code,{children:`\"FR\"`}),`) based on user location.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ipAddress`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`User’s IP address when the event occurred.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timeMillis`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[`When the event happened, in milliseconds since the Unix epoch. Present on `,_jsx(_components.code,{children:`PURCHASE_SUCCEEDED`}),`, `,_jsx(_components.code,{children:`PURCHASE_REFUNDED`}),`, `,_jsx(_components.code,{children:`FREE_ITEM_REDEEMED`}),`, `,_jsx(_components.code,{children:`MUTATE_CART`}),`, `,_jsx(_components.code,{children:`LOYALTY_MILESTONE_CLAIMED`}),`, `,_jsx(_components.code,{children:`CATALOG_REJECTED`}),`, `,_jsx(_components.code,{children:`CATALOG_ITEMS_DROPPED`}),`, `,_jsx(_components.code,{children:`CATALOG_DATA_CONFLICT`}),` and `,_jsx(_components.code,{children:`CATALOG_TEXT_FALLBACK`}),`. Not on the view and click events.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`checkoutSessionId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`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 `,_jsx(_components.code,{children:`analyticsConsent`}),` is `,_jsx(_components.code,{children:`\"DECLINED\"`}),` or `,_jsx(_components.code,{children:`\"UNANSWERED\"`}),`. See `,_jsx(_components.a,{href:`#webshop-session`,children:`Webshop session`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`analyticsConsent`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The player’s answer to your webshop’s analytics consent banner: `,_jsx(_components.code,{children:`\"ACCEPTED\"`}),`, `,_jsx(_components.code,{children:`\"DECLINED\"`}),` or `,_jsx(_components.code,{children:`\"UNANSWERED\"`}),`. On `,_jsx(_components.code,{children:`VIEW_ITEM`}),`, `,_jsx(_components.code,{children:`VIEW_CATALOG_SECTION`}),` and `,_jsx(_components.code,{children:`BUY_NOW_ITEM_CLICK`}),`; omitted when no answer was reported. See `,_jsx(_components.a,{href:`#analytics-consent`,children:`Analytics consent`}),`.`]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`subscription-events-v2`,children:`Subscription Events (v2)`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Subscription webhooks use a `,_jsx(_components.strong,{children:`v2 payload format`}),` with lowercase dot-notation\nevent types, unlike the v1 format used by purchase and webshop events above.`]})}),`\n`,_jsxs(_components.p,{children:[`Subscription events notify your system of subscription lifecycle changes. See the `,_jsx(_components.a,{href:`/guides/stash-pay/subscriptions/about`,children:`Subscriptions guide`}),` for full integration details.`]}),`\n`,_jsx(Heading,{level:`3`,id:`available-subscription-events`,children:`Available subscription events`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event Type`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Trigger`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.created`})}),_jsx(_components.td,{children:`New subscription created`}),_jsx(_components.td,{children:`Player completes subscription checkout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.updated`})}),_jsx(_components.td,{children:`Subscription changed`}),_jsx(_components.td,{children:`Plan or status was modified`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.canceled`})}),_jsx(_components.td,{children:`Subscription canceled`}),_jsx(_components.td,{children:`Player cancels their subscription`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.reactivated`})}),_jsx(_components.td,{children:`Subscription reactivated`}),_jsx(_components.td,{children:`Canceled subscription was reactivated before expiration`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.expired`})}),_jsx(_components.td,{children:`Subscription expired`}),_jsx(_components.td,{children:`Subscription reached terminal state`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.payment_failed`})}),_jsx(_components.td,{children:`Payment failed`}),_jsxs(_components.td,{children:[`Renewal payment attempt failed; subscription enters `,_jsx(_components.code,{children:`past_due`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription.payment_succeeded`})}),_jsx(_components.td,{children:`Payment succeeded`}),_jsx(_components.td,{children:`Renewal payment processed successfully`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`v2-payload-structure`,children:`v2 Payload structure`}),`\n`,_jsx(_components.p,{children:`Subscription webhooks use a different structure from v1 events:`}),`\n`,_jsx(CodeBlock,{filename:`v2 Webhook Structure`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.event_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Subscription object`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`detailed-subscription-payloads`,children:`Detailed subscription payloads`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`created`,id:`created`,children:[_jsx(_components.p,{children:`Triggered when a new subscription is created.`}),_jsx(CodeBlock,{filename:`subscription.created`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`updated`,id:`updated`,children:[_jsx(_components.p,{children:`Triggered when a subscription’s plan or status changes.`}),_jsx(CodeBlock,{filename:`subscription.updated`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`canceled`,id:`canceled`,children:[_jsx(_components.p,{children:`Triggered when a player cancels their subscription.`}),_jsx(CodeBlock,{filename:`subscription.canceled`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.canceled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"canceled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-15T14:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`reactivated`,id:`reactivated`,children:[_jsx(_components.p,{children:`Triggered when a canceled subscription is reactivated before expiration.`}),_jsx(CodeBlock,{filename:`subscription.reactivated`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.reactivated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`expired`,id:`expired`,children:[_jsx(_components.p,{children:`Triggered when a subscription reaches its terminal state.`}),_jsx(CodeBlock,{filename:`subscription.expired`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-15T14:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`payment_failed`,id:`payment_failed`,children:[_jsxs(_components.p,{children:[`Triggered when a renewal payment attempt fails. The subscription enters `,_jsx(_components.code,{children:`past_due`}),` status and Stash will retry. The `,_jsx(_components.code,{children:`reason`}),` field gives a normalized failure reason; see `,_jsx(_components.a,{href:`/guides/stash-pay/subscriptions/integration#testing-payment-declines-and-reasons`,children:`Testing payment declines and reasons`}),` for the full list of values and test cards.`]}),_jsx(CodeBlock,{filename:`subscription.payment_failed`,numberOfLines:`22`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.payment_failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"past_due\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient_funds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"retry_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-03T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-03-02T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`payment_succeeded`,id:`payment_succeeded`,children:[_jsx(_components.p,{children:`Triggered when a renewal payment is processed successfully.`}),_jsx(CodeBlock,{filename:`subscription.payment_succeeded`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.payment_succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plan_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plan_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trial_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_end_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"next_billing_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel_at_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canceled_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`subscription-object-fields`,children:`Subscription object fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for the subscription.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_account_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Identifier for the player/user.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`plan_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Plan identifier.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`past_due`}),`, `,_jsx(_components.code,{children:`canceled`}),`, or `,_jsx(_components.code,{children:`expired`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`period`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Billing period with `,_jsx(_components.code,{children:`value`}),` (integer) and `,_jsx(_components.code,{children:`unit`}),` (`,_jsx(_components.code,{children:`day`}),` / `,_jsx(_components.code,{children:`week`}),` / `,_jsx(_components.code,{children:`month`}),` / `,_jsx(_components.code,{children:`year`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_end`})}),_jsx(_components.td,{children:`string (nullable)`}),_jsx(_components.td,{children:`ISO 8601 timestamp when trial ends.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`access_end_date`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp when access expires.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`current_period_end`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp for current period end.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`next_billing_date`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp for next billing attempt.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cancel_at_period_end`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether cancellation is scheduled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceled_at`})}),_jsx(_components.td,{children:`string (nullable)`}),_jsx(_components.td,{children:`ISO 8601 timestamp when canceled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`created_at`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`ISO 8601 timestamp when created.`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`payment-events-v2`,children:`Payment Events (v2)`}),`\n`,_jsxs(_components.p,{children:[`Payment webhooks notify your backend about individual payment outcomes. They use the same v2 payload format as subscription events (`,_jsx(_components.code,{children:`type`}),` + `,_jsx(_components.code,{children:`data`}),`). These events fire for subscription payments and other Stash Pay checkout flows.`]}),`\n`,_jsx(Heading,{level:`3`,id:`available-payment-events`,children:`Available payment events`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event Type`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Trigger`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment.succeeded`})}),_jsx(_components.td,{children:`Payment completed successfully`}),_jsx(_components.td,{children:`A payment is captured`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment.failed`})}),_jsx(_components.td,{children:`Payment attempt failed`}),_jsx(_components.td,{children:`A payment is declined or fails`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment.refunded`})}),_jsx(_components.td,{children:`Payment was refunded`}),_jsx(_components.td,{children:`A refund is processed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dispute.opened`})}),_jsx(_components.td,{children:`Dispute opened`}),_jsx(_components.td,{children:`A cardholder disputes a payment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dispute.closed`})}),_jsx(_components.td,{children:`Dispute closed`}),_jsxs(_components.td,{children:[`A dispute is resolved (includes `,_jsx(_components.code,{children:`won`}),` boolean)`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`detailed-payment-payloads`,children:`Detailed payment payloads`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`payment.succeeded`,id:`payment-succeeded`,children:[_jsx(_components.p,{children:`Triggered when a payment completes successfully.`}),_jsx(CodeBlock,{filename:`payment.succeeded`,numberOfLines:`16`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment.succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"succeeded_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tax\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tax_inclusive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer-value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`payment.failed`,id:`payment-failed`,children:[_jsxs(_components.p,{children:[`Triggered when a payment attempt fails. The `,_jsx(_components.code,{children:`reason`}),` field gives a normalized failure reason; see `,_jsx(_components.a,{href:`/guides/stash-pay/subscriptions/integration#testing-payment-declines-and-reasons`,children:`Testing payment declines and reasons`}),` for the full list of values and test cards.`]}),_jsx(CodeBlock,{filename:`payment.failed`,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment.failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_abc456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient_funds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tax\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tax_inclusive\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer-value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`payment.refunded`,id:`payment-refunded`,children:[_jsx(_components.p,{children:`Triggered when a payment is refunded.`}),_jsx(CodeBlock,{filename:`payment.refunded`,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment.refunded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_abc789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"refunded_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_refunded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer-value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`dispute.opened`,id:`dispute-opened`,children:[_jsx(_components.p,{children:`Triggered when a dispute is opened.`}),_jsx(CodeBlock,{filename:`dispute.opened`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dispute.opened\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_disputed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"custom-value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`dispute.closed`,id:`dispute-closed`,children:[_jsxs(_components.p,{children:[`Triggered when a dispute is closed. The `,_jsx(_components.code,{children:`won`}),` field indicates whether you won the dispute.`]}),_jsx(CodeBlock,{filename:`dispute.closed`,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dispute.closed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pay_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"won\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"player_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_disputed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.99\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"custom-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"custom-value\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`payment-object-fields`,children:`Payment object fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Payment identifier.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`external_account_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Identifier for the player/user.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Currency code (e.g. `,_jsx(_components.code,{children:`\"USD\"`}),`, `,_jsx(_components.code,{children:`\"EUR\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subscription_id`})}),_jsx(_components.td,{children:`string (optional)`}),_jsx(_components.td,{children:`Subscription identifier when the payment is related to a subscription.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`succeeded_at`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`ISO 8601 timestamp when payment succeeded (`,_jsx(_components.code,{children:`payment.succeeded`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_at`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`ISO 8601 timestamp when payment failed (`,_jsx(_components.code,{children:`payment.failed`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Normalized failure reason (`,_jsx(_components.code,{children:`payment.failed`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refunded_at`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`ISO 8601 timestamp when payment was refunded (`,_jsx(_components.code,{children:`payment.refunded`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax`})}),_jsx(_components.td,{children:`string (optional)`}),_jsxs(_components.td,{children:[`Tax amount as a decimal string, zero when the payment has no tax (`,_jsx(_components.code,{children:`payment.succeeded`}),` and `,_jsx(_components.code,{children:`payment.failed`}),`). If Stash cannot read the payment’s tax, both `,_jsx(_components.code,{children:`tax`}),` and `,_jsx(_components.code,{children:`tax_inclusive`}),` are absent.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tax_inclusive`})}),_jsx(_components.td,{children:`boolean (optional)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` when the item prices already include `,_jsx(_components.code,{children:`tax`}),`, as in markets where prices include VAT; `,_jsx(_components.code,{children:`false`}),` when `,_jsx(_components.code,{children:`tax`}),` is added to the item prices or is zero (`,_jsx(_components.code,{children:`payment.succeeded`}),` and `,_jsx(_components.code,{children:`payment.failed`}),`). If Stash cannot read the payment’s tax, both fields are absent.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Total payment amount as decimal string (`,_jsx(_components.code,{children:`payment.succeeded`}),` and `,_jsx(_components.code,{children:`payment.failed`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_refunded`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Total refunded amount as decimal string (`,_jsx(_components.code,{children:`payment.refunded`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_disputed`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Total disputed amount as decimal string (`,_jsx(_components.code,{children:`dispute.opened`}),` and `,_jsx(_components.code,{children:`dispute.closed`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`won`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Whether you won the dispute (`,_jsx(_components.code,{children:`dispute.closed`}),` only).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`object (optional)`}),_jsx(_components.td,{children:`Custom metadata attached to the payment.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Webhook List","description":"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.","href":"/guides/get-started/stash-webhooks/webhook-list"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Available webhooks","slug":"available-webhooks","depth":2,"children":[]},{"title":"Payload structure","slug":"payload-structure","depth":2,"children":[{"title":"Webshop session","slug":"webshop-session","depth":3,"children":[]},{"title":"Analytics consent","slug":"analytics-consent","depth":3,"children":[]}]},{"title":"Detailed payload examples","slug":"detailed-payload-examples","depth":2,"children":[]},{"title":"Common fields","slug":"common-fields","depth":2,"children":[]},{"title":"Subscription Events (v2)","slug":"subscription-events-v2","depth":2,"children":[{"title":"Available subscription events","slug":"available-subscription-events","depth":3,"children":[]},{"title":"v2 Payload structure","slug":"v2-payload-structure","depth":3,"children":[]},{"title":"Detailed subscription payloads","slug":"detailed-subscription-payloads","depth":3,"children":[]},{"title":"Subscription object fields","slug":"subscription-object-fields","depth":3,"children":[]}]},{"title":"Payment Events (v2)","slug":"payment-events-v2","depth":2,"children":[{"title":"Available payment events","slug":"available-payment-events","depth":3,"children":[]},{"title":"Detailed payment payloads","slug":"detailed-payment-payloads","depth":3,"children":[]},{"title":"Payment object fields","slug":"payment-object-fields","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/stash-gg/7a02d7154563de2a/stash-header.js"],"subdomain":"stash-gg","siteName":"Stash Documentation","title":"Webhook List - Stash Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T23:27:14.669Z","originalFileLocation":"guides/get-started/stash-webhooks/webhook-list.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Stash Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhook List - Stash Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Stash Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.stash.gg/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Webhook List - Stash Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.stash.gg/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/stash-gg/FPsFuW1MRa_lLsAE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Stash Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1e1e1e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/get-started/stash-webhooks/webhook-list.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://stash-gg.mintlify.app/#organization\",\"name\":\"Stash Documentation\",\"url\":\"https://stash-gg.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/logo/light.svg?fit=max\u0026auto=format\u0026n=I_GbdmJR4L85eJZA\u0026q=85\u0026s=c58d1a385fd52c013aef762b9f06da39\"}},{\"@type\":\"WebSite\",\"@id\":\"https://stash-gg.mintlify.app#website\",\"name\":\"Stash Documentation\",\"url\":\"https://stash-gg.mintlify.app\",\"publisher\":{\"@id\":\"https://stash-gg.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list#webpage\",\"url\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list\",\"name\":\"Webhook List\",\"description\":\"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.\",\"dateModified\":\"2026-11-25T23:27:14.669Z\",\"isPartOf\":{\"@id\":\"https://stash-gg.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://stash-gg.mintlify.app/guides/get-started/stash-studio/getting-started\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stash Webhooks\",\"item\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Webhook List\",\"item\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list#article\",\"headline\":\"Webhook List\",\"name\":\"Webhook List\",\"description\":\"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.\",\"url\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list\",\"mainEntityOfPage\":{\"@id\":\"https://stash-gg.mintlify.app/guides/get-started/stash-webhooks/webhook-list#webpage\"},\"image\":\"https://docs.stash.gg/og-image.png\",\"dateModified\":\"2026-11-25T23:27:14.669Z\",\"publisher\":{\"@id\":\"https://stash-gg.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://stash-gg.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Stash Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Stash Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/get-started/stash-webhooks/webhook-list.md","siteName":"Stash Documentation","nav":{"global":null,"tabs":[{"tab":"Integration Guides","groups":[{"group":"Introduction","pages":[{"title":"Quick Start","icon":"circle-check","href":"/guides"},{"title":"Demo Hub","icon":"rocket","href":"/guides/get-started/demo-hub"},{"title":"Stash Docs MCP","icon":"bot","href":"/guides/stash-docs-mcp"}]},{"group":"Getting Started","pages":[{"group":"Stash Studio","icon":"square-pen","pages":[{"title":"Getting Started with Stash Studio","href":"/guides/get-started/stash-studio/getting-started"},{"title":"Project Settings","href":"/guides/get-started/stash-studio/project-settings"},{"title":"Main Dashboard","href":"/guides/get-started/stash-studio/main-dashboard"},{"title":"View Logs in Stash Studio","href":"/guides/get-started/stash-studio/view-logs"},{"title":"Roles \u0026 Permissions","href":"/guides/get-started/stash-studio/roles-and-permissions"}]},{"group":"API Keys","icon":"key","pages":[{"title":"API Keys Overview","href":"/guides/get-started/stash-api-keys/overview"}]},{"group":"Stash Webhooks","icon":"link","pages":[{"title":"Stash Webhooks","href":"/guides/get-started/stash-webhooks/overview"},{"title":"Webhook Listener","description":"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.","href":"/guides/get-started/stash-webhooks/webhook-listener"},{"title":"Webhook List","href":"/guides/get-started/stash-webhooks/webhook-list"},{"title":"Webhook Retries and Idempotency","description":"Learn about webhook retry behavior, how many retries are attempted, what happens on failure, and best practices for implementing idempotent webhook handlers.","href":"/guides/get-started/stash-webhooks/retries"}]},{"title":"Test Card Numbers","icon":"credit-card","href":"/guides/get-started/test-cards"}]},{"group":"Stash Pay","pages":[{"title":"About Stash Pay","href":"/guides/stash-pay/about"},{"title":"High-Level Flow","href":"/guides/stash-pay/flow"},{"title":"Integrating Stash Pay","href":"/guides/stash-pay/integration"},{"group":"Subscriptions","pages":[{"title":"About Subscriptions","href":"/guides/stash-pay/subscriptions/about"},{"title":"Subscription Flow","href":"/guides/stash-pay/subscriptions/flow"},{"title":"Integrating Subscriptions","href":"/guides/stash-pay/subscriptions/integration"}]},{"group":"iOS / Android Integration","pages":[{"title":"Presentation Options","href":"/guides/stash-pay/ios-android-integration/presentation-options"},{"title":"Native Apps Integration","href":"/guides/stash-pay/ios-android-integration/native-apps"},{"title":"Unity Integration","href":"/guides/stash-pay/ios-android-integration/unity"},{"title":"Unreal Engine Integration","href":"/guides/stash-pay/ios-android-integration/unreal"}]},{"group":"Web Integration","pages":[{"title":"Web Apps \u0026 WebGL","href":"/guides/stash-pay/web-integration/web-apps"}]},{"group":"Features \u0026 Customizations","pages":[{"title":"Stash Pay Opt-In","href":"/guides/stash-pay/how-tos/opt-in"},{"title":"Customize the Checkout Appearance","href":"/guides/stash-pay/how-tos/customize-checkout-appearance"},{"title":"Configure Image Domains","href":"/guides/stash-pay/how-tos/image-domains"},{"title":"Link Generator","href":"/guides/stash-pay/how-tos/link-generator"},{"title":"Unity Opt-in Dialog","href":"/guides/stash-pay/how-tos/unity-opt-in-dialog"},{"title":"Managed Catalog","href":"/guides/stash-pay/how-tos/managed-catalog"}]}]},{"group":"Stash Webshop","pages":[{"title":"About Stash Webshop","href":"/guides/stash-webshop/about"},{"title":"High-Level Flow","href":"/guides/stash-webshop/flow"},{"title":"Integrating Stash Webshop","href":"/guides/stash-webshop/integration"},{"group":"Catalog Management","pages":[{"title":"Catalog Management","href":"/guides/stash-webshop/catalog/catalog-management"},{"title":"Managed Catalog","href":"/guides/stash-webshop/catalog/managed-catalog"},{"group":"Real-time Catalog","pages":[{"title":"Real-time Catalog","href":"/guides/stash-webshop/catalog/real-time-catalog"},{"title":"Endpoints","href":"/guides/stash-webshop/catalog/real-time-catalog/endpoints"},{"title":"Payment Flow","href":"/guides/stash-webshop/catalog/real-time-catalog/payment-flow"},{"title":"Catalog Items and Prices","href":"/guides/stash-webshop/catalog/real-time-catalog/items-and-prices"},{"title":"Free Items and Streaks","href":"/guides/stash-webshop/catalog/real-time-catalog/free-items"},{"title":"Localization and Text","href":"/guides/stash-webshop/catalog/real-time-catalog/localization-and-text"},{"title":"Offer Templates","href":"/guides/stash-webshop/catalog/real-time-catalog/offer-templates"},{"title":"Drop Rate Compliance","href":"/guides/stash-webshop/catalog/real-time-catalog/drop-rates"},{"title":"Caching","href":"/guides/stash-webshop/catalog/real-time-catalog/caching"}]}]},{"group":"Player Authentication","pages":[{"title":"Authentication Methods","href":"/guides/stash-webshop/player-authentication/authentication-methods"},{"title":"Authentication Providers","href":"/guides/stash-webshop/player-authentication/authentication-providers"},{"title":"Account Linking","href":"/guides/stash-webshop/player-authentication/account-linking"}]},{"group":"Features \u0026 Customizations","pages":[{"title":"Customize the Webshop Appearance","href":"/guides/stash-webshop/how-tos/customize-webshop-appearance"},{"title":"Create and Edit Promo Codes","href":"/guides/stash-webshop/how-tos/create-promo-codes"},{"group":"Loyalty Program","pages":[{"title":"Loyalty Program","href":"/guides/stash-webshop/how-tos/loyalty"},{"title":"Reward Types","href":"/guides/stash-webshop/how-tos/loyalty/reward-types"},{"title":"Tiers","href":"/guides/stash-webshop/how-tos/loyalty/tiers"},{"title":"Milestones \u0026 Rewards","href":"/guides/stash-webshop/how-tos/loyalty/milestones"},{"title":"Milestone SKU Rewards","href":"/guides/stash-webshop/how-tos/loyalty/milestone-sku-rewards"},{"title":"Configure in Stash Studio","href":"/guides/stash-webshop/how-tos/loyalty/configuration"},{"title":"Analytics \u0026 App Integration","href":"/guides/stash-webshop/how-tos/loyalty/analytics-app-integration"},{"title":"Refunds \u0026 XP Adjustments","href":"/guides/stash-webshop/how-tos/loyalty/refunds-and-xp"}]},{"title":"Web Shop Maintenance Mode","href":"/guides/stash-webshop/how-tos/webshop-maintenance-mode"}]}]},{"group":"Stash Launcher","pages":[{"title":"About Stash Launcher","href":"/guides/stash-launcher/about"},{"title":"Launcher Concepts","href":"/guides/stash-launcher/launcher-concepts"},{"title":"Integrating Stash Launcher","href":"/guides/stash-launcher/integration"},{"group":"Build Management","pages":[{"title":"Manage Builds, Releases, and Channels","href":"/guides/stash-launcher/build-management/build-management"},{"title":"Stash CLI","href":"/guides/stash-launcher/build-management/stash-cli"}]},{"group":"Features \u0026 Customizations","pages":[{"title":"Customize Your Launcher's Appearance","href":"/guides/stash-launcher/how-tos/customize-launcher-appearance"},{"title":"Launcher Maintenance Mode","href":"/guides/stash-launcher/how-tos/launcher-maintenance-mode"}]}]}]},{"tab":"API Reference","dropdowns":[{"dropdown":"Ingress","groups":[{"group":"Overview","pages":[{"title":"Getting Started","href":"/api/ingress"}]},{"group":"Catalog","pages":[{"title":"Abort offers","deprecated":null,"version":null,"sidebarTitle":"Abort offers","openapi":"/ingress-openapi.json post /sdk/server/catalog/offer-aborts/abort","href":"/api/ingress/catalog/abortoffers"},{"title":"Force refresh catalog","deprecated":null,"version":null,"sidebarTitle":"Force refresh catalog","openapi":"/ingress-openapi.json post /sdk/server/catalog/force-refresh","href":"/api/ingress/catalog/forcerefreshcatalog"},{"title":"List offer aborts","deprecated":null,"version":null,"sidebarTitle":"List offer aborts","openapi":"/ingress-openapi.json post /sdk/server/catalog/offer-aborts/list","href":"/api/ingress/catalog/listofferaborts"},{"title":"Un-abort offers","deprecated":null,"version":null,"sidebarTitle":"Un-abort offers","openapi":"/ingress-openapi.json post /sdk/server/catalog/offer-aborts/unabort","href":"/api/ingress/catalog/unabortoffers"}]},{"group":"Localization","pages":[{"title":"Refresh localizations","deprecated":null,"version":null,"sidebarTitle":"Refresh localizations","openapi":"/ingress-openapi.json post /sdk/studio/{shopId}/localizations/refresh","href":"/api/ingress/localization/refreshlocalizations"}]},{"group":"Loyalty","pages":[{"title":"Get loyalty program configuration","deprecated":null,"version":null,"sidebarTitle":"Get loyalty program configuration","openapi":"/ingress-openapi.json get /sdk/studio/{shopId}/loyalty","href":"/api/ingress/loyalty/getloyalty"},{"title":"Get loyalty configuration","deprecated":null,"version":null,"sidebarTitle":"Get loyalty configuration","openapi":"/ingress-openapi.json get /sdk/studio/{shopId}/loyalty/config","href":"/api/ingress/loyalty/getloyaltyconfig"},{"title":"Get a player's loyalty standing","deprecated":null,"version":null,"sidebarTitle":"Get a player's loyalty standing","openapi":"/ingress-openapi.json get /sdk/studio/{shopId}/loyalty/players/{playerId}","href":"/api/ingress/loyalty/getplayerloyalty"},{"title":"Configure a loyalty season","deprecated":null,"version":null,"sidebarTitle":"Configure a loyalty season","openapi":"/ingress-openapi.json put /sdk/studio/{shopId}/loyalty/config","href":"/api/ingress/loyalty/updateloyaltyconfig"}]},{"group":"Payments","pages":[{"title":"Get payment event by ID","deprecated":null,"version":null,"sidebarTitle":"Get payment event by ID","openapi":"/ingress-openapi.json get /sdk/server/payment/{id}","href":"/api/ingress/payments/getpaymentevent"}]},{"group":"Pricing","pages":[{"title":"Convert prices","deprecated":null,"version":null,"sidebarTitle":"Convert prices","openapi":"/ingress-openapi.json post /sdk/server/prices/convert","href":"/api/ingress/pricing/convertprices"},{"title":"Get prices","deprecated":null,"version":null,"sidebarTitle":"Get prices","openapi":"/ingress-openapi.json get /sdk/server/prices","href":"/api/ingress/pricing/getprices"}]},{"group":"Reports","pages":[{"title":"List report files","deprecated":null,"version":null,"sidebarTitle":"List report files","openapi":"/ingress-openapi.json post /sdk/studio/{shopId}/reports/files","href":"/api/ingress/reports/listreportfiles"}]},{"group":"Server URLs","pages":[{"title":"Generate authenticated URL","deprecated":null,"version":null,"sidebarTitle":"Generate authenticated URL","openapi":"/ingress-openapi.json post /sdk/server/generate_url","href":"/api/ingress/server-urls/generateauthenticatedurl"}]},{"group":"Stash Pay","pages":[{"title":"Generate Checkout","deprecated":null,"version":null,"sidebarTitle":"Generate Checkout","openapi":"/ingress-openapi.json post /sdk/server/checkout_links/generate_quick_pay_url","href":"/api/ingress/stash-pay/generatequickpayurl"}]},{"group":"Subscription Checkout Links","pages":[{"title":"Create a subscription change checkout link","deprecated":null,"version":null,"sidebarTitle":"Create a subscription change checkout link","openapi":"/ingress-openapi.json post /sdk/subscriptions/{subscriptionId}/change-checkout-links","href":"/api/ingress/subscription-checkout-links/createsubscriptionchangecheckoutlink"},{"title":"Create a subscription checkout link","deprecated":null,"version":null,"sidebarTitle":"Create a subscription checkout link","openapi":"/ingress-openapi.json post /sdk/subscriptions/checkout-links","href":"/api/ingress/subscription-checkout-links/createsubscriptioncheckoutlink"}]},{"group":"Subscription Plans","pages":[{"title":"Get plan by ID","deprecated":null,"version":null,"sidebarTitle":"Get plan by ID","openapi":"/ingress-openapi.json get /sdk/plans/{planId}","href":"/api/ingress/subscription-plans/getplan"},{"title":"Get plan by code","deprecated":null,"version":null,"sidebarTitle":"Get plan by code","openapi":"/ingress-openapi.json get /sdk/plans/code/{code}","href":"/api/ingress/subscription-plans/getplanbycode"},{"title":"List plans","deprecated":null,"version":null,"sidebarTitle":"List plans","openapi":"/ingress-openapi.json get /sdk/plans","href":"/api/ingress/subscription-plans/listplans"}]},{"group":"Subscriptions","pages":[{"title":"Cancel subscription","deprecated":null,"version":null,"sidebarTitle":"Cancel subscription","openapi":"/ingress-openapi.json post /sdk/subscriptions/{id}/cancel","href":"/api/ingress/subscriptions/cancelsubscription"},{"title":"Get payments by subscription ID","deprecated":null,"version":null,"sidebarTitle":"Get payments by subscription ID","openapi":"/ingress-openapi.json get /sdk/subscriptions/{id}/payments","href":"/api/ingress/subscriptions/getpaymentsbysubscriptionid"},{"title":"Get subscription by ID","deprecated":null,"version":null,"sidebarTitle":"Get subscription by ID","openapi":"/ingress-openapi.json get /sdk/subscriptions/{id}","href":"/api/ingress/subscriptions/getsubscription"},{"title":"List subscriptions","deprecated":null,"version":null,"sidebarTitle":"List subscriptions","openapi":"/ingress-openapi.json get /sdk/subscriptions","href":"/api/ingress/subscriptions/listsubscriptions"},{"title":"Reactivate subscription","deprecated":null,"version":null,"sidebarTitle":"Reactivate subscription","openapi":"/ingress-openapi.json post /sdk/subscriptions/{id}/reactivate","href":"/api/ingress/subscriptions/reactivatesubscription"},{"title":"Update subscription","deprecated":null,"version":null,"sidebarTitle":"Update subscription","openapi":"/ingress-openapi.json post /sdk/subscriptions/{id}","href":"/api/ingress/subscriptions/updatesubscription"}]},{"group":"User Preferences","pages":[{"title":"Get user preferences","deprecated":null,"version":null,"sidebarTitle":"Get user preferences","openapi":"/ingress-openapi.json get /sdk/server/user_preferences/{userId}","href":"/api/ingress/user-preferences/getuserpreferences"},{"title":"Set user preferences","deprecated":null,"version":null,"sidebarTitle":"Set user preferences","openapi":"/ingress-openapi.json post /sdk/server/user_preferences/{userId}","href":"/api/ingress/user-preferences/setuserpreferences"}]},{"group":"Web Shop","pages":[{"title":"Get maintenance mode","deprecated":null,"version":null,"sidebarTitle":"Get maintenance mode","openapi":"/ingress-openapi.json get /sdk/server/shop/maintenance","href":"/api/ingress/web-shop/getmaintenancemode"},{"title":"Set maintenance mode","deprecated":null,"version":null,"sidebarTitle":"Set maintenance mode","openapi":"/ingress-openapi.json post /sdk/server/shop/maintenance","href":"/api/ingress/web-shop/setmaintenancemode"}]},{"group":"Webshop Account Linking","pages":[{"title":"Approve custom login","deprecated":null,"version":null,"sidebarTitle":"Approve custom login","openapi":"/ingress-openapi.json post /sdk/custom_login/approve","href":"/api/ingress/webshop-account-linking/approvecustomlogin"},{"title":"Decline custom login","deprecated":null,"version":null,"sidebarTitle":"Decline custom login","openapi":"/ingress-openapi.json post /sdk/custom_login/decline","href":"/api/ingress/webshop-account-linking/declinecustomlogin"},{"title":"Force Logout user","deprecated":null,"version":null,"sidebarTitle":"Force Logout user","openapi":"/ingress-openapi.json post /sdk/server/custom_login/logout","href":"/api/ingress/webshop-account-linking/logoutuser"}]}]},{"dropdown":"Egress","groups":[{"group":"Overview","pages":[{"title":"Getting Started","href":"/api/egress"}]},{"group":"Catalog","pages":[{"title":"Get product catalog","deprecated":null,"version":null,"sidebarTitle":"Get product catalog","playground":"simple","openapi":"/egress-openapi.json get /api/v1/catalog","href":"/api/egress/catalog/getcatalog"},{"title":"Get offer details","deprecated":null,"version":null,"sidebarTitle":"Get offer details","playground":"simple","openapi":"/egress-openapi.json get /api/v1/catalog/offer","href":"/api/egress/catalog/getofferdetails"}]},{"group":"Players","pages":[{"title":"Get player by ID","deprecated":null,"version":null,"sidebarTitle":"Get player by ID","playground":"simple","openapi":"/egress-openapi.json get /api/v1/player","href":"/api/egress/players/getplayer"}]},{"group":"Purchase","pages":[{"title":"Cancel pending payment","deprecated":null,"version":null,"sidebarTitle":"Cancel pending payment","playground":"simple","openapi":"/egress-openapi.json post /api/v1/purchase/cancel","href":"/api/egress/purchase/cancelpayment"},{"title":"Confirm payment completion","deprecated":null,"version":null,"sidebarTitle":"Confirm payment completion","playground":"simple","openapi":"/egress-openapi.json post /api/v1/purchase/confirm","href":"/api/egress/purchase/confirmpayment"},{"title":"Register payment intent","deprecated":null,"version":null,"sidebarTitle":"Register payment intent","playground":"simple","openapi":"/egress-openapi.json post /api/v1/purchase/register","href":"/api/egress/purchase/registerpayment"}]}]}]},{"tab":"Partner With Us","pages":[{"title":"Partner With Us","href":"/partners"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Webhook List - Stash Documentation","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}