Skip to main content
GET
Get loyalty configuration

Authorizations

x-stash-hmac-signature
string
header
required

Versioned HMAC-SHA256 signature authenticating server-to-server SDK requests (your backend calling Stash), as opposed to client-side SDK operations. Recommended over the deprecated X-Stash-Api-Key for the best security. Header format: v1;{appId};{unixMillisTimestamp};{base64Signature} (semicolon-delimited). {base64Signature} is the base64-encoded HMAC-SHA256 of the string {unixMillisTimestamp}.{requestBody} using your app ingress secret (the ingress secret is shown base64-encoded in Studio; base64-decode it to the raw bytes used as the HMAC key), where {requestBody} is the request body exactly as you send it for POST and PUT requests (the compact canonical request JSON is also accepted) and empty for GET requests. A signature over the exact bytes verifies for bodies of up to 18 KiB (18,432 bytes); a larger body may be refused with 401 even when correctly signed. The timestamp must be within 5 minutes of Stash server time. Your appId is your immutable app identifier, shown in Stash Studio under Project Settings > App details; your ingress secret is under Project Settings > API Secrets.

Path Parameters

shopId
string
required

Shop identifier from Stash Studio

Response

A successful response.

A shop's loyalty configuration in the shape UpdateLoyaltyConfig accepts.

displayConfig
Loyalty Display Config · object

Shop-level names shown to players.

bonuses
Loyalty Bonus Definition · object[]

Every bonus defined for the shop.

products
Loyalty Reward Product · object[]

Every reward-only product the shop holds, whether created through this API or in Studio, with its status; drafts are included. Not listed: sellable catalog products, and a Studio reward product that has no SKU (external id), which the API cannot address. Resending a draft in UpdateLoyaltyConfig publishes it.

campaigns
Loyalty Campaign Config · object[]

Every campaign (season) of the program with its status, ordered by start date ascending; seasons without a start date come last.

spendConversion
Loyalty Spend Conversion · object

A shop's optional spend conversion table: one price row listing the same price point in every currency the partner sells in. Loyalty points are earned per US dollar; the table lets Stash convert a purchase in another currency to its US dollar equivalent at the ratio the row declares (the USD amount divided by the amount in that currency). Example: a 9.99 USD price point with the equivalents EUR 9.49, GBP 7.99 and JPY 1500.