Betting.WebApi

<back to all web services

ResolveBet

Requires Authentication
The following routes are available for this service:
POST/cmd/slips/bets/resolve
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ResolveBet
    {
        public String id = null;
        public String betId = null;
        public BetPlacementStatus placementStatus = null;
        public HashMap<String,String> payload = null;
        
        public String getId() { return id; }
        public ResolveBet setId(String value) { this.id = value; return this; }
        public String getBetId() { return betId; }
        public ResolveBet setBetId(String value) { this.betId = value; return this; }
        public BetPlacementStatus getPlacementStatus() { return placementStatus; }
        public ResolveBet setPlacementStatus(BetPlacementStatus value) { this.placementStatus = value; return this; }
        public HashMap<String,String> getPayload() { return payload; }
        public ResolveBet setPayload(HashMap<String,String> value) { this.payload = value; return this; }
    }

    public static enum BetPlacementStatus
    {
        @SerializedName("0") Pending(0),
        @SerializedName("2") Accepted(2),
        @SerializedName("3") Rejected(3),
        @SerializedName("4") Failed(4);

        private final int value;
        BetPlacementStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java ResolveBet DTOs

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

HTTP + JSV

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

POST /cmd/slips/bets/resolve HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	betId: String,
	placementStatus: 0,
	payload: 
	{
		String: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	errorCode: String,
	message: String,
	stackTrace: String,
	errors: 
	[
		{
			errorCode: String,
			fieldName: String,
			message: String,
			meta: 
			{
				String: String
			}
		}
	],
	meta: 
	{
		String: String
	}
}