1. Round
[Game] FairPlay API
  • Getting Started
    • Introduction
    • Session and Token
    • Request and Response
    • Real-time Events (SSE)
    • Lotto Rules — หวยเฮงเฮง
    • Provably Fair
  • Player
    • Demo
      • Demo Login
    • Player Bet History
      GET
  • Common
    • Game
      • By Game Code
        • Provably Fair
          • Set Client Seed
          • Verify Result
          • Get Revealed Server Seed
        • Check Session
        • Get Balance
        • Get Provably-Fair State
      • Lobby Game List
  • Wallet
    • Wallet Status
      GET
  • Game
    • Lotto (หวยเฮงเฮง)
      • Lotto Rules
      • Rooms
        • By Room
          • Join Round
          • Place Multi-player Bet
          • Get Round Result
          • Room Event Stream
      • Tickets
        • Create Ticket
        • Inquiry My Tickets
        • Get Ticket
      • Round
        • Get My Bets
          POST
        • Get My Result
          POST
        • Get Round Provably Fair
          POST
      • Results
        • Inquiry Results
      • Get Rooms
        GET
      • Get Current Round
        POST
      • Get Pay Table
        GET
  • Appendix
    • Game List
    • Error Codes
    • Rate Limits
  • Language List
    GET
  • Ping
    GET
  • Schemas
    • DemoLoginRequest
    • DemoLoginResponse
    • DemoProfileResponse
    • ProfileResponse
    • GetHistoryResponse
    • BetRecord
    • GameInfo
    • Room
    • GetGameResponse
    • BetRequest
    • Bet
    • BetResponse
    • BetResult
    • GetProvablyFairResponse
    • SetClientSeedRequest
    • SetClientSeedResponse
    • RotateServerSeedResponse
    • VerifyResultRequest
    • VerifyResultResponse
    • GetServerSeedResponse
    • GetStatusResponse
    • JoinRoundResponse
    • PlaceMultiPlayerBetRequest
    • PlaceBetResponse
    • RoundResultResponse
    • SuccessResponse
    • ErrorResponse
  1. Round

Get My Result

POST
/gapi/v1/g/lotto/round/my-result
Returns the drawn number, the caller's settled lines and totals, and the next open round, for the won / lost screen.
Auth: Player session — Authorization: Bearer {token}
Rate limit: 300 requests per 60 s per IP (LOTTO_GET_MY_RESULT)
Games: LOTTO
Rules
Lotto only: the route is under /g/lotto, so system maintenance and Lotto's own maintenance window both answer 503 99915.
Body key is roundId (lower-case d); the next round is nextRound.roundId.
Any status other than settled means not drawn yet: number is absent, totals are 0, items is [] and nextRound is null.
A cancelled round answers cancelled with empty items; its tickets were refunded, not settled.
number is omitted until settled, while nextRound and luckyMultiplier are explicit null when empty.
Amounts (totalBet, totalReturn, netWin, amount, winAmount) are JSON numbers. totalReturn and winAmount are gross (stake included); netWin = totalReturn − totalBet, negative when lost.
rate is filled for losing lines too; luckyMultiplier is set only on lines the lucky boost applied to.
nextRound.openAt is the next round's start (UTC) and may already be in the past.
No game-availability, currency or game check on the round.
Validation failures answer 400 99911 with a description listing the fields, e.g. roundId is required.
Flow
1.
Accept LOTTO only; validate roundId; check the session game.
2.
Load the round from the caller's demo or real set.
3.
Not settled: return the status with empty results.
4.
Settled: derive the drawn number from the revealed seed and read the caller's settled lines (none gives zeros and []).
5.
Add the next open round of the same room + currency, if any.

Request

Query Params

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠429Too Many Requests
🔴500Internal Server Error
🔴503Service Unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://dev-api.ambfairgame.com/gapi/v1/gapi/v1/g/lotto/round/my-result?token=8d0c6a4e2b9f4f1c9a7e3b5d1c2e4f60' \
--header 'Authorization: Bearer 3f9a1c7e5b2d4f6081a3c5e7f9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7' \
--header 'Accept-Language: th' \
--header 'Content-Type: application/json' \
--data '{
    "roundId": "tm64903fa91c2e"
}'
Response Response Example
200 - Settled, two lines won
The lucky 2-BOTTOM line and a 1-TOP line won; the 3-TOAD line lost.
{
    "code": "0",
    "description": "Success.",
    "traceID": "0f8e2c1a-6b3d-4e5f-9a7b-1c2d3e4f5a6b",
    "data": {
        "status": "settled",
        "number": "482917",
        "totalBet": 35,
        "totalReturn": 3660,
        "netWin": 3625,
        "items": [
            {
                "betID": "2_1001_tm64903fa91c2e_9f1c0b7a4d2e6f8a1b3c5d7e9f0a2b4c",
                "betType": "2-BOTTOM",
                "number": "17",
                "amount": 10,
                "baseRate": 90,
                "luckyMultiplier": 4,
                "rate": 360,
                "isWin": true,
                "winAmount": 3600
            },
            {
                "betID": "2_1001_tm64903fa91c2e_9f1c0b7a4d2e6f8a1b3c5d7e9f0a2b4c",
                "betType": "3-TOAD",
                "number": "358",
                "amount": 5,
                "baseRate": 150,
                "luckyMultiplier": null,
                "rate": 150,
                "isWin": false,
                "winAmount": 0
            },
            {
                "betID": "2_1001_tm64903fa91c2e_9f1c0b7a4d2e6f8a1b3c5d7e9f0a2b4c",
                "betType": "1-TOP",
                "number": "9",
                "amount": 20,
                "baseRate": 3,
                "luckyMultiplier": null,
                "rate": 3,
                "isWin": true,
                "winAmount": 60
            }
        ],
        "nextRound": {
            "roundId": "tm6493s0b41d7e",
            "openAt": "2026-09-30T08:15:00Z"
        }
    }
}
Modified at 2026-09-30 13:23:45
Previous
Get My Bets
Next
Get Round Provably Fair
Built with