POST api/general/send-knockback-common?cust_ref={cust_ref}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cust_ref

string

Required

Body Parameters

KnockbackGeneralCommonModel
NameDescriptionTypeAdditional information
BetslipInfo

KnockbackBetslipInfoModel

None.

Details

Collection of KnockbackCommonModel

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": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1",
      "WagerNumber": 1,
      "WagerTypeID": 2,
      "LiabilityExceeded": true,
      "AvailableStakeSelection": "sample string 4",
      "AvailableStake": 1.0,
      "LiabFailureCode": 1
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1",
      "WagerNumber": 1,
      "WagerTypeID": 2,
      "LiabilityExceeded": true,
      "AvailableStakeSelection": "sample string 4",
      "AvailableStake": 1.0,
      "LiabFailureCode": 1
    }
  ]
}

application/xml, text/xml

Sample:
<KnockbackGeneralCommonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Anthill.Geoff.Host.Models">
  <Details>
    <KnockbackCommonModel>
      <AvailableStake>1</AvailableStake>
      <AvailableStakeSelection>sample string 4</AvailableStakeSelection>
      <ErrorCode>1</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
      <LiabFailureCode>1</LiabFailureCode>
      <LiabilityExceeded>true</LiabilityExceeded>
      <WagerNumber>1</WagerNumber>
      <WagerTypeID>2</WagerTypeID>
    </KnockbackCommonModel>
    <KnockbackCommonModel>
      <AvailableStake>1</AvailableStake>
      <AvailableStakeSelection>sample string 4</AvailableStakeSelection>
      <ErrorCode>1</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
      <LiabFailureCode>1</LiabFailureCode>
      <LiabilityExceeded>true</LiabilityExceeded>
      <WagerNumber>1</WagerNumber>
      <WagerTypeID>2</WagerTypeID>
    </KnockbackCommonModel>
  </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>
</KnockbackGeneralCommonModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>