Variant Market description


The variant market description provides outcome information related to outrights.
Filters available are the language, the ID of the market, the variant URN and if the mapping should be included or not.
Here below we have an example of the responde of the end point in case of filtering without mapping and the same filtering with mapping.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <market_descriptions response_code="OK">
    <market id="241" name="Exact games" variant="sr:exact_games:bestof:5">
      <outcomes>
        <outcome id="sr:exact_games:bestof:5:39" name="3"/>
        <outcome id="sr:exact_games:bestof:5:40" name="4"/>
        <outcome id="sr:exact_games:bestof:5:41" name="5"/>
      </outcomes>
    </market>
  </market_descriptions>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <market_descriptions response_code="OK">
    <market id="241" name="Exact games" variant="sr:exact_games:bestof:5">
      <outcomes>
        <outcome id="sr:exact_games:bestof:5:39" name="3"/>
        <outcome id="sr:exact_games:bestof:5:40" name="4"/>
        <outcome id="sr:exact_games:bestof:5:41" name="5"/>
      </outcomes>
      <mappings>
        <mapping product_id="3" product_ids="3" sport_id="sr:sport:20" market_id="232" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="99" product_outcome_name="3 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="100" product_outcome_name="4 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="101" product_outcome_name="5 sets"/>
        </mapping>
        <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:31" market_id="8:25" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="31" product_outcome_name="3"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="32" product_outcome_name="4"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="33" product_outcome_name="5"/>
        </mapping>
        <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:20" market_id="8:25" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="31" product_outcome_name="3"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="32" product_outcome_name="4"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="33" product_outcome_name="5"/>
        </mapping>
        <mapping product_id="3" product_ids="3" sport_id="sr:sport:31" market_id="232" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="99" product_outcome_name="3 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="100" product_outcome_name="4 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="101" product_outcome_name="5 sets"/>
        </mapping>
        <mapping product_id="3" product_ids="3" sport_id="sr:sport:37" market_id="232" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="99" product_outcome_name="3 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="100" product_outcome_name="4 sets"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="101" product_outcome_name="5 sets"/>
        </mapping>
        <mapping product_id="1" product_ids="1|4" sport_id="sr:sport:37" market_id="8:25" valid_for="variant=sr:exact_games:bestof:5">
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:39" product_outcome_id="31" product_outcome_name="3"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:40" product_outcome_id="32" product_outcome_name="4"/>
          <mapping_outcome outcome_id="sr:exact_games:bestof:5:41" product_outcome_id="33" product_outcome_name="5"/>
        </mapping>
      </mappings>
    </market>
  </market_descriptions>

Was this helpful?