POST api/general/send-knockback-restrictions?cust_ref={cust_ref}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| cust_ref | string |
Required |
Body Parameters
KnockbackGeneralUserRestrictionsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BetslipInfo | KnockbackBetslipInfoModel |
None. |
|
| Details | Collection of KnockbackUserRestrictionsModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"BetslipInfo": {
"BetsInfo": [
{
"MeetingName": "sample string 1",
"EventFile": "sample string 2",
"EventGroup": "sample string 3",
"EventIdx": "sample string 4",
"SelectionIdx": "sample string 5",
"SelectionName": "sample string 6",
"BetPrice": "sample string 7",
"PriceType": "sample string 8"
},
{
"MeetingName": "sample string 1",
"EventFile": "sample string 2",
"EventGroup": "sample string 3",
"EventIdx": "sample string 4",
"SelectionIdx": "sample string 5",
"SelectionName": "sample string 6",
"BetPrice": "sample string 7",
"PriceType": "sample string 8"
}
],
"WagersInfo": [
{
"WagerName": "sample string 1",
"IsEachWay": true,
"TotalStake": 3.0
},
{
"WagerName": "sample string 1",
"IsEachWay": true,
"TotalStake": 3.0
}
]
},
"Details": [
{
"ErrorSource": "User Restrictions",
"ErrorText": "sample string 1",
"PriceType": "sample string 2",
"Sportcode": "sample string 3",
"Stake": "sample string 4",
"MaxStakeAllowed": "sample string 5",
"ProhibitedPriceTypes": "sample string 6",
"ProhibitedSportcodes": "sample string 7"
},
{
"ErrorSource": "User Restrictions",
"ErrorText": "sample string 1",
"PriceType": "sample string 2",
"Sportcode": "sample string 3",
"Stake": "sample string 4",
"MaxStakeAllowed": "sample string 5",
"ProhibitedPriceTypes": "sample string 6",
"ProhibitedSportcodes": "sample string 7"
}
]
}
application/xml, text/xml
Sample:
<KnockbackGeneralUserRestrictionsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Anthill.Geoff.Host.Models">
<Details>
<KnockbackUserRestrictionsModel>
<ErrorText>sample string 1</ErrorText>
<MaxStakeAllowed>sample string 5</MaxStakeAllowed>
<PriceType>sample string 2</PriceType>
<ProhibitedPriceTypes>sample string 6</ProhibitedPriceTypes>
<ProhibitedSportcodes>sample string 7</ProhibitedSportcodes>
<Sportcode>sample string 3</Sportcode>
<Stake>sample string 4</Stake>
</KnockbackUserRestrictionsModel>
<KnockbackUserRestrictionsModel>
<ErrorText>sample string 1</ErrorText>
<MaxStakeAllowed>sample string 5</MaxStakeAllowed>
<PriceType>sample string 2</PriceType>
<ProhibitedPriceTypes>sample string 6</ProhibitedPriceTypes>
<ProhibitedSportcodes>sample string 7</ProhibitedSportcodes>
<Sportcode>sample string 3</Sportcode>
<Stake>sample string 4</Stake>
</KnockbackUserRestrictionsModel>
</Details>
<BetslipInfo>
<BetsInfo>
<KnockbackBetInfoModel>
<BetPrice>sample string 7</BetPrice>
<EventFile>sample string 2</EventFile>
<EventGroup>sample string 3</EventGroup>
<EventIdx>sample string 4</EventIdx>
<MeetingName>sample string 1</MeetingName>
<PriceType>sample string 8</PriceType>
<SelectionIdx>sample string 5</SelectionIdx>
<SelectionName>sample string 6</SelectionName>
</KnockbackBetInfoModel>
<KnockbackBetInfoModel>
<BetPrice>sample string 7</BetPrice>
<EventFile>sample string 2</EventFile>
<EventGroup>sample string 3</EventGroup>
<EventIdx>sample string 4</EventIdx>
<MeetingName>sample string 1</MeetingName>
<PriceType>sample string 8</PriceType>
<SelectionIdx>sample string 5</SelectionIdx>
<SelectionName>sample string 6</SelectionName>
</KnockbackBetInfoModel>
</BetsInfo>
<WagersInfo>
<KnockbackWagerInfoModel>
<IsEachWay>true</IsEachWay>
<TotalStake>3</TotalStake>
<WagerName>sample string 1</WagerName>
</KnockbackWagerInfoModel>
<KnockbackWagerInfoModel>
<IsEachWay>true</IsEachWay>
<TotalStake>3</TotalStake>
<WagerName>sample string 1</WagerName>
</KnockbackWagerInfoModel>
</WagersInfo>
</BetslipInfo>
</KnockbackGeneralUserRestrictionsModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>