TBS Apps API

<back to all web services

PendingBetsRequest

Requires Authentication
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 .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /jsv/reply/PendingBetsRequest HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Items: 
	[
		{
			LocalOffset: 0,
			BetId: 0,
			TicketNumber: String,
			BetDateTimeUTC: 0001-01-01,
			LastModifiedDateTimeUTC: 0001-01-01,
			BetDateTime: 0001-01-01T10:00:00+11:00,
			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: 0001-01-01,
			AdvertisedStartTime: 0001-01-01T10:00:00+11:00,
			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
}