FBiHBetting.Aggregator.WebApi

<back to all web services

ReportBetPlacements

The following routes are available for this service:
POST/bets/place
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports FBiHBetting.Aggregator.WebApi.ServiceModel

Namespace Global

    Namespace FBiHBetting.Aggregator.WebApi.ServiceModel

        Public Partial Class BetPlacement
            Public Overridable Property Id As String
            Public Overridable Property BetCode As String
            Public Overridable Property BettorState As BettorState
            Public Overridable Property Origin As Origin
            Public Overridable Property BetIssuedAt As Date
            Public Overridable Property IsLive As Boolean
            Public Overridable Property IsSystemBet As Boolean
            Public Overridable Property Payload As Dictionary(Of String, String)
            Public Overridable Property PaymentOrigin As PaymentOrigin
            Public Overridable Property PayinRecap As PayinRecap
            Public Overridable Property PossiblePayoutRecap As PayoutRecap
        End Class

        Public Partial Class BettorState
            Public Overridable Property Id As String
            Public Overridable Property AccountBalanceBeforeBet As Decimal
            Public Overridable Property AccountBalanceAfterBet As Decimal
        End Class

        Public Partial Class Origin
            Public Overridable Property Device As Reference
            Public Overridable Property Location As Reference
            Public Overridable Property LocationGroup As Reference
            Public Overridable Property Organization As Reference
            Public Overridable Property ProductInstance As ProductInstanceRef
        End Class

        Public Partial Class PayinRecap
            Public Overridable Property Payin As Decimal
            Public Overridable Property TaxAmount As Decimal
            Public Overridable Property Stake As Decimal
        End Class

        Public Enum PaymentOrigin
            POS = 0
            SMS = 1
            Internet = 2
        End Enum

        Public Partial Class PayoutRecap
            Public Overridable Property Winnings As Decimal
            Public Overridable Property TaxAmount As Decimal
            Public Overridable Property Payout As Decimal
        End Class

        Public Enum ProductCategory
            Sportsbook = 0
            RNG = 1
        End Enum

        Public Partial Class ProductInstanceRef
            Public Overridable Property Id As String
            Public Overridable Property Name As String
            Public Overridable Property Product As ProductReference
        End Class

        Public Partial Class ProductReference
            Public Overridable Property Id As String
            Public Overridable Property Value As String
            Public Overridable Property Category As ProductCategory
            Public Overridable Property ProductProvider As Reference
        End Class

        Public Partial Class Reference
            Public Overridable Property Id As String
            Public Overridable Property Value As String
        End Class

        Public Partial Class ReportBetPlacements
            Public Overridable Property BetPlacements As List(Of BetPlacement)
        End Class
    End Namespace
End Namespace

VB.NET ReportBetPlacements DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /bets/place HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"betPlacements":[{"id":"String","betCode":"String","bettorState":{"id":"String","accountBalanceBeforeBet":0,"accountBalanceAfterBet":0},"origin":{"device":{"id":"String","value":"String"},"location":{"id":"String","value":"String"},"locationGroup":{"id":"String","value":"String"},"organization":{"id":"String","value":"String"},"productInstance":{"id":"String","name":"String","product":{"id":"String","value":"String","category":0,"productProvider":{"id":"String","value":"String"}}}},"betIssuedAt":"0001-01-01T00:00:00.0000000Z","isLive":false,"isSystemBet":false,"payload":{"String":"String"},"paymentOrigin":0,"payinRecap":{"payin":0,"taxAmount":0,"stake":0},"possiblePayoutRecap":{"winnings":0,"taxAmount":0,"payout":0}}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}