Skip to main content

Agent Portal — Overview

kioskgaming_agent is a web SPA for CDN Agents in the KioskGaming ecosystem. Agents use this portal to manage shops, players, credit top-ups/withdrawals, credit distribution to shops, game mapping configuration, and broadcast/popup delivery.

Repo: kioskgaming_agent/


Role in the system​

The agent sits at the third tier in the account hierarchy:

Admin → Super Agent → Agent → Shop → Player
PortalUsers
Agent Portal (kioskgaming_agent)CDN agents — manage shops and players
Shop Portal (kioskgaming_shop)Shop owners — manage players at the shop
Player WebEnd players

The Agent Portal only calls the backend API over HTTPS. There is no direct communication between frontends.


Two wallet types for Agents​

WalletField namePurpose
Credits walletcredit_balancePrimary balance — buy credits, distribute to shops
USD online balanceonline_balance_netSeparate USD wallet — buy credits or withdraw crypto

Conversion formula: credits = USD ÷ cost_rate (cost rate set by super agent/admin).


Main features​

GroupFunctions
DashboardCredits/USD balance, shop/player stats, buy credits, distribute credits
ShopsList, create shop, suspend/unsuspend, distribute/withdraw credits
Shop detailOverview, security, credit/USD ledger, game mappings
PlayersList of players under agent shops, detail + history
TransactionsCredits ledger, CSV export
Online transactionsUSD wallet ledger, crypto withdrawal, CSV export
Provider feesView provider fee table (read-only)
Fraud indicatorsPlayer fraud flags, withdrawal analysis, resolve
CommunicationSend popup/broadcast to shop/player (when delegate permission exists)
SettingsCost rate (read-only), low balance alerts, enable 2FA

RouteLabelMobile bottom nav
/Home✅
/shopsShops✅
/playersPlayers✅
/transactionsTransactions✅
/online-transactionsOnline transactions
/provider-feesProvider fees
/fraud-indicatorsFraud indicators
/popups/sendSend popupOnly when can_delegate_popups === true
/broadcasts/sendSend broadcastOnly when can_delegate_popups === true
/settingsSettings

Documentation in this section​

PageContent
Architecture & Tech stackProject structure, dependencies, state management, deploy
Routes & PagesAll routes, components, auth flow
API integrationBackend endpoints called by Agent
Business featuresShop, credit, player, withdrawal flow details