CmsWager Integration Document
  • Introduction
  • Before Start
  • Sportsbook UI
    • Integration
    • Window Message Events
  • CmsWager Api
    • Summary
    • Authentication
    • API Reference
      • Login/Register User
      • Freebet and Bonus assignment
    • Errors
  • Client API Reference
    • Summary
    • Api Reference
      • Bet placement
      • Cancelling bets
      • Concluding bets
      • Reopening concluded bets
      • Partial Cashout
      • Insurance
  • Frontend Api (optional)
    • Summary
    • Api Reference
      • Components
        • Top Leagues
        • Prematch Active Sports
        • Prematch Sport Menu
        • Last minute
        • Live now (reduced)
      • Matches
        • Tournament Odds
        • Match Odds
  • Appendix
    • Transaction types
    • Bet Status
    • Bet Type
    • Error Codes
Powered by GitBook
On this page
  1. Frontend Api (optional)
  2. Api Reference
  3. Components

Prematch Sport Menu

PreviousPrematch Active SportsNextLast minute

Last updated 4 months ago

GET /SportApi/GetTournamentSportMenu/{clientKey}/{language}

The GET request to the provided URL retrieves a structured list of sports, each with associated categories and tournaments. Each sport object contains details like sportId, sportName, and whether live matches are available (hasLive). Categories are nested within sports, identified by categoryId and categoryName. Further, tournaments are listed under each category, detailing the number of matches and other attributes, such as tournamentId and tournamentName.

Example Success Response

[
    {
        "sportId": 1,
        "sportName": "Soccer",
        "sportType": 1,
        "hasLive": true,
        "sort": 1,
        "expirationDate": "0001-01-01T00:00:00",
        "matchesNumber": 818,
        "categories": [
            {
                "categoryId": 34,
                "categoryName": "Australia",
                "matchesNumber": 14,
                "sort": 255,
                "isoCode": "AUS",
                "hasLive": false,
                "tournaments": [
                    {
                        "tournamentId": 136,
                        "tournamentName": "A-League",
                        "groupId": 0,
                        "matchesNumber": 9,
                        "sort": 0,
                        "hasLive": false,
                        "expirationDate": "0001-01-01T00:00:00",
                        "objTrad": null
                    },
                    {
                        "tournamentId": 1894,
                        "tournamentName": "W-League",
                        "groupId": 0,
                        "matchesNumber": 5,
                        "sort": 0,
                        "hasLive": false,
                        "expirationDate": "0001-01-01T00:00:00",
                        "objTrad": null
                    }
                ],
                "objTrad": null
            }
        ]
    },
    {
        "sportId": 2,
        "sportName": "Basketball",
        "sportType": 1,
        "hasLive": true,
        "sort": 3,
        "expirationDate": "0001-01-01T00:00:00",
        "matchesNumber": 136,
        "categories": [
            {
                "categoryId": 264,
                "categoryName": "Argentina",
                "matchesNumber": 5,
                "sort": 255,
                "isoCode": "ARG",
                "hasLive": false,
                "tournaments": [
                    {
                        "tournamentId": 1680,
                        "tournamentName": "LNB",
                        "groupId": 0,
                        "matchesNumber": 5,
                        "sort": 0,
                        "hasLive": false,
                        "expirationDate": "0001-01-01T00:00:00",
                        "objTrad": null
                    }
                ],
                "objTrad": null
            },
            {
                "categoryId": 113,
                "categoryName": "Australia",
                "matchesNumber": 4,
                "sort": 255,
                "isoCode": "AUS",
                "hasLive": false,
                "tournaments": [
                    {
                        "tournamentId": 1524,
                        "tournamentName": "NBL",
                        "groupId": 0,
                        "matchesNumber": 2,
                        "sort": 0,
                        "hasLive": false,
                        "expirationDate": "0001-01-01T00:00:00",
                        "objTrad": null
                    },
                    {
                        "tournamentId": 1506,
                        "tournamentName": "WNBL",
                        "groupId": 0,
                        "matchesNumber": 2,
                        "sort": 0,
                        "hasLive": false,
                        "expirationDate": "0001-01-01T00:00:00",
                        "objTrad": null
                    }
                ],
                "objTrad": null
            }
        ]
    }
]

https://testodds.cmswager.com