FBiHBetting.Aggregator.WebApi

<back to all web services

ReportBetPayouts

The following routes are available for this service:
POST/bets/payout
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 BetPayout
            Public Overridable Property Id As String
            Public Overridable Property Origin As Origin
            Public Overridable Property BetPaidOutAt As Date
            Public Overridable Property Payload As Dictionary(Of String, String)
            Public Overridable Property PaymentOrigin As PaymentOrigin
            Public Overridable Property PayoutRecap As PayoutRecap
        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 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 ReportBetPayouts
            Public Overridable Property BetPayouts As List(Of BetPayout)
        End Class
    End Namespace
End Namespace

VB.NET ReportBetPayouts DTOs

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.

POST /bets/payout HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"betPayouts":[{"id":"String","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"}}}},"betPaidOutAt":"0001-01-01T00:00:00.0000000Z","payload":{"String":"String"},"paymentOrigin":0,"payoutRecap":{"winnings":0,"taxAmount":0,"payout":0}}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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