FBiHBetting.Aggregator.WebApi

<back to all web services

ReportBetCancelations

The following routes are available for this service:
POST/bets/cancel
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 BetCancelation
            Public Overridable Property Id As String
            Public Overridable Property Origin As Origin
            Public Overridable Property BetCanceledAt As Date
            Public Overridable Property PaymentOrigin As PaymentOrigin
            Public Overridable Property PayinRecap As PayinRecap
        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 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 ReportBetCancelations
            Public Overridable Property BetCancelations As List(Of BetCancelation)
        End Class
    End Namespace
End Namespace

VB.NET ReportBetCancelations 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/cancel HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"betCancelations":[{"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"}}}},"betCanceledAt":"0001-01-01T00:00:00.0000000Z","paymentOrigin":0,"payinRecap":{"payin":0,"taxAmount":0,"stake":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"}}