| GET | /qry/self-service-device-betting-sessions/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Device | form | Ref | No | |
| Location | form | Ref | No | |
| Status | form | SessionStatus | No | |
| StartedAt | form | DateTime | No | |
| IssuedByClerk | form | Ref | No | |
| PatronName | form | string | No | |
| InitialCredit | form | Money | No | |
| TopUps | form | RecordList<SessionTopUp> | No | |
| PayoutId | form | string | No | |
| Payout | form | Money | No | |
| RejectionReason | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes | |
| Val | form | string | Yes |
| Name | Value | |
|---|---|---|
| Opening | 1 | |
| Open | 2 | |
| Ending | 3 | |
| Ended | 4 | |
| Rejected | 5 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Amount | form | decimal | No | |
| Currency | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Amount | form | Money | No | |
| Clerk | form | Ref | No | |
| Status | form | TopUpStatus | No | |
| FailureReason | form | string | No |
| Name | Value | |
|---|---|---|
| Pending | 1 | |
| Completed | 2 | |
| Failed | 3 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}