Betting.WebApi

<back to all web services

InstallProductInstance

Requires Authentication
The following routes are available for this service:
POST/cmd/products/instances
InstallProductInstance Parameters:
NameParameterData TypeRequiredDescription
IdbodystringNo
NamebodystringNo
TitlebodystringNo
ProductbodyProductReferenceNo
CurrencybodyRefNo
BettingPoliciesbodyBettingPoliciesNo
ApiUrlbodystringNo
BackOfficeUrlbodystringNo
InstanceUrlbodystringNo
FeedPlayerUrlbodystringNo
ProductReference Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ValueformstringNo
CategoryformstringNo
ProductProviderformRefNo
Ref Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
ValformstringYes
BettingPolicies Parameters:
NameParameterData TypeRequiredDescription
PayinConstraintsformRecordList<PayinConstraint>No
PayinTaxationPolicyIdformstringNo
WinningsCapsformRecordList<WinningsCap>No
WinningsTaxationPolicyIdformstringNo
PayinConstraint Parameters:
NameParameterData TypeRequiredDescription
TypeformPayinConstraintTypeNo
MinformMoneyNo
DefaultformMoneyNo
WarningThresholdformMoneyNo
MaxformMoneyNo
PayinConstraintType Enum:
NameValue
SingleBet0
MultiBet1
SystemBet2
Money Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformstringYes
WinningsCap Parameters:
NameParameterData TypeRequiredDescription
TypeformWinningsCapTypeNo
CapformMoneyNo
WinningsCapType Enum:
NameValue
SingleBet0
MultiBet1
SystemBet2

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /cmd/products/instances HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String","name":"String","title":"String","product":{"id":"String","value":"String","category":"String","productProvider":{"id":"String","val":"String"}},"currency":{"id":"String","val":"String"},"bettingPolicies":{"payinConstraints":[{"type":0,"min":{"amount":0,"currency":"String"},"default":{"amount":0,"currency":"String"},"warningThreshold":{"amount":0,"currency":"String"},"max":{"amount":0,"currency":"String"}}],"payinTaxationPolicyId":"String","winningsCaps":[{"type":0,"cap":{"amount":0,"currency":"String"}}],"winningsTaxationPolicyId":"String"},"apiUrl":"String","backOfficeUrl":"String","instanceUrl":"String","feedPlayerUrl":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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