POST api/basket/addtobasketwithcoi?basketId={basketId}&customerReference={customerReference}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| basketId | string |
Required |
|
| customerReference | string |
Required |
Body Parameters
Bet| Name | Description | Type | Additional information |
|---|---|---|---|
| BasketErrorType | AddToBasketErrorType |
None. |
|
| Id | string |
None. |
|
| EventFileName | string |
None. |
|
| EventGroup | integer |
None. |
|
| EventsNumber | integer |
None. |
|
| SelectionNumber | integer |
None. |
|
| PriceCode | string |
None. |
|
| Price | string |
None. |
|
| GPriceCode | string |
None. |
|
| GPrice | decimal number |
None. |
|
| Coi | string |
None. |
|
| Detail | string |
None. |
|
| Name | string |
None. |
|
| BetPrice | string |
None. |
|
| NewPC | string |
None. |
|
| WagerName | string |
None. |
|
| IsAvailable | boolean |
None. |
|
| IsEachWay | boolean |
None. |
|
| OldPrice | string |
None. |
|
| OddsNumerator | integer |
None. |
|
| OddsDenominator | integer |
None. |
|
| DecimalPrice | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"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
}
application/xml, text/xml
Sample:
<Betslip.Bet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Anthill.Geoff.Integrations.Betty.Models.Wrapper"> <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>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
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/" />