TBS Apps API

<back to all web services

AvailableFreeBetsMultiRequest

Requires Authentication
Gets 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.
AvailableFreeBetsMultiRequest Parameters:
NameParameterData TypeRequiredDescription
BetSubTypeCodebodystringNoBet SubType Code
EventIdbodyList<int>NoEvent Id
MarketTypeCodebodyList<string>NoMarket Type Code
DividendTypeCodebodyList<string>NoDividend 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 .soap12 suffix or ?format=soap12

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<AvailableFreeBetsMultiRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions">
  <BetSubTypeCode>String</BetSubTypeCode>
  <DividendTypeCode xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </DividendTypeCode>
  <EventId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </EventId>
  <MarketTypeCode xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </MarketTypeCode>
</AvailableFreeBetsMultiRequest>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<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>

    </soap12:Body>
</soap12:Envelope>