Step 5: Achievement rewards

Achievement Rewards let you trigger a Reward for players based on rules. Setting a Reward is optional. You can create multiple Rewards for an Achievement. 

To create a Reward, click Add and fill out the information as in the screen example above. 

To create a reward that will be issued to the player you need to fill out the details. Information like Name and Description is for the player to see when he or she receives the reward. Other information like Value, expires in, etc. configures the Reward.

REWARDS

EXAMPLES

Name

Required

String

The Name of the Reward. This is intended to be exposed to the player via the front end.
Value

Required

Double

A Reward value. For example, if the Reward is intended to be 5 free spins, then you would enter 5 for the value. 
Type

Required

String

Select a reward type that you pre created.

Description

Optional

String

The description of the Reward. This is intended to be exposed via the front end to the player. 
Expires in

Optional

Integer

The numerical value in how many minutes the reward notification will expire after the reward is Issued. You can use this to configure time-limited Rewards that are displayed to the player. 
Expires on a specific date

Optional

DateTime

Date and time that indicates when the reward will not be issued anymore.
Acknowledgement to 
issue required

Required

Boolean

Specify if the Reward is issued immediately, or if the Reward must be claimed. 

Delay
(NOT IMPLEMENTED)Delay the Reward by the specified minutes. You might use this for a game where the Reward could be issued before the game animation has completed. 
Metadata

Optional

Array [Object]

Optional information for your backend systems. 

APP Example:

Name
Free Spin
Value

1

Type
Badge
Description
You get 1 Free spin!
Expires in
N/A
Expires on a specific date
N/A
Acknowledgement to 
issue required
No
Delay
0
Metadata
Key
Login
Value
1

API Example:

{
"rewards": [
        "jsonClass": "Reward",
        "entityId": "Yi4SqWwB2ogi940JXPDl",
        "rewardRank": "",
        "rewardName": "Free Spin",
        "value": 1,
        "rewardType": "FsjwdGsBmxo4zyGh_nsK",
        "description": "You get 1 Free spin!",
        "delay": 0,
        "memberAcknowledgmentRequired": false,
        "metadata": [
            {
                "jsonClass": "Metadata",
                "key": "Login",
                "value": "1"
            }
        ],
        "accountId": "E8jwdGsBmxo4zyGh9Hs7",
        "pointInTime": "2019-08-19T08:50:48.675+00:00",
"period": 0
        "created": "2019-08-19T08:50:48.690+00:00",
        "id": "Yy4SqWwB2ogi940JXPDy",
        "translations": {},
        "translatableFields": [
            "rewardName",
            "description"
        ]],
"achievement": {
...
)

A full example of POST Achievement can be found in the Achievement APP API documentation here


 Click Save to create the Reward in the Achievement.

 If any required information is missing, the field is shown in red as in the example below.

An example is shown below how a created Reward looks.

You can then use the action buttons:

  •  - Reward details lets you preview what kind of reward is created.
  •  - Edit lets you edit the Reward.
  •  - Delete lets you delete a Reward. 

 Click Next and continue to the next step.