Core API flow
Core communication flow between Supplier and Operator APIs
The entire data exchange flow goes through Hub88, because of this it's essential that an integration to either Operator API or Supplier API is built dependent on the use-case.
The data flow starts from player side, who chooses a game on online casino site (brand). This triggers calls from Operator side through Operator API to Hub88, which calls Suppliers through Supplier API, to get the necessary game contents (game_url).
Once the gameplay has started, Supplier needs to call Hub88 and update user balance based on the results and in-game activities. Hub88 then makes this data available for the Operator, which they are expected to display to the user.
If you are building the integration with Hub88 as an Operator, you can make the first requests in DEMO mode.
For DEMO mode, when calling the POST /operator/generic/v2/game/url endpoint, the Operator has to pass "currency":"XXX". Parameters token, user can be omitted. See more in Demo Gameplay.

Session timing for Supplier Integration
The player session is created only after /game/url returns a successful response. The session token passed in the /game/url request is not active until Hub88 receives a valid game URL back from the Supplier.
This means:
Suppliers must not make any Wallet API calls (
/user/balance,/transaction/bet,/transaction/win,/transaction/rollback) before returning a successful/game/urlresponse to Hub88. Doing so will result inRS_ERROR_INVALID_TOKEN.Wallet API calls should only be made after the game URL has been returned and loaded in the player's browser.
See the Supplier API Overview — Real gameplay section for the expected step-by-step flow.
Last updated
Was this helpful?

