TBS Apps API

<back to all web services

PendingBetsRequest

Requires Authentication
BettingHistoryResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<BettingHistoryItem>No
TotalCountformintNo
BettingHistoryItem Parameters:
NameParameterData TypeRequiredDescription
BetIdformlongNo
TicketNumberformstringNo
BetDateTimeUTCformDateTimeNo
LastModifiedDateTimeUTCformDateTime?No
BetDate_ServerformstringNo
BetTime_ServerformstringNo
AdvertisedStartDate_ServerformstringNo
AdvertisedStartTime_ServerformstringNo
EventTypeIcoformstringNo
EventTypeIdformintNo
CategoryNameformstringNo
MasterEventNameformstringNo
EventNameformstringNo
AdvertisedStartTimeUTCformDateTimeNo
BetDescriptionformstringNo
BetClassformstringNo
TotalStakeformdecimalNo
TotalPayoutformdecimalNo
TotalLinesformintNo
BetTypeCodeformstringNo
BetSubTypeCodeformstringNo
ChannelIdformintNo
ChannelformstringNo
ChannelIcoformstringNo
FreeBetIdformlongNo
SettledStateIdformintNo
SettledStateDescformstringNo
VenueformstringNo
CountryCodeformstringNo
DisplayEventNameformstringNo
RaceNumberformintNo
TransactionDate_DateformstringNo
TransactionDate_TimeformstringNo
DisplayStatusformstringNo
TimeToJumpSecondsformintNo
MarketTypeformstringNo
IsCashOutAvailableformboolNo
EventIdformintNo
OutcomeIdformint?No
OutcomeNameformstringNo
MasterEventIdformintNo
MasterCategoryIdformintNo
CategoryIdformintNo
MasterCategoryNameformstringNo
LegStatusesformIEnumerable<LegStatus>No
PromoUIDformstringNo
PromoTypeCodeformstringNo
PromoDisplayTitleformstringNo
PromoDisplayDescriptionformstringNo
TrackBetformboolNo
CanTrackBetformboolNo
IsLiveActivityActiveformboolNo
LegStatus Parameters:
NameParameterData TypeRequiredDescription
EventTypeIdformintNo
LegNumberformintNo
StatusformstringNo
BTOutcomeStatusformstringNo

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: PendingBetsRequest

<?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>

<PendingBetsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.AppsAPI.SS.Services" />

    </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>

<BettingHistoryResponse 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:BettingHistoryItem>
      <d2p1:AdvertisedStartTimeUTC>0001-01-01T00:00:00</d2p1:AdvertisedStartTimeUTC>
      <d2p1:BetClass>String</d2p1:BetClass>
      <d2p1:BetDateTimeUTC>0001-01-01T00:00:00</d2p1:BetDateTimeUTC>
      <d2p1:BetDescription>String</d2p1:BetDescription>
      <d2p1:BetId>0</d2p1:BetId>
      <d2p1:BetSubTypeCode>String</d2p1:BetSubTypeCode>
      <d2p1:BetTypeCode>String</d2p1:BetTypeCode>
      <d2p1:CanTrackBet>false</d2p1:CanTrackBet>
      <d2p1:CategoryId>0</d2p1:CategoryId>
      <d2p1:CategoryName>String</d2p1:CategoryName>
      <d2p1:Channel>String</d2p1:Channel>
      <d2p1:ChannelId>0</d2p1:ChannelId>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:DisplayStatus>String</d2p1:DisplayStatus>
      <d2p1:EventId>0</d2p1:EventId>
      <d2p1:EventName>String</d2p1:EventName>
      <d2p1:EventTypeId>0</d2p1:EventTypeId>
      <d2p1:FreeBetId>0</d2p1:FreeBetId>
      <d2p1:IsCashOutAvailable>false</d2p1:IsCashOutAvailable>
      <d2p1:IsLiveActivityActive>false</d2p1:IsLiveActivityActive>
      <d2p1:LastModifiedDateTimeUTC>0001-01-01T00:00:00Z</d2p1:LastModifiedDateTimeUTC>
      <d2p1:LegStatuses i:nil="true" />
      <d2p1:MarketType>String</d2p1:MarketType>
      <d2p1:MasterCategoryId>0</d2p1:MasterCategoryId>
      <d2p1:MasterCategoryName>String</d2p1:MasterCategoryName>
      <d2p1:MasterEventId>0</d2p1:MasterEventId>
      <d2p1:MasterEventName>String</d2p1:MasterEventName>
      <d2p1:OutcomeId>0</d2p1:OutcomeId>
      <d2p1:OutcomeName>String</d2p1:OutcomeName>
      <d2p1:PromoDisplayDescription>String</d2p1:PromoDisplayDescription>
      <d2p1:PromoDisplayTitle>String</d2p1:PromoDisplayTitle>
      <d2p1:PromoTypeCode>String</d2p1:PromoTypeCode>
      <d2p1:PromoUID>String</d2p1:PromoUID>
      <d2p1:RaceNumber>0</d2p1:RaceNumber>
      <d2p1:SettledStateDesc>String</d2p1:SettledStateDesc>
      <d2p1:SettledStateId>0</d2p1:SettledStateId>
      <d2p1:TicketNumber>String</d2p1:TicketNumber>
      <d2p1:TotalLines>0</d2p1:TotalLines>
      <d2p1:TotalPayout>0</d2p1:TotalPayout>
      <d2p1:TotalStake>0</d2p1:TotalStake>
      <d2p1:TrackBet>false</d2p1:TrackBet>
      <d2p1:Venue>String</d2p1:Venue>
    </d2p1:BettingHistoryItem>
  </Items>
  <TotalCount>0</TotalCount>
</BettingHistoryResponse>

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