FBiHBetting.Aggregator.WebApi

<back to all web services

ReportBetExpirations

The following routes are available for this service:
POST/bets/expire
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ReportBetExpirations
{
    open var betExpirations:ArrayList<BetExpiration>? = null
}

open class BetExpiration
{
    open var id:String? = null
    open var origin:Origin? = null
    open var betExpiredAt:Date? = null
    open var paymentOrigin:PaymentOrigin? = null
    open var payoutRecap:PayoutRecap? = null
}

open class Origin
{
    open var device:Reference? = null
    open var location:Reference? = null
    open var locationGroup:Reference? = null
    open var organization:Reference? = null
    open var productInstance:ProductInstanceRef? = null
}

open class Reference
{
    open var id:String? = null
    open var value:String? = null
}

open class ProductInstanceRef
{
    open var id:String? = null
    open var name:String? = null
    open var product:ProductReference? = null
}

open class ProductReference
{
    open var id:String? = null
    open var value:String? = null
    open var category:ProductCategory? = null
    open var productProvider:Reference? = null
}

enum class ProductCategory(val value:Int)
{
    @SerializedName("0") Sportsbook(0),
    @SerializedName("1") Rng(1),
}

enum class PaymentOrigin(val value:Int)
{
    @SerializedName("0") Pos(0),
    @SerializedName("1") Sms(1),
    @SerializedName("2") Internet(2),
}

open class PayoutRecap
{
    open var winnings:BigDecimal? = null
    open var taxAmount:BigDecimal? = null
    open var payout:BigDecimal? = null
}

Kotlin ReportBetExpirations 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/expire HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"betExpirations":[{"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"}}}},"betExpiredAt":"0001-01-01T00:00:00.0000000Z","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"}}