date of discount validity from
Example:"2014-11-19"
date of discount validity to
Example:"2014-12-19"
color of the flag
Example:"FF00FF"
status of the discount
Enum:"available""unavailable""expired""planned"
Example:"available"
targeting level of the discount
Enum:"eshop""product""category""brand"
Example:"eshop"
definition of products needed to get discount
defines if discount is valid for unregistered customers, default value is false
Example:true
{ "id": 1, "title": "18 + 4 free", "validFrom": "2014-11-19", "validTo": "2014-12-19", "timeUnlimited": true, "customerGroups": [ { … } ], "displayFlag": true, "flagColor": "FF00FF", "priority": 1, "isActive": true, "status": "available", "targetingLevel": "eshop", "targeting": { "productGuids": [ … ], "categoryGuids": [ … ], "brandCodes": [ … ] }, "includeUnregisteredCustomers": true, "settings": [ { … } ] }