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

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

{"Promotions":[{"PromotionContentId":0,"PromotionId":"String","Name":"String","Description":"String","PromotionStartDate":"\/Date(-62135596800000)\/","PromotionEndDate":"\/Date(-62135596800000)\/","IconUrl":"String","ImageUrl":"String","TermsAndConditionString":"String","LinkTitle":"String","LinkUrl":"String","IsPublic":false}]}