TBS Apps API

<back to all web services

BettingHistoryRequest

Requires Authentication
The following routes are available for this service:
GET,POST/BettingHistoryGets the bet history of the currently authenticated user.Gets the bet history of the currently logged in user. The filter criteria should be supplied in [Criteria] member
BettingHistoryRequest Parameters:
NameParameterData TypeRequiredDescription
CriteriabodyBettingHistoryQueryParamsNoQuery parameters for filtering the bet history
BettingHistoryQueryParams Parameters:
NameParameterData TypeRequiredDescription
StartDateformstringNo
EndDateformstringNo
IncludesWinformboolNo
IncludesLoseformboolNo
IncludesPendingformboolNo
IncludesCashedOutformboolNo
IncludesAllformboolNo
IncludesResultedformboolNo
FilterformintNo
IsCSVReqformboolNo
SortformstringNo
PageNumberformintNo
RowsPerPageformintNo
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 .csv suffix or ?format=csv

HTTP + CSV

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

POST /BettingHistory HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Criteria":{"StartDate":"String","EndDate":"String","IncludesWin":false,"IncludesLose":false,"IncludesPending":false,"IncludesCashedOut":false,"IncludesAll":false,"IncludesResulted":false,"Filter":0,"IsCSVReq":false,"Sort":"String","PageNumber":1,"RowsPerPage":0}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Items":[{"BetId":0,"TicketNumber":"String","BetDateTimeUTC":"0001-01-01T00:00:00.0000000Z","LastModifiedDateTimeUTC":"0001-01-01T00:00:00.0000000Z","BetDate_Server":"01 Jan 0001","BetTime_Server":"11:00:00 AEDT","AdvertisedStartDate_Server":"01 Jan 0001","AdvertisedStartTime_Server":"11:00","EventTypeIco":"icon-unknown","EventTypeId":0,"CategoryName":"String","MasterEventName":"String","EventName":"String","AdvertisedStartTimeUTC":"0001-01-01T00:00:00.0000000Z","BetDescription":"String","BetClass":"String","TotalStake":0,"TotalPayout":0,"TotalLines":0,"BetTypeCode":"String","BetSubTypeCode":"String","ChannelId":0,"Channel":"String","ChannelIco":"icon-unknown","FreeBetId":0,"SettledStateId":0,"SettledStateDesc":"String","Venue":"String","CountryCode":"String","DisplayEventName":"String","RaceNumber":0,"TransactionDate_Date":"01 Jan 0001","TransactionDate_Time":"11:00:00 AEDT","DisplayStatus":"String","TimeToJumpSeconds":-2147483648,"MarketType":"String","IsCashOutAvailable":false,"EventId":0,"OutcomeId":0,"OutcomeName":"String","MasterEventId":0,"MasterCategoryId":0,"CategoryId":0,"MasterCategoryName":"String","PromoUID":"String","PromoTypeCode":"String","PromoDisplayTitle":"String","PromoDisplayDescription":"String","TrackBet":false,"CanTrackBet":false,"IsLiveActivityActive":false}],"TotalCount":0}