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
moneyparameter 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
moneyparameter 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 0) |
| account | String | ✅ | Player account (64 characters) |
| money | Number | ✅ | Deposit amount; pass 0 if not depositing. Not used in Seamless Wallet mode — this parameter has no effect (see Wallet Mode Overview above) |
| orderid | String | ✅ | Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters |
| ip | String | ✅ | Client request IP (player IP); the platform uses this to update the player's last login IP |
| lineCode | String | ❌ | 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 |
| KindID | Integer | ❌ | Game type ID (see Game List); note that the first letter of this parameter name is capitalized |
| currency | String | ✅ | Currency (see supported currency list) |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (100 = login interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.url | String | Game URL (returned on successful login) |
Response example
- Success
{
"s": 100,
"m": "/channelHandle",
"d": {
"code": 0,
"url": "https://ltg.com/index.html"
}
}- Failure
{
"s": 100,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Query Withdrawable Balance Interface (s:1)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 1) |
| account | String | ✅ | Member account |
| currency | String | ✅ | 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
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (101 = query withdrawable balance interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.account | String | Player account |
| d.money | Float | Withdrawable balance |
| d.currency | String | Currency |
Response example
- Success
{
"s": 101,
"m": "/channelHandle",
"d": {
"code": 0,
"account": "10001_test01",
"money": 100.01,
"currency": "CNY"
}
}- Failure
{
"s": 101,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Transfer Wallet Deposit Interface (s:2)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 2) |
| account | String | ✅ | Player account (must already be registered via the login interface) |
| money | Number | ✅ | Deposit amount |
| orderid | String | ✅ | Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters |
| currency | String | ✅ | 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
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (102 = transfer wallet deposit interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.money | Float | Withdrawable balance after the deposit |
| d.currency | String | Currency deposited |
Response example
- Success
{
"s": 102,
"m": "/channelHandle",
"d": {
"code": 0,
"money": 100.00,
"currency": "CNY"
}
}- Failure
{
"s": 102,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Transfer Wallet Withdrawal Interface (s:3)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 3) |
| account | String | ✅ | Player account (must already be registered via the login interface) |
| money | Number | ✅ | Withdrawal amount, must not exceed the withdrawable balance — see Query Withdrawable Balance Interface (s:1) |
| orderid | String | ✅ | Transaction ID, format: agent ID + yyyyMMddHHmmssSSS + account, max 100 characters |
| currency | String | ✅ | 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
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (103 = transfer wallet withdrawal interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.money | Float | Withdrawable balance after the withdrawal |
| d.currency | String | Currency withdrawn |
Response example
- Success
{
"s": 103,
"m": "/channelHandle",
"d": {
"code": 0,
"money": 100.00,
"currency": "CNY"
}
}- Failure
{
"s": 103,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Query Order Interface (s:4)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 4) |
| orderid | String | ✅ | 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
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (104 = query order interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.status | Integer | Status code: -1 not found / 0 success / 2 failed / 3 processing |
| d.money | Float | Transaction amount |
| d.currency | String | Currency |
Response example
- Success
{
"s": 104,
"m": "/channelHandle",
"d": {
"code": 0,
"status": 0,
"money": 100.00,
"currency": "CNY"
}
}- Failure
{
"s": 104,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Query Player Online Status Interface (s:5)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 5) |
| account | String | ✅ | Player account |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (105 = query player online status interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.status | Integer | Player status: -1 not found / 0 offline / 1 online / 2 suspended |
Response example
- Success
{
"s": 105,
"m": "/channelHandle",
"d": {
"code": 0,
"status": 1
}
}- Failure
{
"s": 105,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Query Player Total Balance Interface (s:7)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 7) |
| account | String | ✅ | Member account |
| currency | String | ✅ | Currency (see supported currency list) |
This interface queries the player's total in-game balance, withdrawable balance, and online status.
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (107 = query player total balance interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.account | String | Player account |
| d.totalMoney | Float | Total balance |
| d.freeMoney | Float | Withdrawable balance |
| d.status | Integer | Player status: -1 not found / 0 offline / 1 online / 2 suspended |
| d.gameStatus | Integer | Game status: 0 not in a game / 1 in a game |
| d.code | Integer | Response code |
Response example
- Success
{
"s": 107,
"m": "/channelHandle",
"d": {
"account": "111111",
"totalMoney": 100,
"freeMoney": 80,
"status": 0,
"gameStatus": 0,
"code": 0
}
}- Failure
{
"s": 107,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Kick Player Offline Interface (s:8)
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 8) |
| account | String | ✅ | Member account |
This interface forcibly logs an online player out.
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (108 = kick player offline interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
Response example
- Success
{
"s": 108,
"m": "/channelHandle",
"d": {
"code": 0
}
}- Failure
{
"s": 108,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}Query Agent Balance Interface (s:14) | Optional
param Structure
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | 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
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (114 = query agent balance interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.money | Float | Agent balance |
Response example
- Success
{
"m": "/channelHandle",
"s": 114,
"d": {
"code": 0,
"money": 1000000.01
}
}- Failure
{
"s": 114,
"m": "/channelHandle",
"d": {
"code": 15,
"msg": "Channel verification error"
}
}📌 Code Reference
📘 Response Code Reference
| Code | Description |
|---|---|
| 0 | Success |
| 1 | Token missing |
| 2 | Channel does not exist |
| 3 | Verification timed out |
| 5 | Channel whitelist error |
| 6 | Verification field missing |
| 7 | Token expired |
| 8 | Request does not exist |
| 11 | Player account does not exist |
| 15 | Channel verification error |
| 16 | Data does not exist |
| 20 | Account disabled |
| 22 | DES decryption failed |
| 24 | Channel data pull time range exceeded |
| 27 | Database exception |
| 28 | IP disabled |
| 36 | Invalid KindID |
| 41 | Invalid time range for game summary statistics |
| 42 | Agent disabled |
| 43 | Order pulled too frequently |
| 45 | Parameter error |
| 46 | Invalid time range |
| 48 | Game under maintenance |
| 49 | Invalid language |
| 50 | Invalid currency |
| 52 | Account blacklisted |
| 91 | Agent does not exist |
| 92 | Order in progress |
| 96 | Database operation error |
| 97 | Invalid parameter |
| 98 | Error calling API |
| 99 | Unknown error |
