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}
namespace Betting.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Ref() = 
        member val Id:String = null with get,set
        member val Val:String = null with get,set

    type SessionStatus =
        | Opening = 1
        | Open = 2
        | Ending = 3
        | Ended = 4
        | Rejected = 5

    [<AllowNullLiteral>]
    type Money() = 
        member val Amount:Decimal = new Decimal() with get,set
        member val Currency:String = null with get,set

    type TopUpStatus =
        | Pending = 1
        | Completed = 2
        | Failed = 3

    [<AllowNullLiteral>]
    type SessionTopUp() = 
        member val Id:String = null with get,set
        member val Amount:Money = null with get,set
        member val Clerk:Ref = null with get,set
        member val Status:TopUpStatus = new TopUpStatus() with get,set
        member val FailureReason:String = null with get,set

    [<AllowNullLiteral>]
    type SelfServiceDeviceBettingSession() = 
        member val Id:String = null with get,set
        member val Device:Ref = null with get,set
        member val Location:Ref = null with get,set
        member val Status:SessionStatus = new SessionStatus() with get,set
        member val StartedAt:DateTime = new DateTime() with get,set
        member val IssuedByClerk:Ref = null with get,set
        member val PatronName:String = null with get,set
        member val InitialCredit:Money = null with get,set
        member val TopUps:RecordList<SessionTopUp> = null with get,set
        member val PayoutId:String = null with get,set
        member val Payout:Money = null with get,set
        member val RejectionReason:String = null with get,set

    [<AllowNullLiteral>]
    type GetSelfServiceDeviceBettingSession() = 
        member val Id:String = null with get,set

    [<AllowNullLiteral>]
    type RecordList<T>() = 
        inherit ResizeArray<T>()

F# GetSelfServiceDeviceBettingSession DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}