TBS Apps API

<back to all web services

AvailableFreeBetsRequest

Requires Authentication
The following routes are available for this service:
GET,POST/AvailableFreeBetsGets available free bets for currently authenticated user, with the given filtersGets available free bets for currently authenticated user. This is to be used in the user account views and not meant for the betslip. Available freebets means currently active free bets (bonus bets). Depending on how they are set up in marketting admin, these bets can be further divided in to smaller bets by the user.
AvailableFreeBetsRequest Parameters:
NameParameterData TypeRequiredDescription
EventIdbodyintNoEvent Id
BetSubTypeCodebodystringNoBet SubType Code
MarketTypeCodebodystringNoMarket Type Code
DividendTypeCodebodystringNoDividend Type Code
AvailableFreeBetsResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<FreeBet>No
FreeBet Parameters:
NameParameterData TypeRequiredDescription
PromoDescriptionformstringNo
PromotionIdformintNo
FreeBetIdformlongNo
FreeBetAmountformdecimalNo
ExpiryDateUtcformDateTimeNo
DescriptionformstringNo
ExpiryDateformstringNo
FreeBetSplitOptionsformIEnumerable<FreeBetSplitOption>No
FreeBetCriteriaformFreeBetCriteriaNo
FreeBetSplitOption Parameters:
NameParameterData TypeRequiredDescription
SplitCountformintNo
SplitDescriptionformstringNo
SplitGroupIdformintNo
FreeBetCriteria Parameters:
NameParameterData TypeRequiredDescription
FreeBetCriteriaIDformintNo
DescriptionformstringNo
FBCEventTypeIDformIEnumerable<int>No
FBCMasterCategoryIDformIEnumerable<int>No
FBCCategoryIDformIEnumerable<int>No
FBCMasterEventIDformIEnumerable<int>No
FBCEventIDformIEnumerable<int>No
FBCMasterCategoryClassIDformIEnumerable<int>No
FBCCategoryClassIDformIEnumerable<int>No
FBCMasterEventClassIDformIEnumerable<int>No
FBCEventClassIDformIEnumerable<int>No
FBCChannelIDformIEnumerable<int>No
FBCBetTypeCodeformIEnumerable<string>No
FBCBetSubTypeCodeformIEnumerable<string>No
FBCBetDetailTypeCodeformIEnumerable<string>No
FBCMarketTypeCodeformIEnumerable<string>No
FBCDividendTypeCodeformIEnumerable<string>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /AvailableFreeBets HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AvailableFreeBetsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <BetSubTypeCode>String</BetSubTypeCode>
  <DividendTypeCode>String</DividendTypeCode>
  <EventId>0</EventId>
  <MarketTypeCode>String</MarketTypeCode>
</AvailableFreeBetsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AvailableFreeBetsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
    <d2p1:FreeBet>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:ExpiryDateUtc>0001-01-01T00:00:00</d2p1:ExpiryDateUtc>
      <d2p1:FreeBetAmount>0</d2p1:FreeBetAmount>
      <d2p1:FreeBetCriteria>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:FBCBetDetailTypeCode xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCBetSubTypeCode xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCBetTypeCode xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCCategoryClassID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCCategoryID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCChannelID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCDividendTypeCode xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCEventClassID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCEventID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCEventTypeID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCMarketTypeCode xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCMasterCategoryClassID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCMasterCategoryID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCMasterEventClassID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FBCMasterEventID xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d2p1:FreeBetCriteriaID>0</d2p1:FreeBetCriteriaID>
      </d2p1:FreeBetCriteria>
      <d2p1:FreeBetId>0</d2p1:FreeBetId>
      <d2p1:FreeBetSplitOptions i:nil="true" />
      <d2p1:PromoDescription>String</d2p1:PromoDescription>
      <d2p1:PromotionId>0</d2p1:PromotionId>
    </d2p1:FreeBet>
  </Items>
</AvailableFreeBetsResponse>