- Process dynamic offer decisions
The Dynamic Offer Decision Engine can be invoked via the Public API to calculate a decision output response based upon each property rule under the Dynamic Offer created in the Zephr Console.
The dynamic offer to evaluate, must specify the slug of the dynamic offer, and any custom input to be used in the rules.
{ "slug": "offerX", "inputs": {} }
- https://demo-sitehttps://demo-site/zephr/public/decisions/v2/dynamic-offers
{ "dynamic_offer": { "slug": "offerX", "inputs": {} }, "session": "xxx-xxx-xxx", "foreign_keys": {}, "ip": "x.x.x.x", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11)...", "jwt": "xxx-xxx-xxx", "path": "/x.html", "content_id": "xxx-xxx-xxx" }
OK
The processed output for mainly the Product rule. Price and Discount, if present, the output of those would be nested under each product element according to the rule specification.
key value pair of any custom property rule output. The key would be the property id, the value would be its rule output
The rule outcome for each property rule within the offer. If you wish to record user conversion data, you would need to send these outcome data back to Zephr upon when the conversion is happening.
{ "products": [ { … } ], "tagline": "string", "custom": {}, "outcomes": [ { … } ], "errors": [ { … } ] }