FBiHBetting.Aggregator.WebApi

<back to all web services

ReportBetExpirations

The following routes are available for this service:
POST/bets/expire
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 BetExpiration
            Public Overridable Property Id As String
            Public Overridable Property Origin As Origin
            Public Overridable Property BetExpiredAt As Date
            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 ReportBetExpirations
            Public Overridable Property BetExpirations As List(Of BetExpiration)
        End Class
    End Namespace
End Namespace

VB.NET ReportBetExpirations DTOs

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

HTTP + XML

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

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

<ReportBetExpirations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FBiHBetting.Aggregator.WebApi.ServiceModel">
  <BetExpirations>
    <BetExpiration>
      <BetExpiredAt>0001-01-01T00:00:00</BetExpiredAt>
      <Id>String</Id>
      <Origin>
        <Device>
          <Id>String</Id>
          <Value>String</Value>
        </Device>
        <Location>
          <Id>String</Id>
          <Value>String</Value>
        </Location>
        <LocationGroup>
          <Id>String</Id>
          <Value>String</Value>
        </LocationGroup>
        <Organization>
          <Id>String</Id>
          <Value>String</Value>
        </Organization>
        <ProductInstance>
          <Id>String</Id>
          <Name>String</Name>
          <Product>
            <Category>Sportsbook</Category>
            <Id>String</Id>
            <ProductProvider>
              <Id>String</Id>
              <Value>String</Value>
            </ProductProvider>
            <Value>String</Value>
          </Product>
        </ProductInstance>
      </Origin>
      <PaymentOrigin>POS</PaymentOrigin>
      <PayoutRecap>
        <Payout>0</Payout>
        <TaxAmount>0</TaxAmount>
        <Winnings>0</Winnings>
      </PayoutRecap>
    </BetExpiration>
  </BetExpirations>
</ReportBetExpirations>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ErrorCode>String</ErrorCode>
  <Message>String</Message>
  <StackTrace>String</StackTrace>
  <Errors>
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseError>
  </Errors>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
</ResponseStatus>