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
LocalOffsetbodydouble?No
BettingHistoryQueryParams Parameters:
NameParameterData TypeRequiredDescription
LocalOffsetformdouble?No
StartDateformstringNo
EndDateformstringNo
IncludesWinformboolNo
IncludesLoseformboolNo
IncludesPendingformboolNo
IncludesCashedOutformboolNo
IncludesAllformboolNo
FilterformintNo
IsCSVReqformboolNo
SortformstringNo
PageNumberformintNo
RowsPerPageformintNo
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 .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: ios-api.betright.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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

{"Items":[{"LocalOffset":0,"BetId":0,"TicketNumber":"String","BetDateTimeUTC":"\/Date(-62135596800000)\/","LastModifiedDateTimeUTC":"\/Date(-62135596800000)\/","BetDateTime":"\/Date(-62135560800000)\/","BetDate_Client":"01 Jan 01","BetTime_Client":"00:00 AM (UTC+00:00:00)","BetDate_Server":"01 Jan 01","BetTime_Server":"10:00 AM (UTC+10:00)","AdvertisedStartDate_Server":"01 Jan 0001","AdvertisedStartTime_Server":"10:00 AM","EventTypeIco":"icon-unknown","EventTypeId":0,"CategoryName":"String","MasterEventID":0,"MasterEventName":"String","EventID":0,"EventName":"String","AdvertisedStartTimeUTC":"\/Date(-62135596800000)\/","AdvertisedStartTime":"\/Date(-62135560800000)\/","EventStatus":"String","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 - String","RaceNumber":0,"TransactionDate_Date":"01 Jan 01","TransactionDate_Time":"10:00:00 AM (UTC+10:00)","DisplayStatus":"String","TimeToJumpSeconds":-2147483648,"MarketType":"String","IsCashOutAvailable":false}],"TotalCount":0}