| POST | /cmd/slips/bets/settle |
|---|
import Foundation
import ServiceStack
public class SettleBet : Codable
{
public var id:String
public var betId:String
public var outcome:BetOutcome
public var winnings:Double
public var results:[String:String]
required public init(){}
}
public enum BetOutcome : Int, Codable
{
case Unknown = 0
case Lost = 1
case Won = 2
case Void = 3
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/slips/bets/settle HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","betId":"String","outcome":0,"winnings":0,"results":{"String":"String"}}
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"}}