Skip to content
GameCoinDocs
Dashboard

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.

GET/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[].purchasable is true when packs can sell the currency for real money. Such a currency has a paid part in its balances (see Wallet); a free currency such as gold only ever has a bonus part.
  • items[].price is null when the item cannot be bought with a currency. Buy an item with currency refuses such an item.
  • items[].maxOwned is the most units a player can own, or null for no limit. packs[].maxPerPlayer is the most paid orders a player can have for the pack, or null.
  • A pack's grants[].amount is credited to the paid part of the balance and grants[].bonus to the bonus part. priceCents is in euro cents, VAT included.
  • packs[].availability is null for an ordinary pack. Otherwise it gives the sale window (startsAt included, endsAt excluded), the units remaining and the founder flag: 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 with PACK_NOT_AVAILABLE or PACK_SOLD_OUT.
  • remaining is 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, so remaining can go up again.
  • prelaunch and launchAt come from the settings of the game in the dashboard (section « Lancement »). While prelaunch is true, 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.