TBS Apps API

<back to all web services

AvailableFreeBetsForClientRequest

Requires Authentication
The following routes are available for this service:
GET,POST/AvailableFreeBetsForClientGets available free bets for currently authenticated userGets 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.
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 .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /AvailableFreeBetsForClient HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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