TBS Apps API

<back to all web services

RaceFormRequest

The following routes are available for this service:
GET,POST/RaceFormGets the Form for a given race.Gets Race Form.
RaceFormRequest Parameters:
NameParameterData TypeRequiredDescription
RequestingRacebodyboolNois Requesting Race
EventIdbodyintNoEventId
SocialRaceForm Parameters:
NameParameterData TypeRequiredDescription
RaceFormformRaceFormNo
SocialSelectionsformIEnumerable<SocialSelection>No
RaceForm Parameters:
NameParameterData TypeRequiredDescription
RaceClassformstringNo
RaceCommentformstringNo
PrizeMoneyformintNo
RunnerFormsListformList<RunnerForm>No
EventIdformintNo
EventTypeIdformintNo
DistanceformintNo
RaceNameformstringNo
TrackConditionformstringNo
PreviousEventIdformintNo
SecondsToJumpformlongNo
NextEventIdformintNo
WeatherConditionformstringNo
RaceNumberformintNo
ResultStatusformintNo
IsOpenForBettingformboolNo
RunnerForm Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
RunnerCommentformstringNo
TabNumberformintNo
BarrierformintNo
PrizeMoneyWonformintNo
JockeyformstringNo
JockeyStatisticsformList<Statistic>No
WeightformdecimalNo
TrainerformstringNo
TrainingLocationformstringNo
OwnersformstringNo
AgeInYearsformintNo
SexformstringNo
ColourformstringNo
SireformstringNo
SireCountryformstringNo
DamformstringNo
DamCountryformstringNo
StatisticsformList<Statistic>No
LatestFormformList<PreviousForm>No
LastTenStartsformstringNo
LastFourStartsformstringNo
FixedWinPriceformdecimal?No
FixedPlacePriceformdecimal?No
ScratchedformboolNo
RatingformstringNo
FlucsformList<Fluc>No
Statistic Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
TotalformintNo
FirstsformintNo
SecondsformintNo
ThirdsformintNo
PreviousForm Parameters:
NameParameterData TypeRequiredDescription
RaceDateformDateTimeNo
TrackNameformstringNo
NumberOfRunnersformstringNo
FinishformstringNo
DistanceformintNo
RaceClassformstringNo
JockeyformstringNo
WeightCarriedformdecimalNo
BarrierformintNo
StartingPriceformstringNo
TrackConditionformstringNo
WinnerNameformstringNo
RaceTimeformdecimalNo
MarginformstringNo
RunnerUpNameformstringNo
Fluc Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
PriceformdecimalNo
SocialSelection Parameters:
NameParameterData TypeRequiredDescription
SentByClientIdformintNo
FirstNameformstringNo
SurnameformstringNo
BetJSONformstringNo
EmailformstringNo
EmailHashformstringNo

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 /RaceForm HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	RequestingRace: False,
	EventId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RaceForm: 
	{
		RaceClass: String,
		RaceComment: String,
		PrizeMoney: 0,
		RunnerFormsList: 
		[
			{
				Name: String,
				RunnerComment: String,
				TabNumber: 0,
				Barrier: 0,
				PrizeMoneyWon: 0,
				Jockey: String,
				JockeyStatistics: 
				[
					{
						Type: String,
						Total: 0,
						Firsts: 0,
						Seconds: 0,
						Thirds: 0
					}
				],
				Weight: 0,
				Trainer: String,
				TrainingLocation: String,
				Owners: String,
				AgeInYears: 0,
				Sex: String,
				Colour: String,
				Sire: String,
				SireCountry: String,
				Dam: String,
				DamCountry: String,
				Statistics: 
				[
					{
						Type: String,
						Total: 0,
						Firsts: 0,
						Seconds: 0,
						Thirds: 0
					}
				],
				LatestForm: 
				[
					{
						RaceDate: 0001-01-01,
						TrackName: String,
						NumberOfRunners: String,
						Finish: String,
						Distance: 0,
						RaceClass: String,
						Jockey: String,
						WeightCarried: 0,
						Barrier: 0,
						StartingPrice: String,
						TrackCondition: String,
						WinnerName: String,
						RaceTime: 0,
						Margin: String,
						RunnerUpName: String
					}
				],
				LastTenStarts: String,
				LastFourStarts: String,
				FixedWinPrice: 0,
				FixedPlacePrice: 0,
				Scratched: False,
				Rating: String,
				Flucs: 
				[
					{
						
					}
				]
			}
		],
		EventId: 0,
		EventTypeId: 0,
		Distance: 0,
		RaceName: String,
		TrackCondition: String,
		PreviousEventId: 0,
		SecondsToJump: 0,
		NextEventId: 0,
		WeatherCondition: String,
		RaceNumber: 0,
		ResultStatus: 0,
		IsOpenForBetting: False
	}
}