Betting.WebApi

<back to all web services

GetRoundIntegrity

The following routes are available for this service:
All Verbs/rounds/integrity
GetRoundIntegrity Parameters:
NameParameterData TypeRequiredDescription
RoundIdquerystringNo
RoundIntegrityCheckResult Parameters:
NameParameterData TypeRequiredDescription
StatusformCheckStatusNo
ExtraWinningsformdecimalNo
BetCountformintNo
JpInfoformJackpot5InfoNo
CheckStatus Enum:
NameValue
Ok1
Error2
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/integrity HTTP/1.1 
Host: s4wapi.mozzart.ath.cx 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	status: 1,
	extraWinnings: 0,
	betCount: 0,
	jpInfo: 
	{
		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
				}
			}
		]
	}
}