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.
OK
Bad Request
{- "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"
}
{- "products": [
- {
- "id": "string",
- "label": "string",
- "description": "string",
- "features": [
- {
- "id": "string",
- "label": "string",
- "description": "string",
- "type": "string"
}
], - "sharingLimit": 0,
- "metadata": {
- "order": 0,
- "recommended": true
}, - "paymentPlans": [
- {
- "planId": "string",
- "planData": { },
- "charges": [
- {
- "chargeId": "string",
- "prices": [
- { }
], - "chargeDefinitionData": { },
- "chargeData": { },
- "discounts": [
- null
]
}
]
}
], - "attributes": { }
}
], - "tagline": "string",
- "custom": { },
- "outcomes": [
- {
- "ruleId": "string",
- "outcomeId": "string"
}
], - "errors": [
- {
- "property": "string",
- "error": "string"
}
]
}