| POST | /bets/payout |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ReportBetPayouts
{
open var betPayouts:ArrayList<BetPayout>? = null
}
open class BetPayout
{
open var id:String? = null
open var origin:Origin? = null
open var betPaidOutAt:Date? = null
open var payload:HashMap<String,String>? = 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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}