Technical Integration
API Documentation
Waho Games Plugin
Introduction
This Document is to describe APIs for the Plugin application for the Waho
Games (https://wahogames.com/). We will discuss each API in detail.
API Endpoint: https://admin.wahogames.com/
Login
Request URL: https://admin.wahogames.com/api/WebPlugin/User
Method: POST
Request Information:
“CompanyKey”: “string”,
“WebUserID”: “string”,
“CurrentBalance”: Decimal
Response Information:
“Message”: “string”,
“Code”: “string”,
“AuthToken”:”string”
“IsSuccessful”: boolean,
Sample example:
Sample URL: https://admin.wahogames.com/api/WebPlugin/User
Request body:
{
“CompanyKey”: “71C076A35A10407B9BE97D8B87B56E8D”,
“WebUserID”: “1”,
“CurrentBalance”: 1500000
}
Response format:
{
“Message”: “Web user Update successfully.”,
“Code”: “https://plugin.wahogames.com/race/1?token=13BA8A4B138F47B4AB2CC555E7176D43”,
“AuthToken”: “13BA8A4B138F47B4AB2CC555E7176D43”,
“IsSuccessful”: true
}
Balance
Request: http://admin.wahogames.com/api/WebPlugin/User
Method: GET
Request Information: This token you will get from our LOGIN API with
the name of AuthToken.
“UserToken”: “string”
Response Information:
“WebUserID”: 0,
“CompanyID”: 0,
“CurrentBalance”: 0
Sample example:
Sample URL: http://admin.wahogames.com/api/WebPlugin/User
Request Param:
“UserToken”: “13BA8A4B138F47B4AB2CC555E7176D43”
Response format:
{
“WebUserID”: 2,
“CompanyID”: 36,
“CurrentBalance”: 1500000
}
Debit/Credit
Request URL: https://admin.wahogames.com/api/WebPlugin/UserAmountDebitCredit
Method: POST
Request Information:
“UserToken”: “string”,
“Amount”: 0 DECIMAL,
“Type”: 0 INT (1=DEBIT, 2=CREDIT)
Response Information:
{
“Message”: “string”,
“AuthToken”: “string”,
“IsSuccessful”: true,
“TotalAmount”: 0
}
Sample example:
Sample URL: https://admin.wahogames.com/api/WebPlugin/UserAmountDebitCredit
Request body:
{
“UserToken”: “C3B8F141874241FC927A9FE553BB5341”,
“Amount”: 508,
“Type”: 2
}
Response format:
{
“Message”: “Balance Update successfully.”,
“AuthToken”: “C3B8F141874241FC927A9FE553BB5341”,
“TotalAmount”: 14988508
}