| GET | /ContentfulGetAllPromotionsNoFilter | Gets all promotions, without any filters | Gets all promotions from contentful, without any filters |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Promotions | form | List<ContentfulPromoForAffiliates> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| PromotionId | form | string | No | |
| Name | form | string | No | |
| Description | form | string | No | |
| PromotionStartDate | form | DateTime? | No | |
| PromotionEndDate | form | DateTime? | No | |
| IconUrl | form | string | No | |
| ImageUrl | form | string | No | |
| ImageHeight | form | decimal? | No | |
| ImageWidth | form | decimal? | No | |
| TermsAndConditionString | form | string | No | |
| LinkTitle | form | string | No | |
| LinkUrl | form | string | No | |
| IsPublic | form | bool? | No | |
| ShowToLoggedIn | form | bool? | No | |
| ShowToLoggedOut | form | bool? | No | |
| VisibleOnWebsite | form | bool? | No | |
| VisibleOnAndroid | form | bool? | No | |
| VisibleOnIOS | form | bool? | No | |
| JurisdictionCode | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Promotions":[{"Id":0,"PromotionId":"String","Name":"String","Description":"String","PromotionStartDate":"0001-01-01T00:00:00.0000000Z","PromotionEndDate":"0001-01-01T00:00:00.0000000Z","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}