Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Evaluates a loyalty scheme for a user

 

Endpoint ID:6002
Method:POST
URL:

/services/scheme/evaluate/dp-key/{dp-key}/{scheme-id}

/services/scheme/evaluate/ext-key/{ext-key}/{ext-type}/{scheme-id}

 dp-key

dialogportal™ master key that uniquely identifies account to evaluate the scheme for

 ext-key

External key that uniquely identifies account to evaluate the scheme for

 ext-typeType of external key
 scheme-idNumeric value identifying the loyalty scheme that should be evaluated
Request body:

JSON data containing the tags that should be evaluated

{
    "tags": [ 5, 6, 9 ]
}

Response body:

JSON data with information about the evaluation result

Example
{
	"points": 58.5,
	"noFiltersMatched": false,
	"campaignFilterMatched": true,
    "campaignResult": {
        "pointType": "MultiplicationFactor",
        "pointModifier": 2
    },
    "standardResults": [
        {
            "filterID": 87,
            "name": "Standard filter",
            "points": 58.5,
            "comment": "Earned honestly",
            "returnTag": {
                "schemeID": 22,
                "label": "label1",
                "resultTagID": 11
            }
        }
    ]
}
Possible CampaignResult.PointType options
StandardPoints
MultiplicationFactor
AdditionalPoints
Status codes:200

Evaluation completed successfully

 404

The account or loyalty scheme were not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found
404.4Loyalty scheme not found
  • No labels