Betting.WebApi

<back to all web services

GetDraw

The following routes are available for this service:
All Verbs/rounds/draw
GetDraw Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
Draw Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
SequenceformstringNo
InputAccumulationformList<Pool>No
OutputAccumulationformList<Pool>No
OutcomeformRoundOutcomeNo
RoundOutcome Parameters:
NameParameterData TypeRequiredDescription
DrawformList<DrawItem>No
CustomBetOutcomesformList<CustomBetOutcome>No
LCPWinnersformList<Winner>No
StakeformdecimalNo
WinningsformdecimalNo
BalanceformdecimalNo
ReturnToPlayerformdecimalNo
Jackpot5InfoformJackpot5InfoNo
WinCountformintNo
DrawItem Parameters:
NameParameterData TypeRequiredDescription
OrdinalformintNo
NumberformintNo
CoefficientformfloatNo
IsDoubleTripleformboolNo
ConstitutesJackpotformboolNo
HitsformintNo
WinformdecimalNo
CustomBetOutcome Parameters:
NameParameterData TypeRequiredDescription
TypeformCustomBetTypeNo
CoefformfloatNo
WinCountformintNo
WinformdecimalNo
IsWinformboolNo
ResultsformstringNo
CustomBetType Enum:
NameValue
FirstNumberOdd4
FirstNumberEven5
FirstNumberLessThan24_56
FirstNumberGreaterThan24_57
SumOfFirstFiveLessThan122_58
SumOfFirstFiveGreaterThan122_59
FirstColor110
FirstColor211
FirstColor312
FirstColor413
FirstColor514
FirstColor615
FirstColor716
FirstColor817
MoreOddNumbers18
MoreEvenNumbers19
Winner Parameters:
NameParameterData TypeRequiredDescription
RoundIdformstringNo
SlipIdformstringNo
BetIdformstringNo
CodeformstringNo
AmountformdecimalNo
Jackpot5Info Parameters:
NameParameterData TypeRequiredDescription
IsHitformboolNo
AmountAccumulatedformdecimalNo
AmountAwardedformdecimalNo
NrOfWinnersformintNo
JackPot5WinnersformList<JackPot5Winner>No
JackPot5Winner Parameters:
NameParameterData TypeRequiredDescription
BetIdformstringNo
NrOfCombinationsformintNo
WinningsAmountformdecimalNo
OriginformOriginNo
PayloadformDictionary<string, string>No
Origin Parameters:
NameParameterData TypeRequiredDescription
ApplicationformBettingAppNo
IPformstringNo
OrganizationformReferenceNo
DeviceformReferenceNo
LocationformReferenceNo
LocationGroupformReferenceNo
ClerkformReferenceNo
BettingApp Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
VersionformstringNo
Reference Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ValueformstringNo

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 /rounds/draw HTTP/1.1 
Host: s4wapi.mozzart.ath.cx 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	id: String,
	sequence: String,
	inputAccumulation: 
	[
		{
			id: 0,
			name: String,
			amount: 0
		}
	],
	outputAccumulation: 
	[
		{
			id: 0,
			name: String,
			amount: 0
		}
	],
	outcome: 
	{
		draw: 
		[
			{
				ordinal: 0,
				number: 0,
				coefficient: 0,
				isDoubleTriple: False,
				constitutesJackpot: False,
				hits: 0,
				win: 0
			}
		],
		customBetOutcomes: 
		[
			{
				type: 4,
				coef: 0,
				winCount: 0,
				win: 0,
				isWin: False,
				results: String
			}
		],
		lcpWinners: 
		[
			{
				roundId: String,
				slipId: String,
				betId: String,
				code: String,
				amount: 0
			}
		],
		stake: 0,
		winnings: 0,
		balance: 0,
		returnToPlayer: 0,
		jackpot5Info: 
		{
			isHit: False,
			amountAccumulated: 0,
			amountAwarded: 0,
			nrOfWinners: 0,
			jackPot5Winners: 
			[
				{
					betId: String,
					nrOfCombinations: 0,
					winningsAmount: 0,
					origin: 
					{
						application: 
						{
							name: String,
							version: String
						},
						ip: String,
						organization: 
						{
							id: String,
							value: String
						},
						device: 
						{
							id: String,
							value: String
						},
						location: 
						{
							id: String,
							value: String
						},
						locationGroup: 
						{
							id: String,
							value: String
						},
						clerk: 
						{
							id: String,
							value: String
						}
					},
					payload: 
					{
						String: String
					}
				}
			]
		},
		winCount: 0
	}
}