15. Start Lotto (Common)
Use for Merchant get start lotto
Method : [Post]
Path : {{domain}}/ext/lottoStartGame/{{prefix}}/{{agentUsername}}
Content-Type : application/json
Request Body
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"language": "en",
"gameType":"thailotto",
"web": "{{whiteLabel}}"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| agentUsername | String | testag | The agent's username. |
| key | String | tnyENKDWvOkBXpvm6UZVa | The agent's unique key. |
| username | String | testagninemb01 | Users who want to play games. |
| language | String | [en, th] | Language. |
| gameType | String | home, thailotto, laoslotto, hanoylotto, baaclotto, gsblotto, pingponglotto, laoslotto_set, yeekeelotto, malaylotto, hanoylotto_set, malaylotto_set, stockkorea, stockchina, stockdowjones, stocktaiwan, stockengland, stockindia, stockhangseng, stockegypt, stocknikkei, stocksingapore, stockthai, stockgerman, stockrussia, hanoylotto hanoylotto_set, hanoylottospecial, hanoylottospecial_set, hanoylottovip, hanoylottovip_set, malaylotto, malaylotto_set, zodiaclotto, pingponglotto2,pingponglotto3,pingponglotto6 | Lottery type [**If you want to go to the home page, enter gameType = home] |
| web | String | sportbook101 | Active websites. |
Response
{
"code": 0,
"data": {
"uri": "https://test.pirate168.com/token?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6IiJ9.eyJhZ2VudGlkIjo5MCwiZXhwIjoxNjUzODI2NTUwLCJpYXQiOjE2NTI5NjI1NTAsInJvbGUiOiJ0ZXN0YTBhYXV0bzA4NTk3NjU3NTBAc3BvcnRib29rIiwic3ViIjpmYWxzZX0.i7AZRkmQUob8jTWEWl7yYEb5ZlMyv-OtkBLMo2dosYM&header=off&header=off&lottotype=thailotto&lang=th"
},
"msg": "SUCCESS"
}
| Key | Type | Example Value | Description |
|---|---|---|---|
| code | Number | 0 | Response code of API |
| msg | String | success | description of code |
| url | String | https://test.pirate168.com/token?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6IiJ9.eyJhZ2VudGlkIjo5MCwiZXhwIjoxNjUzODI2NTUwLCJpYXQiOjE2NTI5NjI1NTAsInJvbGUiOiJ0ZXN0YTBhYXV0bzA4NTk3NjU3NTBAc3BvcnRib29rIiwic3ViIjpmYWxzZX0.i7AZRkmQUob8jTWEWl7yYEb5ZlMyv-OtkBLMo2dosYM&header=off&header=off&lottotype=thailotto&lang=th | url start lotto |
Error Code
| Value | msg |
|---|---|
| 0 | Success |
| 100001 | Missing 'agent Username' field. |
| 100002 | Agent username is type string. |
| 100003 | Missing 'key' field. |
| 100004 | Key is type string. |
| 100005 | Missing 'username' field. |
| 100006 | Username is type string. |
| 100009 | Your username must be between 8 and 24 character. |
| 100012 | Key not found. |
| 100013 | Agent not found. |
| 100014 | Member not found. |
| 100026 | missing 'language' field. |
| 100037 | missing 'gameType' field. |
| 100029 | This game is currently unavailable for you, please contact your agent. |