TBS Apps API

<back to all web services

ContentfulGetAllPromotionsNoFilterRequest

The following routes are available for this service:
GET/ContentfulGetAllPromotionsNoFilterGets all promotions, without any filtersGets all promotions from contentful, without any filters
ContentfulGetAllPromotionsNoFilterResponse Parameters:
NameParameterData TypeRequiredDescription
PromotionsformList<ContentfulPromoForAffiliates>No
ResponseDataBase Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
Identityformlong?No
ContentfulPromoForAffiliates Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
PromotionIdformstringNo
NameformstringNo
DescriptionformstringNo
PromotionStartDateformDateTime?No
PromotionEndDateformDateTime?No
IconUrlformstringNo
ImageUrlformstringNo
ImageHeightformdecimal?No
ImageWidthformdecimal?No
TermsAndConditionStringformstringNo
LinkTitleformstringNo
LinkUrlformstringNo
IsPublicformbool?No
ShowToLoggedInformbool?No
ShowToLoggedOutformbool?No
VisibleOnWebsiteformbool?No
VisibleOnAndroidformbool?No
VisibleOnIOSformbool?No
JurisdictionCodeformstringNo

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.

GET /ContentfulGetAllPromotionsNoFilter HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Promotions: 
	[
		{
			Id: 0,
			PromotionId: String,
			Name: String,
			Description: String,
			PromotionStartDate: 0001-01-01,
			PromotionEndDate: 0001-01-01,
			IconUrl: String,
			ImageUrl: String,
			ImageHeight: 0,
			ImageWidth: 0,
			TermsAndConditionString: String,
			LinkTitle: String,
			LinkUrl: String,
			IsPublic: False,
			ShowToLoggedIn: False,
			ShowToLoggedOut: False,
			VisibleOnWebsite: False,
			VisibleOnAndroid: False,
			VisibleOnIOS: False,
			JurisdictionCode: String
		}
	],
	ErrorNo: 0,
	Message: String,
	Identity: 0
}