Transfer Wallet Flow
Complete business flow diagrams to help you understand the call sequence and business logic of each interface in Transfer Wallet mode. If the agent is in Seamless Wallet mode, see the Seamless Wallet Flow instead.
⚠️ "In-Game Transfers" Are Not Provided
QK Gaming does not provide an in-game transfer mechanism (i.e. proactively notifying the operator to deposit/withdraw). In Transfer Wallet mode, deposits and withdrawals are always initiated by the operator calling the deposit/withdrawal interfaces below; QK Gaming does not proactively call back the operator with deposit/withdrawal results, and there is no automatic retry mechanism — if a request times out without a response, use the Query Order Interface (s:4) instead to confirm the result, and never retry the request with the same orderid. If you want QK Gaming to proactively remind the operator to withdraw when a player leaves the game, you can use the Offline Notification (s:11); however, this notification is unrelated to deposit/withdrawal results and is only a best-effort hint.
👤 Platform Login Flow
🆚 Differences from the Seamless Wallet Login Flow
The login flow shares the same Game Login Interface (s:0) with the Seamless Wallet Flow; the differences are:
- Transfer Wallet (this page): The
moneyparameter can be passed at login to deposit directly (see the Deposit Flow below); the balance is deposited into the player's internal QK Gaming wallet at login, and cash changes during gameplay are then handled directly by QK Gaming. The operator does not need to implement the query balance / place bet / cancel bet / return balance interfaces in the Seamless Wallet API. - Seamless Wallet: The
moneyparameter is not needed and has no effect. QK Gaming and the operator share the same balance; on every bet/payout, QK Gaming calls the interfaces the operator implements per the Seamless Wallet API in real time to query/adjust the balance.
💰 Deposit Flow (money Parameter at Login / s:2)
📌 Deposit Notes
To avoid the "operator system balance" being double-deducted or becoming out of sync with the QK Gaming balance, it is recommended that operators process deposits in the following order:
- If the deduction in the operator's own system fails → cancel this deposit and do not call QK Gaming
- If the deduction in the operator's own system succeeds → then call the QK Gaming deposit interface (money parameter at login / s:2)
- If the QK Gaming interface returns failure (
code≠0) → refund the amount just deducted from the operator's system - If a network timeout occurs with no response received → wait a while (2 minutes is recommended) and then use the Query Order Interface (s:4) to confirm the result; never retry the deposit with the same
orderid
💵 Withdrawal Flow (s:3)
📌 Withdrawal Notes
- To avoid "spending funds before the withdrawal has actually succeeded", the operator should first call the QK Gaming withdrawal interface (s:3), confirm the withdrawal succeeded, and only then update its own system balance — never add the balance back to the operator's system first and wait for QK Gaming's response afterward
- The operator can use the Query Withdrawable Balance Interface (s:1) at any time to check the player's current withdrawable balance
🔍 Order Status Check Flow (s:4)
Transfer Wallet mode has no automatic retry mechanism from QK Gaming. If a deposit / withdrawal request times out with no response, follow the flow below to confirm the result with the query order interface, rather than retrying the request directly with the same
orderid.
🔔 Offline Notification (with Transfer Wallet Mode)
Transfer Wallet mode can be combined with Player Offline Logout (s:11): when a player leaves the game, QK Gaming proactively notifies the operator, and the operator can then decide when to withdraw funds (in combination with Query Player Total Balance (s:7) and Withdrawal (s:3)).
⚠️ Best-Effort Delivery, Not Instant Notification
Offline notifications are best-effort; QK Gaming does not retry failed notifications. If the operator has not configured a channel callback address (channel_host), QK Gaming will also not send this notification. This mechanism is only a hint that the operator may withdraw funds — the actual balance must still be confirmed via Query Player Total Balance (s:7). See the Notification Callback API for details.
