| POST | /bettingPolicies/config |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | No | |
| Policies | body | BettingPolicies | No | |
| ProductInstanceRef | body | Reference | No | |
| OwnerRef | body | Reference | No | |
| IsActive | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PayinConstraints | form | List<PayinConstraint> | No | |
| PayinTaxationPolicyId | form | string | No | |
| WinningsCaps | form | List<WinningsCap> | No | |
| WinningsTaxationPolicyId | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | PayinConstraintType | No | |
| Min | form | Money | No | |
| Default | form | Money | No | |
| WarningThreshold | form | Money | No | |
| Max | form | Money | No |
| Name | Value | |
|---|---|---|
| SingleBet | 0 | |
| MultiBet | 1 | |
| SystemBet | 2 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Amount | form | decimal | No | |
| Currency | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | WinningsCapType | No | |
| Cap | form | Money | No |
| Name | Value | |
|---|---|---|
| SingleBet | 0 | |
| MultiBet | 1 | |
| SystemBet | 2 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Value | form | string | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /bettingPolicies/config HTTP/1.1
Host: api.wwin.ath.cx
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":"String","policies":{"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"},"productInstanceRef":{"id":"String","value":"String"},"ownerRef":{"id":"String","value":"String"},"isActive":false}
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"}}