Catalog API
Read the active currencies, items and packs of your game from your backend with the server API.
On this page
The catalog is what your game rewards and sells: its currencies, its items and its packs. You manage it in the dashboard (« Monnaies », « Objets », « Packs »), or from your code with the catalog management API; the operation on this page only reads it. Each environment has its own catalog: the key you use decides which one you read. The examples on this page continue from the setup.
Returns the active currencies, items and packs of the game in one call. Use it to build a shop screen, or to check a sku and its price before you sell it. Archived and draft entries are left out.
/api/v1/catalog- Authenticationsecret key
- Idempotencynot needed
- Parametersnone
Response
200 OK: a Catalog.
Errors
none of its own; see the errors common to every operation.
Notes
currencies[].purchasableis true when packs can sell the currency for real money. Such a currency has apaidpart in its balances (see Wallet); a free currency such asgoldonly ever has abonuspart.items[].priceisnullwhen the item cannot be bought with a currency. Buy an item with currency refuses such an item.items[].maxOwnedis the most units a player can own, ornullfor no limit.packs[].maxPerPlayeris the most paid orders a player can have for the pack, ornull.- A pack's
grants[].amountis credited to thepaidpart of the balance andgrants[].bonusto thebonuspart.priceCentsis in euro cents, VAT included. packs[].availabilityisnullfor an ordinary pack. Otherwise it gives the sale window (startsAtincluded,endsAtexcluded), the unitsremainingand thefounderflag: see PackAvailability. The catalog also lists packs that are scheduled, ended or sold out, so that your shop can show them (coming soon, sold out); an order for such a pack is refused withPACK_NOT_AVAILABLEorPACK_SOLD_OUT.remainingis counted in the environment of the key you use: sales in the test environment never use the stock of the live environment. A pending order holds one unit until it is paid, fails or expires, soremainingcan go up again.prelaunchandlaunchAtcome from the settings of the game in the dashboard (section « Lancement »). Whileprelaunchistrue, show purchases as pre-orders and mention the launch date.- The browser reads the same data with a publishable key: Get the catalog of the client API.