Campaign Output

Schema for campaign output webhook integration

Product Discount Recommendation

Property

Type

Description

predictionId

String

Prediction Identifier

type

String

enum ["product_discount_recommendation"]

campaignId

String

Campaign Identifier

clientId

String

Client Identifier

maraxId

String

Marax identifier

userIdentities

Object

Available Identities. No property will be sent if no data exist in Marax system

userIdentities.clevertapId

String

Clevertap Identifier for user

userIdentities.userId

String

Client Identifier for user

userIdentities.email

String

User email

predictions

Array

Array of predictions made for the user

predictions.$.product_id

String

Product identifier

predictions.$.name

String

Name of the product

predictions.$.sku

String

SKU of the product

predictions.$.type

String

Enum: [ "flat", "percentage"]

predictions.$.discount

Number

Value of discount

predictions.$.min

Number

Minimum margin of discount

predictions.$.max

Number

Maximum margin of discount

predictions.$.step

Number

Step size used for discount

predictions.$.explanations

Object

Array of explanation object for predictions

predictions.$.explanations.$.step

String

Step in the prediction process

predictions.$.explanations.$.description

String

Description of the output and algorithm used for prediction

predictions.$.explanations.$.score

Object

Output score produced in the step