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 .other suffix or ?format=other

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","device":{"id":"String","val":"String"},"location":{"id":"String","val":"String"},"status":1,"startedAt":"0001-01-01T00:00:00.0000000Z","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"}