1. Lotto (หวยเฮงเฮง)
[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
        • Get My Result
        • Get Round Provably Fair
      • 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. Lotto (หวยเฮงเฮง)

Get Pay Table

GET
/gapi/v1/g/lotto/pay-table
Returns the bet-type buttons with their live rates, the room's bet limits for the session currency and the lucky-number settings. Call it when opening the number-entry screen for a room.
Auth: Player session — Authorization: Bearer {token}
Rate limit: 300 requests per 60 s per IP (LOTTO_GET_PAY_TABLE)
Games: LOTTO
Rules
Lotto only: the route is under /g/lotto, so system maintenance and Lotto's own maintenance window both answer 503 99915.
Query key is roomId (lower-case d). Omit it (or send 0) to get the limits of the first active room (lowest sortOrder, then lowest roomId).
rate is the live gross multiplier (stake included): win = amount × rate. An open round settles at the rates captured when it opened, so a rate change shows here before it applies to that round.
betTypes always lists all 9 types in this fixed order: 6-DIGIT, 5-DIGIT, 4-BOTTOM, 3-BOTTOM, 2-BOTTOM, 4-TOAD, 3-TOAD, 1-TOP, 1-BOTTOM. A type with rate 0 is rejected at ticket creation.
limits.minPerItem and limits.maxPerNumber are integers while bet amounts may be decimal; 0 means no limit.
maxPerNumber is shared by all players: it caps the round-wide total on one bet type + number, not a player's own total.
maxItemsPerTicket is always 20.
lucky.appliesTo is always ["2-BOTTOM"]; lucky.multiplier reports 4 when not configured, even when enabled is false.
label and description follow Accept-Language (en or th; other languages fall back to en).
Flow
1.
Accept LOTTO only; parse the optional roomId query (before the session check).
2.
Check the session game and the game's availability.
3.
Pick the room among the active rooms serving the session currency: the requested one, or the first by sort order.
4.
Return the room's limits for the currency, the lucky settings and all bet types with live rates and localised text.

Request

Query Params

Header Params

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/pay-table?roomId=1&token=8d0c6a4e2b9f4f1c9a7e3b5d1c2e4f60' \
--header 'Authorization: Bearer 3f9a1c7e5b2d4f6081a3c5e7f9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7' \
--header 'Accept-Language: th'
Response Response Example
200 - THB, English labels
Default rates, lucky feature on.
{
    "code": "0",
    "description": "Success.",
    "traceID": "0f8e2c1a-6b3d-4e5f-9a7b-1c2d3e4f5a6b",
    "data": {
        "currency": "THB",
        "limits": {
            "minPerItem": 1,
            "maxPerNumber": 5000,
            "maxItemsPerTicket": 20
        },
        "lucky": {
            "enabled": true,
            "multiplier": 4,
            "appliesTo": [
                "2-BOTTOM"
            ]
        },
        "betTypes": [
            {
                "code": "6-DIGIT",
                "label": "6 digits",
                "group": "6",
                "digits": 6,
                "rate": 1000000,
                "description": "All six drawn digits, in order."
            },
            {
                "code": "5-DIGIT",
                "label": "5 digits",
                "group": "5",
                "digits": 5,
                "rate": 50000,
                "description": "The last five drawn digits, in order."
            },
            {
                "code": "4-BOTTOM",
                "label": "4 bottom",
                "group": "4",
                "digits": 4,
                "rate": 10000,
                "description": "The last four drawn digits, in order."
            },
            {
                "code": "3-BOTTOM",
                "label": "3 bottom",
                "group": "3",
                "digits": 3,
                "rate": 500,
                "description": "The last three drawn digits, in order."
            },
            {
                "code": "2-BOTTOM",
                "label": "2 bottom",
                "group": "2",
                "digits": 2,
                "rate": 90,
                "description": "The last two drawn digits. The only bet type the lucky number multiplies."
            },
            {
                "code": "4-TOAD",
                "label": "4 toad",
                "group": "4",
                "digits": 4,
                "rate": 2500,
                "description": "The last four drawn digits in any order."
            },
            {
                "code": "3-TOAD",
                "label": "3 toad",
                "group": "3",
                "digits": 3,
                "rate": 150,
                "description": "The last three drawn digits in any order."
            },
            {
                "code": "1-TOP",
                "label": "1 top (วิ่งบน)",
                "group": "run",
                "digits": 1,
                "rate": 3,
                "description": "A single digit appearing anywhere in the last three drawn digits."
            },
            {
                "code": "1-BOTTOM",
                "label": "1 bottom (วิ่งล่าง)",
                "group": "run",
                "digits": 1,
                "rate": 4,
                "description": "A single digit appearing in either of the first two drawn digits."
            }
        ]
    }
}
Modified at 2026-09-30 13:23:45
Previous
Get Current Round
Next
Game List
Built with