Skip to main content

Workflow diagram

Getting the List of Games

To retrieve the list of games, the Client (Platform) sends a request for the list of providers (Get list providers) and the list of games (Get list games).
Fungamess returns the lists of providers and games in response.

note

Retrieving the list of providers (Get list providers) is optional.
Retrieving the list of games (Get list games) is required to launch games.
The games list is necessary for displaying games to players on the platform.

Launching a Game

The Client (Front) sends a request to launch a game (Start Game).
Fungamess then sends requests for session verification (Session check), player details (Player details) and balance retrieval (Get balance).
The parameters userId and token are included in these requests.
After receiving responses to all requests, Fungamess registers the session and assigns the player to it.

note

A response to each of these requests is mandatory.
Without these responses, Fungamess cannot generate or send the game launch link.

info

If a player launches a game for the first time, a new player is created based on the response received from the Player details request.

After that, a game launch link is generated and sent to the Client (Front).
Once the Client (Platform) receives the link, the game is launched for the player.

If the Client (Platform) prefers not to display Fungamess when receiving the link, it can make a request and redirect the link through its own platform, as shown below.

Double-Checking Player Data

Fungamess may occasionally request a recheck of the player’s data, – for example, to verify the balance (Get balance).
In response, the Client (Platform) provides the requested data to Fungamess.

Placing a Bet

After the game is launched on the Client (Front) side, the player places a bet.
Fungamess receives a request to change the player's balance, processes it, generates a transaction, and sends a (Move funds) request to the Client (Platform).
The Client (Platform) processes the transaction and returns the updated balance to Fungamess.

note

Fungamess updates the player's balance after each successful transaction.

Bet result

The player's bet is placed on the Client (Front) side.
If the player wins or loses, Fungamess processes the result and generates a request to update the player's balance.
The process follows the same logic described above:
Fungamess creates a transaction, sends it to the Client (Platform), which processes it and returns the updated balance.
The player's in-game balance is then updated.