Sportbook APISportbook API
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)
  • Detail Types
  • Rate Limit
  • Error Code
  • English
  • ภาษาไทย
  • 简体中文
  • Overview
  • 1. Create User (Common)
  • 2. Change Password (Common)
  • 3. Change Status (Common)
  • 4. Redirect Login (Common)
  • 5. Get Profile And Credit (Common)
  • 6. Normal Deposit And Withdraw
  • 7. Deposit And Withdraw Pending Transaction
  • 8. Get WinLose By DepositID (Common)
  • 9. Get Bet History By DepositID (Common)
  • 10. Get WinLose And Turnover (Common)
  • 11. Get Winlose By Date
  • 12. Game List (Common)
  • 13. Start Games (Common)
  • 14. Game Detail (Common)
  • 15. Start Lotto (Common)
  • 16. Get WinLose Multi DepositID (Common)
  • 17. Report Winlose Account
  • 18. Get Provider Prefix List (Common)
  • 19. Get Game List By Provider (Common)
  • 20. Get Normal Baccarat Turnover (Common)
  • 21. Get Deposit And Withdraw Transaction (Common)
  • 22. Get Deposit And Withdraw Transaction By User (Common)
  • 23. Get Credit Agent (Common)
  • 24. Get Recently Games (Common)
  • 25. Favourite Games
  • 26. Dashboard
  • 27. Get Url Start Tournament (Common)

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}}"  
}
KeyTypeExample ValueDescription
agentUsernameStringtestagThe agent's username.
keyStringtnyENKDWvOkBXpvm6UZVaThe agent's unique key.
usernameStringtestagninemb01Users who want to play games.
languageString[en, th]Language.
gameTypeStringhome, 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,pingponglotto6Lottery type [**If you want to go to the home page, enter gameType = home]
webStringsportbook101Active 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"
}
KeyTypeExample ValueDescription
codeNumber0Response code of API
msgStringsuccessdescription of code
urlStringhttps://test.pirate168.com/token?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6IiJ9.eyJhZ2VudGlkIjo5MCwiZXhwIjoxNjUzODI2NTUwLCJpYXQiOjE2NTI5NjI1NTAsInJvbGUiOiJ0ZXN0YTBhYXV0bzA4NTk3NjU3NTBAc3BvcnRib29rIiwic3ViIjpmYWxzZX0.i7AZRkmQUob8jTWEWl7yYEb5ZlMyv-OtkBLMo2dosYM&header=off&header=off&lottotype=thailotto&lang=thurl start lotto

Error Code

Valuemsg
0Success
100001Missing 'agent Username' field.
100002Agent username is type string.
100003Missing 'key' field.
100004Key is type string.
100005Missing 'username' field.
100006Username is type string.
100009Your username must be between 8 and 48 character.
100012Key not found.
100013Agent not found.
100014Member not found.
100026missing 'language' field.
100037missing 'gameType' field.
100029This game is currently unavailable for you, please contact your agent.
Prev
14. Game Detail (Common)
Next
16. Get WinLose Multi DepositID (Common)