Process promo code decisions
The Promo Code decision would execute the discount rule defined behind the given promo code, which is configured from the Zephr console. The decision request would require a list of relevant products with its pricing data, typically it would have come from a Dynamic Offer decision response. The Promo Code decision would generate decision response like a regular Dynamic Offer, but with the discount output according to the Promo Code's discount rule.
Alternatively, if configured and the feature is enabled, this api can execute a dynamic offer rule that is linked to this promo code. Selected products are not required for executing promo codes using this method. Parameters supplied to the dynamic offers decisions api can also be supplied to this api for this promo code flow (session, foreign_keys, etc).
Request
- Base URLhttps://demo-site
- URLhttps://demo-site/zephr/public/decisions/v1/promo-codes
- Auth
- API key in cookie blaize_session
- or API key in query parameter jwt
- or API key in header x-blaize-jwt
- or API key in header x-zephr-jwt
- or HTTP bearer
- or API key in cookie blaize_jwt
Request body
Example request
{
"selected_products": [
{
"id": "product-a",
"payment_plan": {
"provider": "zuora-billing"
}
}
]
}Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.