Variant Descriptions

Attributes id Producer Id as sent in messages active Set to true if this producer is activated for the calling client otherwise false. api_url The API starting-url that can be used to request r

Variant descriptions

get

Returns all variant types and the markets they are associated with.

Authorizations
Path parameters
languagestringRequired

Language code for translation.

Default: en
Responses
200

successful operation

application/xml
get
GET /v1/descriptions/{language}/variants.xml HTTP/1.1
Host: global.api.betradar.com
x-access-token: YOUR_API_KEY
Accept: */*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<variant_descriptions response_code="OK">
  <variant id="sr:correct_score:bestof:12">
    <outcomes>
      <outcome id="sr:correct_score:bestof:12:192" name="7:0"/>
      <outcome id="sr:correct_score:bestof:12:193" name="7:1"/>
      <outcome id="sr:correct_score:bestof:12:194" name="7:2"/>
      <outcome id="sr:correct_score:bestof:12:195" name="7:3"/>
      ...
    </outcomes>
    <mappings>
      <mapping product_id="3" product_ids="3" sport_id="sr:sport:22" market_id="374" product_market_id="455">
        <mapping_outcome outcome_id="sr:correct_score:bestof:12:192" product_outcome_id="33" product_outcome_name="7:0"/>
        <mapping_outcome outcome_id="sr:correct_score:bestof:12:193" product_outcome_id="34" product_outcome_name="7:1"/>
        ...
      </mapping>
    </mappings>
  </variant>
  <variant id="sr:point_range:7+">
    <outcomes>
      <outcome id="sr:point_range:7+:1144" name="0-2"/>
      <outcome id="sr:point_range:7+:1145" name="3-4"/>
      ...
    </outcomes>
    <mappings>
      <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:1" market_id="171" product_market_id="8:131">
        <mapping_outcome outcome_id="sr:point_range:7+:1144" product_outcome_id="387" product_outcome_name="0-2"/>
        ...
      </mapping>
    </mappings>
  </variant>
  ... more variants ...
</variant_descriptions>

Last updated

Was this helpful?