Promotions
Manage of general promotions
Available Promotions
Get list of available Promotions
GET /promotions
RESPONSE
{
"status"=200,
"message"="success",
"data": [
{
"Id": "{promotion id}",
"TenantId":"{tenant id}",
"Name": "{promotion name}",
"Description": "{promotion description}",
"Code": "{promotion unique code}",
"Enabled": "{promotion enabled}",
"MainImageUrl": "{promotion image url}",
"Type": "{promotion type}",
"PrizeType": "{promotion type}",
"RequirePOPCode": "{promotion require proof of purchase }",
"MechanicType": "{promotion mechanic type}",
"StartDate": "{date when promotion starts}",
"EndDate": "{date when promotion ends}",
"FraudPreventionModuleActivation": "{is active the fraud prevention module}",
},
,...
]
}
Get Promotion
Get an individual Promotion information.
GET /promotions/{promotion id}
{
"Id": "{promotion id}",
"TenantId":"{tenant id}",
"Name": "{promotion name}",
"Description": "{promotion description}",
"Code": "{promotion unique code}",
"Enabled": "{promotion enabled}",
"MainImageUrl": "{promotion image url}",
"Type": "{promotion type}",
"PrizeType": "{promotion type}",
"RequirePOPCode": "{promotion require proof of purchase }",
"MechanicType": "{promotion mechanic type}",
"StartDate": "{date when promotion starts}",
"EndDate": "{date when promotion ends}",
"FraudPreventionModuleActivation": "{is active the fraud prevention module}",
"Products": [
{
"Product":{
"id": "{product id}",
"name": "{product name}"
}
},
...
],
"Form":{
"FormItems": [
{
"Id": "{Form item identifier}",
"Statement": "Question statement",
"ImageUrl": "Image asociate to question",
"Type": "{Type of question(0=>text, 1=>Single-Choice,2=>Multi-Choice,3=>Image) }",
"TypeString": "{Question type(Text,Single-Choice,Multi-Choice,Image)}",
"Fields": [
{
"Id": "{Field id}",
"Name": {"Name of field. Not used for Text or Images"},
"ImageUrl": "{Final url image, used for consultation}",
"ImageUrlBase64": "{Image decode in base64. Used only for Image Form items}",
"value": "{Value of consumer anwer}",
"HasPoints": "{indicates whether the question accumulates points}",
"Points": "{Points of question}"
}
],
"TotalPoints": "{Maximum Total posible points}",
"MinimalPoints": "{Minimun points to approve}"
},
...
]
}
}