TBS Apps API

<back to all web services

PendingBetsPagedRequest

Requires Authentication
PendingBetsPagedRequest Parameters:
NameParameterData TypeRequiredDescription
PageNumberqueryintNo
RowsPerPagequeryintNo
BettingHistoryResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<BettingHistoryItem>No
TotalCountformintNo
BettingHistoryItem Parameters:
NameParameterData TypeRequiredDescription
LocalOffsetformdoubleNo
BetIdformlongNo
TicketNumberformstringNo
BetDateTimeUTCformDateTimeNo
LastModifiedDateTimeUTCformDateTime?No
BetDateTimeformDateTimeNo
BetDate_ClientformstringNo
BetTime_ClientformstringNo
BetDate_ServerformstringNo
BetTime_ServerformstringNo
AdvertisedStartDate_ServerformstringNo
AdvertisedStartTime_ServerformstringNo
EventTypeIcoformstringNo
EventTypeIdformintNo
CategoryNameformstringNo
MasterEventIDformintNo
MasterEventNameformstringNo
EventIDformintNo
EventNameformstringNo
AdvertisedStartTimeUTCformDateTimeNo
AdvertisedStartTimeformDateTimeNo
EventStatusformstringNo
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

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

HTTP + XML

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

POST /xml/reply/PendingBetsPagedRequest HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PendingBetsPagedRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.AppsAPI.SS.Services">
  <PageNumber>0</PageNumber>
  <RowsPerPage>0</RowsPerPage>
</PendingBetsPagedRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<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: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:EventStatus>String</d2p1:EventStatus>
      <d2p1:EventTypeId>0</d2p1:EventTypeId>
      <d2p1:FreeBetId>0</d2p1:FreeBetId>
      <d2p1:IsCashOutAvailable>false</d2p1:IsCashOutAvailable>
      <d2p1:LastModifiedDateTimeUTC>0001-01-01T00:00:00Z</d2p1:LastModifiedDateTimeUTC>
      <d2p1:LocalOffset>0</d2p1:LocalOffset>
      <d2p1:MarketType>String</d2p1:MarketType>
      <d2p1:MasterEventID>0</d2p1:MasterEventID>
      <d2p1:MasterEventName>String</d2p1:MasterEventName>
      <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:Venue>String</d2p1:Venue>
    </d2p1:BettingHistoryItem>
  </Items>
  <TotalCount>0</TotalCount>
</BettingHistoryResponse>