Skip to content

Transfer Wallet API ​

🔥 Core Features

Provides the core Transfer Wallet mode interfaces for player login, deposit, withdrawal, order query, and balance query.


Request Basics ​

  • Endpoint: {host}/channelHandle
  • HTTP Method: GET

🔐 Authentication & Encryption ​

All interfaces require authentication and encryption. For details on the encryption method, see: Authentication Guide

💰 Wallet Mode Overview ​

🔥 Transfer Wallet / Seamless Wallet

The agent backend can configure the wallet mode for an agent, which determines whether the money parameter on the login interface takes effect, and whether the operator needs to additionally implement the Seamless Wallet interfaces:

  • Transfer Wallet: On login, the amount in the money parameter is deposited into the player's internal QK Gaming wallet; after that, cash changes during gameplay are handled directly by QK Gaming, and the operator does not need to implement the interfaces in the Seamless Wallet API. If the player is already in-game, you can also call the Transfer Wallet Deposit Interface (s:2) / Transfer Wallet Withdrawal Interface (s:3) at any time to deposit or withdraw without re-logging in.
  • Seamless Wallet: QK Gaming and the operator share the same balance. The money parameter on the login interface has no effect (no deposit needed); 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.

Regardless of the wallet mode, the agent balance always moves in sync: when cash is deposited to a player (money moving into the player's wallet), the agent balance is debited; when cash is withdrawn from a player (bet/payout), the agent balance is credited back. You can check the current balance via the Query Agent Balance Interface (s:14); deposits will fail if the agent balance is insufficient.

📋 Interface List ​

Game Login Interface (s:0) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 0)
accountString✅Player account (64 characters)
moneyNumber✅Deposit amount; pass 0 if not depositing. Not used in Seamless Wallet mode — this parameter has no effect (see Wallet Mode Overview above)
orderidString✅Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters
ipString✅Client request IP (player IP); the platform uses this to update the player's last login IP
lineCodeString❌Site identifier under the agent, used to prevent cross-site score transfer. Custom value, English letters or digits, up to 10 characters. Do not use a unique lineCode per player — the platform only writes it the first time a player's account is created, and it will not be updated on subsequent logins
KindIDInteger❌Game type ID (see Game List); note that the first letter of this parameter name is capitalized
currencyString✅Currency (see supported currency list)

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (100 = login interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.urlStringGame URL (returned on successful login)

Response example

  • Success
json
{
  "s": 100,
  "m": "/channelHandle", 
  "d": {
    "code": 0,
    "url": "https://ltg.com/index.html"
  }
}
  • Failure
json
{
  "s": 100,
  "m": "/channelHandle", 
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Query Withdrawable Balance Interface (s:1) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 1)
accountString✅Member account
currencyString✅Currency (see supported currency list)

This interface queries the player's withdrawable balance for a specific currency wallet. If you need the player's total balance instead, you can skip this interface and use the Query Player Total Balance Interface (s:7) directly.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (101 = query withdrawable balance interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.accountStringPlayer account
d.moneyFloatWithdrawable balance
d.currencyStringCurrency

Response example

  • Success
json
{
  "s": 101,
  "m": "/channelHandle",
  "d": {
    "code": 0,
    "account": "10001_test01",
    "money": 100.01,
    "currency": "CNY"
  }
}
  • Failure
json
{
  "s": 101,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Transfer Wallet Deposit Interface (s:2) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 2)
accountString✅Player account (must already be registered via the login interface)
moneyNumber✅Deposit amount
orderidString✅Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters
currencyString✅Currency (see supported currency list)

This interface deposits funds into a player's account and is only available to Transfer Wallet mode agents; see Wallet Mode Overview above for details. Agents in Seamless Wallet mode calling this interface will receive a parameter error (45). If you do not receive a response, do not retry with the same orderid — use the Query Order Interface (s:4) instead to confirm whether the deposit succeeded.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (102 = transfer wallet deposit interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.moneyFloatWithdrawable balance after the deposit
d.currencyStringCurrency deposited

Response example

  • Success
json
{
  "s": 102,
  "m": "/channelHandle",
  "d": {
    "code": 0,
    "money": 100.00,
    "currency": "CNY"
  }
}
  • Failure
json
{
  "s": 102,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Transfer Wallet Withdrawal Interface (s:3) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 3)
accountString✅Player account (must already be registered via the login interface)
moneyNumber✅Withdrawal amount, must not exceed the withdrawable balance — see Query Withdrawable Balance Interface (s:1)
orderidString✅Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters
currencyString✅Currency (see supported currency list)

This interface withdraws funds from a player's account and is only available to Transfer Wallet mode agents; see Wallet Mode Overview above for details. Agents in Seamless Wallet mode calling this interface will receive a parameter error (45). If you do not receive a response, do not retry with the same orderid — use the Query Order Interface (s:4) instead to confirm whether the withdrawal succeeded.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (103 = transfer wallet withdrawal interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.moneyFloatWithdrawable balance after the withdrawal
d.currencyStringCurrency withdrawn

Response example

  • Success
json
{
  "s": 103,
  "m": "/channelHandle",
  "d": {
    "code": 0,
    "money": 100.00,
    "currency": "CNY"
  }
}
  • Failure
json
{
  "s": 103,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Query Order Interface (s:4) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 4)
orderidString✅Transaction ID (the same orderid used in Transfer Wallet Deposit (s:2) / Transfer Wallet Withdrawal (s:3))

This interface queries the order information of a player's deposit/withdrawal, and uses the status field to determine whether it succeeded. If the transaction ID does not exist, or does not belong to a player under the calling agent, status:-1 (not found) is always returned.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (104 = query order interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.statusIntegerStatus code: -1 not found / 0 success / 2 failed / 3 processing
d.moneyFloatTransaction amount
d.currencyStringCurrency

Response example

  • Success
json
{
  "s": 104,
  "m": "/channelHandle",
  "d": {
    "code": 0,
    "status": 0,
    "money": 100.00,
    "currency": "CNY"
  }
}
  • Failure
json
{
  "s": 104,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Query Player Online Status Interface (s:5) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 5)
accountString✅Player account

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (105 = query player online status interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.statusIntegerPlayer status: -1 not found / 0 offline / 1 online / 2 suspended

Response example

  • Success
json
{
  "s": 105,
  "m": "/channelHandle",
  "d": {
    "code": 0,
    "status": 1
  }
}
  • Failure
json
{
  "s": 105,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Query Player Total Balance Interface (s:7) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 7)
accountString✅Member account
currencyString✅Currency (see supported currency list)

This interface queries the player's total in-game balance, withdrawable balance, and online status.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (107 = query player total balance interface)
mStringInterface path
dObjectData object
d.accountStringPlayer account
d.totalMoneyFloatTotal balance
d.freeMoneyFloatWithdrawable balance
d.statusIntegerPlayer status: -1 not found / 0 offline / 1 online / 2 suspended
d.gameStatusIntegerGame status: 0 not in a game / 1 in a game
d.codeIntegerResponse code

Response example

  • Success
json
{
  "s": 107,
  "m": "/channelHandle",
  "d": {
    "account": "111111",
    "totalMoney": 100,
    "freeMoney": 80,
    "status": 0,
    "gameStatus": 0,
    "code": 0
  }
}
  • Failure
json
{
  "s": 107,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Kick Player Offline Interface (s:8) ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 8)
accountString✅Member account

This interface forcibly logs an online player out.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (108 = kick player offline interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code

Response example

  • Success
json
{
  "s": 108,
  "m": "/channelHandle",
  "d": {
    "code": 0
  }
}
  • Failure
json
{
  "s": 108,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

Query Agent Balance Interface (s:14) | Optional ​

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 14)

This interface queries the agent balance. It is an optional interface, and the operator can decide whether to integrate it.

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (114 = query agent balance interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.moneyFloatAgent balance

Response example

  • Success
json
{
  "m": "/channelHandle",
  "s": 114,
  "d": {
    "code": 0,
    "money": 1000000.01
  }
}
  • Failure
json
{
  "s": 114,
  "m": "/channelHandle",
  "d": {
    "code": 15,
    "msg": "Channel verification error"
  }
}

📌 Code Reference ​

📘 Response Code Reference ​

CodeDescription
0Success
1Token missing
2Channel does not exist
3Verification timed out
5Channel whitelist error
6Verification field missing
7Token expired
8Request does not exist
11Player account does not exist
15Channel verification error
16Data does not exist
20Account disabled
22DES decryption failed
24Channel data pull time range exceeded
27Database exception
28IP disabled
36Invalid KindID
41Invalid time range for game summary statistics
42Agent disabled
43Order pulled too frequently
45Parameter error
46Invalid time range
48Game under maintenance
49Invalid language
50Invalid currency
52Account blacklisted
91Agent does not exist
92Order in progress
96Database operation error
97Invalid parameter
98Error calling API
99Unknown error