TBS Apps API

<back to all web services

SuggestedBetsRequest

Gets the Suggested Bets for a clientGets the Suggested Bets for a client
SuggestedBetsResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<SuggestedBet>No
SuggestedBet Parameters:
NameParameterData TypeRequiredDescription
EventIDformintNo
ClientIDformintNo
OutcomeIDformintNo
ShortTipReasonformstringNo
LongTipReasonformstringNo
RaceVenueformstringNo
RaceNumberformintNo
AdvertisedStartTimeformDateTimeNo
SecondsToJumpformintNo
IsJockeySilkExistformboolNo
RunnerNameformstringNo
ShortFormformstringNo
RunnerRaceCardNumberformstringNo
BarrierformstringNo
JockeyNameformstringNo
TrainerformstringNo
WeightCarriedformstringNo

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: SuggestedBetsRequest

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<SuggestedBetsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions" />

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<SuggestedBetsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
    <d2p1:SuggestedBet>
      <d2p1:AdvertisedStartTime>0001-01-01T00:00:00</d2p1:AdvertisedStartTime>
      <d2p1:Barrier>String</d2p1:Barrier>
      <d2p1:ClientID>0</d2p1:ClientID>
      <d2p1:EventID>0</d2p1:EventID>
      <d2p1:IsJockeySilkExist>false</d2p1:IsJockeySilkExist>
      <d2p1:JockeyName>String</d2p1:JockeyName>
      <d2p1:LongTipReason>String</d2p1:LongTipReason>
      <d2p1:OutcomeID>0</d2p1:OutcomeID>
      <d2p1:RaceNumber>0</d2p1:RaceNumber>
      <d2p1:RaceVenue>String</d2p1:RaceVenue>
      <d2p1:RunnerName>String</d2p1:RunnerName>
      <d2p1:RunnerRaceCardNumber>String</d2p1:RunnerRaceCardNumber>
      <d2p1:SecondsToJump>0</d2p1:SecondsToJump>
      <d2p1:ShortForm>String</d2p1:ShortForm>
      <d2p1:ShortTipReason>String</d2p1:ShortTipReason>
      <d2p1:Trainer>String</d2p1:Trainer>
      <d2p1:WeightCarried>String</d2p1:WeightCarried>
    </d2p1:SuggestedBet>
  </Items>
</SuggestedBetsResponse>

    </soap:Body>
</soap:Envelope>