GetCatalog response carries.
Catalog Items
Each catalog item is exactly one of five types (a protobufoneof; the JSON key is in parentheses):
For the full field-level structure of each type, including pricing, contents, expiration, attributes, and offer chain link details, see the GetCatalog API Reference.
Stash skips an item whose type it does not recognize and renders the rest of the catalog.
Prices
EachPurchasableItem carries one price, set in one of two ways:
When you send
amount:
centsis an integer in the currency’s minor units:199inUSDis $1.99, and300inJPYis ¥300. The number of decimal places per currency follows your shop’s minor-unit standard.centsmust be greater than0. To give an item away, use aFreeItem.- Use one currency for all priced items in a response. Stash shows one currency per shop page and leaves out priced items in any other currency.
Minor-unit standard
Each shop has one minor-unit standard. It sets the number of decimal places Stash uses for a currency when it readscents in your catalog prices and when it writes cents, tax, total and decimalPlaces in RegisterPayment, ConfirmPayment and CancelPayment requests.
The standards disagree for some currencies, for example:
A price of 5,000
COP is cents: 5000 under CLDR release 32 and cents: 500000 under the other two.
To use a standard other than the default, contact your Stash engineering partner: they can configure it for your shop.
Tax in amounts
ConfirmPayment sends the purchase’s total and tax, and says with taxInclusive whether the item prices already include the tax:
taxInclusive is always sent. It is false whenever tax is 0, including in a market where prices include VAT.
To check the amount before you grant: total, minus tax when taxInclusive is false, equals the sum of cents × quantity over the request’s items. All three are in the same minor units, set by your shop’s minor-unit standard. For one item with cents: 999 and quantity: 1:
The check does not balance for a purchase with a cash coupon: it also needs the coupon’s discount, which
ConfirmPayment does not carry.Studio price lookup
Stash looks up an imported price in the currency that is primary for the player’sregion, and takes the first match in this order:
- The player’s region and platform.
- The player’s region, from a file imported for all platforms (Universal in Studio).
USinUSD, the player’s platform.USinUSD, Universal.
If none of these exists, the item is left out of the catalog. A missing country therefore shows the US price rather than hiding the item, and a row imported for a country in a currency other than its primary one is never matched. When no platform is resolved, only Universal rows match.
To return a different price per platform or country, choose the price from the request’s
platform and region:
platformcomes from the Unity SDK session, then from the platform stored on the player’s account (theuser.platformyour backend sends on Approve custom login), then from the browser’s user agent (iPhone, iPad and iPod are iOS; Android is Android). A desktop browser has no platform unless the account has one stored, so senduser.platformwhen you link the player if prices differ by platform.regionis the most recent region your backend sent for the player, asuser.regionCodeon Approve custom login or Generate authenticated URL when the player signs in. When you send none, it is the country of the player’s IP address, orUSwhen that is unknown. It is not the country of the player’s app store account.
Purchase packs
Use apack when one offer is sold at several prices and the player buys one of them, for example the same reward at three price points. Each price point is one entry in the pack’s items (a PurchasePackItem).
Declare the values the whole offer shares once, on the pack:
A
PurchasePackItem has no expiration or refreshAt of its own, so the pack’s values govern every item in it. It can have its own maxPurchasable: the player’s remaining purchases of that price point. The lower of the item’s and the pack’s maxPurchasable applies to the item.
Purchase calls. For an item bought from a pack,
RegisterPayment, ConfirmPayment and CancelPayment carry the pack’s id as purchasePackId on that item. productId still identifies the price point.
See PurchasePack in the API reference for every field.


