Inquiry Game Format hp
API to check format player id. This format player id is used for hp field in topup
Path
Method | Path |
---|---|
POST | v1/legacy/index |
Test Case
Use below test case in development environment only.
game_code | Response Message | Description |
---|---|---|
103 | SUCCESS | userid|zoneid |
135 | SUCCESS | userid |
140 | SUCCESS | rolename|userid|zoneid |
127 | SUCCESS | userid|serverId |
142 | SUCCESS | rolename|serverId |
104 | INQUIRY NOT NEEDED | |
1234 | CODE NOT FOUND |
Request Body
Attributes | Type | Description | Mandatory |
---|---|---|---|
commands | String | Value: game-format-id | Yes |
username | String | Your registered phone number | Yes |
game_code | String | Game Code. See here for game_code list | Yes |
sign | String | Signature. Value: md5(username+api_key+game_code) | Yes |
{
"commands" : "game-format-id",
"username" : "123123123",
"game_code" : "103",
"sign" : "148c711ac48519014d2c361b6ebb50c2"
}
Response
Attributes | Type | Description | Mandatory |
---|---|---|---|
formatGameId | String | Player id format | Yes |
status | Double | List of status 1:Success 2:Failed | Yes |
message | String | Message | Yes |
rc | String | Response code. See response code list | Yes |
{
"data": {
"formatGameId": "[userid]",
"status": 1,
"message": "SUCCESS",
"rc": "00"
}
}
Live Testing
Request URL
https://testprepaid.mobilepulsa.net/v1/legacy/index
Request Method
Request Header
Content-Type: application/json
Body
Result
Table of Contents