Betting.WebApi

<back to all web services

GetSelfServiceDeviceBettingSession

Requires Authentication
The following routes are available for this service:
GET/qry/self-service-device-betting-sessions/{Id}
GetSelfServiceDeviceBettingSession Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
SelfServiceDeviceBettingSession Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
DeviceformRefNo
LocationformRefNo
StatusformSessionStatusNo
StartedAtformDateTimeNo
IssuedByClerkformRefNo
PatronNameformstringNo
InitialCreditformMoneyNo
TopUpsformRecordList<SessionTopUp>No
PayoutIdformstringNo
PayoutformMoneyNo
RejectionReasonformstringNo
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes
SessionStatus Enum:
NameValue
Opening1
Open2
Ending3
Ended4
Rejected5
Money Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformstringYes
SessionTopUp Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
AmountformMoneyNo
ClerkformRefNo
StatusformTopUpStatusNo
FailureReasonformstringNo
TopUpStatus Enum:
NameValue
Pending1
Completed2
Failed3

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.

GET /qry/self-service-device-betting-sessions/{Id} HTTP/1.1 
Host: api.testenv.webhop.biz 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	device: 
	{
		id: String,
		val: String
	},
	location: 
	{
		id: String,
		val: String
	},
	status: 1,
	startedAt: 0001-01-01,
	issuedByClerk: 
	{
		id: String,
		val: String
	},
	patronName: String,
	initialCredit: 
	{
		amount: 0,
		currency: String
	},
	topUps: 
	[
		{
			id: String,
			amount: 
			{
				amount: 0,
				currency: String
			},
			clerk: 
			{
				id: String,
				val: String
			},
			status: 1,
			failureReason: String
		}
	],
	payoutId: String,
	payout: 
	{
		amount: 0,
		currency: String
	},
	rejectionReason: String
}