TBS Apps API

<back to all web services

FixedPriceExoticPriceRequest

The following routes are available for this service:
GET,POST/FixedPriceExoticPriceGet the fixed price for a combination of runners in a fixed-price exoticGet the fixed price for a combination of runners in a fixed-price exotic, given an Event Id and exotic type along with the selected runners in each leg
FixedPriceExoticPriceRequest Parameters:
NameParameterData TypeRequiredDescription
EventIdbodyintNoEventId
MarketTypebodystringNoMarket Type
Outcomesbodystring[]NoA list of Outcomes
FixedPriceExoticPrices Parameters:
NameParameterData TypeRequiredDescription
OutcomePricesformList<FixedPriceExoticOutcomePrice>No
ComboPricesformList<FixedPriceExoticComboPrice>No
FixedPriceExoticOutcomePrice Parameters:
NameParameterData TypeRequiredDescription
OutcomeIdformintNo
PriceformdecimalNo
FixedPriceExoticComboPrice Parameters:
NameParameterData TypeRequiredDescription
OutcomeIdsformint[]No
PriceformdecimalNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /FixedPriceExoticPrice HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"EventId":0,"MarketType":"String","Outcomes":["String"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"OutcomePrices":[{"OutcomeId":0,"Price":0}],"ComboPrices":[{"OutcomeIds":[0],"Price":0}]}