Open API – Currency

bg-line

VirtualCurrency

/VirtualCurrency/WalletInfo
/VirtualCurrency/GenerateWallet

{
    "CCN":"TRC20", // CryptoCurrencies Network, ex) TRC20 / ERC20
    "id":"userid"
}

The address you receive in this request is the unique address of the requested ID. Simply making a request creates an address, so never make a request unless you’re actually making a deposit. If you are testing, do it with only one ID.

Response

address:string

/VirtualCurrency/Withdrawal

{
    "CCN":"TRC20" // Only TRC20
    "id":"userid",
    "pin":"123456", // A PIN number set by the user in-game
    "address":"address", // The address to receive the deposit. There's no turning back if you enter the wrong address, so be careful.
    "point": "50" // The minimum withdrawal amount is USDT 50, available in USDT 10 increments.
}

Response

totalNeedUsePoint:decimal
usePoint:decimal
totalDepositPoint:decimal
useRate:decimal
needRate:decimal
endDate:string // When the withdrawal limit expires

/VirtualCurrency/GeneratePin

{
    "id":"userid",
    "pin":"123456"
}

Response

none

/VirtualCurrency/ChangePin

{
    "id":"userid",
    "beforePin":"123456",
    "afterPin":"new1234567"
}

Response

none

/VirtualCurrency/ResetPinSendEmail

{
    "id":"userid"
    "newPin":"123456" // Not required
}

Response

email:string

/VirtualCurrency/PendingList

{
}

Response

list:Array(WithdrawalInfo)

[WithdrawalInfo]
- seq:int
- agentId:int
- agentNickname:string
- id:string
- nickname:string
- CCN:string
- address:string
- amount:decimal
- wrtime:DateTime

/VirtualCurrency/GetHistory

{
    "id":"userid",
    "type":“” // withdraw or deposit, Get all if no value
}

Response

agentName:string
nickname:string
totalDeposit:decimal
totalWithdrawal:decimal
depositHistory:Array(DepositLog)
withdrawalHistory:Array(WithdrawalLog)

[DepositLog]
- seq:int
- CCN:string
- uuid:string
- address:string
- action:string // Unfinalized or Finalized
- amount:decimal
- wrtime:DateTime

[WithdrawalLog]
- seq:int
- CCN:string
- uuid:string
- address:string
- action:string // Request or Pending or Sent or Failed or Success
- amount:decimal
- fee:decimal
- wrtime:DateTime

/VirtualCurrency/WithdrawalMinSpendRestrictionInfo

{
}

The percentage of deposit points that must be used during the set period to make a withdrawal

Response

state:string // on or off
minSpendRate:decimal // ex) 0.5 = 50%
minSpendDays:int

/VirtualCurrency/SetWithdrawalMinSpendRestriction

{
    "state":"on"
}

Response

none

/VirtualCurrency/SetWithdrawalMinSpendRestrictionRate

{
    "minSpendRate":"0.3" // 0.3 ~ 0.9
}

Response

before:decimal
after:decimal

/VirtualCurrency/SetWithdrawalMinSpendRestrictionDays

{
    "days":3
}

Response

before:decimal
after:decimal

/Payment/GetPaymentPage

{
    "id":"userid",
    "productIndex":101,
    "email":"aaa@example.com", // Email for payment receipt
    "countryCode":"US" //  ISO 3166-1 alpha-2 country codes
}

Product Index

  • 101 – 25 GamePoint
  • 102 – 50 GamePoint
  • 103 – 100 GamePoint
  • 104 – 300 GamePoint
  • 105 – 500 GamePoint
  • 106 – 700 GamePoint

Major Country Codes

  • US – United States
  • JP – Japan
  • TH – Thailand
  • PH – Philippines
  • MY – Malaysia

For other countries, please refer to the ISO 3166-1 alpha-2 country codes.

Response

url:string // Payment page URL