POST api/proxy/bet

Request Information

URI Parameters

None.

Body Parameters

Betslip
NameDescriptionTypeAdditional information
Id

string

None.

BasketId

string

None.

CustomerRef

string

None.

Bets

Collection of Bet

None.

Wagers

Collection of Wager

None.

KeepBetslip

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "BasketId": "sample string 2",
  "CustomerRef": "sample string 3",
  "Bets": [
    {
      "BasketErrorType": 4,
      "Id": "sample string 1",
      "EventFileName": "sample string 2",
      "EventGroup": 3,
      "EventsNumber": 4,
      "SelectionNumber": 5,
      "PriceCode": "sample string 6",
      "Price": "sample string 7",
      "GPriceCode": "sample string 8",
      "GPrice": 9.0,
      "Coi": "sample string 10",
      "Detail": "sample string 11",
      "Name": "sample string 12",
      "BetPrice": "sample string 13",
      "NewPC": "sample string 14",
      "WagerName": "sample string 15",
      "IsAvailable": true,
      "IsEachWay": true,
      "OldPrice": "sample string 18",
      "OddsNumerator": 19,
      "OddsDenominator": 20,
      "DecimalPrice": 0.95
    },
    {
      "BasketErrorType": 4,
      "Id": "sample string 1",
      "EventFileName": "sample string 2",
      "EventGroup": 3,
      "EventsNumber": 4,
      "SelectionNumber": 5,
      "PriceCode": "sample string 6",
      "Price": "sample string 7",
      "GPriceCode": "sample string 8",
      "GPrice": 9.0,
      "Coi": "sample string 10",
      "Detail": "sample string 11",
      "Name": "sample string 12",
      "BetPrice": "sample string 13",
      "NewPC": "sample string 14",
      "WagerName": "sample string 15",
      "IsAvailable": true,
      "IsEachWay": true,
      "OldPrice": "sample string 18",
      "OddsNumerator": 19,
      "OddsDenominator": 20,
      "DecimalPrice": 0.95
    }
  ],
  "Wagers": [
    {
      "Name": "sample string 1",
      "TypeId": 2,
      "NumberOfLines": 3,
      "IsEachWay": true,
      "EachWayType": "Each Way",
      "EachWay": true,
      "Stake": 6.0,
      "TotalStake": 36.0,
      "IsSubmitted": true
    },
    {
      "Name": "sample string 1",
      "TypeId": 2,
      "NumberOfLines": 3,
      "IsEachWay": true,
      "EachWayType": "Each Way",
      "EachWay": true,
      "Stake": 6.0,
      "TotalStake": 36.0,
      "IsSubmitted": true
    }
  ],
  "KeepBetslip": true
}

application/xml, text/xml

Sample:
<Betslip xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Anthill.Geoff.Integrations.Betty.Models.Wrapper">
  <BasketId>sample string 2</BasketId>
  <Bets>
    <Betslip.Bet>
      <BasketErrorType>SelectionUnavailable</BasketErrorType>
      <BetPrice>sample string 13</BetPrice>
      <Coi>sample string 10</Coi>
      <Detail>sample string 11</Detail>
      <EventFileName>sample string 2</EventFileName>
      <EventGroup>3</EventGroup>
      <EventsNumber>4</EventsNumber>
      <GPrice>9</GPrice>
      <GPriceCode>sample string 8</GPriceCode>
      <Id>sample string 1</Id>
      <IsAvailable>true</IsAvailable>
      <IsEachWay>true</IsEachWay>
      <Name>sample string 12</Name>
      <NewPC>sample string 14</NewPC>
      <OddsDenominator>20</OddsDenominator>
      <OddsNumerator>19</OddsNumerator>
      <OldPrice>sample string 18</OldPrice>
      <Price>sample string 7</Price>
      <PriceCode>sample string 6</PriceCode>
      <SelectionNumber>5</SelectionNumber>
      <WagerName>sample string 15</WagerName>
    </Betslip.Bet>
    <Betslip.Bet>
      <BasketErrorType>SelectionUnavailable</BasketErrorType>
      <BetPrice>sample string 13</BetPrice>
      <Coi>sample string 10</Coi>
      <Detail>sample string 11</Detail>
      <EventFileName>sample string 2</EventFileName>
      <EventGroup>3</EventGroup>
      <EventsNumber>4</EventsNumber>
      <GPrice>9</GPrice>
      <GPriceCode>sample string 8</GPriceCode>
      <Id>sample string 1</Id>
      <IsAvailable>true</IsAvailable>
      <IsEachWay>true</IsEachWay>
      <Name>sample string 12</Name>
      <NewPC>sample string 14</NewPC>
      <OddsDenominator>20</OddsDenominator>
      <OddsNumerator>19</OddsNumerator>
      <OldPrice>sample string 18</OldPrice>
      <Price>sample string 7</Price>
      <PriceCode>sample string 6</PriceCode>
      <SelectionNumber>5</SelectionNumber>
      <WagerName>sample string 15</WagerName>
    </Betslip.Bet>
  </Bets>
  <CustomerRef>sample string 3</CustomerRef>
  <Id>sample string 1</Id>
  <KeepBetslip>true</KeepBetslip>
  <Wagers>
    <Betslip.Wager>
      <EachWay>true</EachWay>
      <IsEachWay>true</IsEachWay>
      <IsSubmitted>true</IsSubmitted>
      <Name>sample string 1</Name>
      <NumberOfLines>3</NumberOfLines>
      <Stake>6</Stake>
      <TypeId>2</TypeId>
    </Betslip.Wager>
    <Betslip.Wager>
      <EachWay>true</EachWay>
      <IsEachWay>true</IsEachWay>
      <IsSubmitted>true</IsSubmitted>
      <Name>sample string 1</Name>
      <NumberOfLines>3</NumberOfLines>
      <Stake>6</Stake>
      <TypeId>2</TypeId>
    </Betslip.Wager>
  </Wagers>
</Betslip>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />