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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

{"EventId":0,"BetSubTypeCode":"String","MarketTypeCode":"String","DividendTypeCode":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Items":[{"PromoDescription":"String","PromotionId":0,"FreeBetId":0,"FreeBetAmount":0,"ExpiryDateUtc":"0001-01-01T00:00:00.0000000Z","Description":"String","ExpiryDate":"01/01/0001","FreeBetCriteria":{"FreeBetCriteriaID":0,"Description":"String"}}]}