/
v3.0.11Get access

getMarketTypeDisplayGroups

Returns the partner's market-type display groups: for each market type, the display group it belongs to, the group's name and the market-type kind. Use it to group and order markets in the event view the way they are configured for the partner in the backoffice

Request parameters:

NameDescriptionTypeValuesDefault
sportId
Contains id for filtration by sport idnumber--

Call example:

getMarketTypeDisplayGroups()

Response examples:

{
  hasError: false,
  errorDetails: {
    key: '',
    message: ''
  },
  data: [{
    MarketTypeKind: 'RestOfTheMatchWinner',
    DisplayGroupId: 594,
    SportId: 1,
    MarketTypeId: 12553,
    GroupName: 'Main Group'
  }, {
    DisplayGroupId: 594,
    SportId: 1,
    MarketTypeId: 9817,
    GroupName: 'Main Group',
    MarketTypeKind: 'Winner'
  }, {
    DisplayGroupId: 594,
    SportId: 1,
    MarketTypeId: 10376,
    GroupName: 'Main Group',
    MarketTypeKind: 'SpecialsTotal'
  }]
}

Response parameters:

NameDescriptionTypeValues
DisplayGroupId
Display group identifiernumber-
MarketTypeId
Market type identifier. These are the same ids returned by `getMarketType`number-
GroupName
Display group name, as configured for the partner in the backofficestring-
MarketTypeKind
Kind of the market type, as configured for the partner in the backofficestring-
SportId
Contains the corresponding sport id if the user passes the "sportId" parameter for filteringnumber-