TBS Apps API

<back to all web services

UmbracoPromotionsRequest

The following routes are available for this service:
GET,POST/UmbracoPromotionsGets Promotions from the CMS.Gets Umbraco Promotions.
UmbracoPromotionsResponse Parameters:
NameParameterData TypeRequiredDescription
PromotionsformList<DtoUmbracoPromotion>No
DtoUmbracoPromotion Parameters:
NameParameterData TypeRequiredDescription
PromotionContentIdformintNo
PromotionIdformstringNo
NameformstringNo
DescriptionformstringNo
PromotionStartDateformDateTimeNo
PromotionEndDateformDateTimeNo
IconUrlformstringNo
ImageUrlformstringNo
TermsAndConditionStringformstringNo
LinkTitleformstringNo
LinkUrlformstringNo
IsPublicformboolNo

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 /UmbracoPromotions HTTP/1.1 
Host: ios-api.betright.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	Promotions: 
	[
		{
			PromotionContentId: 0,
			PromotionId: String,
			Name: String,
			Description: String,
			PromotionStartDate: 0001-01-01,
			PromotionEndDate: 0001-01-01,
			IconUrl: String,
			ImageUrl: String,
			TermsAndConditionString: String,
			LinkTitle: String,
			LinkUrl: String,
			IsPublic: False
		}
	]
}