Create a promo code reactor
Introduction
Promo codes are a great way to offer additional bonuses to your users. We'll look at how you can set up a simple reactor which uses a promo code, as well as some of the more complex ways you can use them.
Before following this tutorial make sure you have the SUBMITTED_CODE
event configured in your event types. For more information about this event see the Promo Codes article.
Configuration
Static promo code
Navigate to Events > Reactors. Click 'Create' in the top right corner.
Give the reactor a name and choose
SUBMITTED_CODE
from the 'Event type' list.Choose whether you want this reactor to occur an unlimited number of times or be limited to user or tenant activations. For static promo codes a subject activation limit is advised to stop misuse.
Move to the 'Payload Constraints' tab. In the 'Code' section click 'Constant'. Enter the code you'd like users to enter. This is case sensitive.
Move to the 'Reactions' tab. Configure the reaction as needed. See theActivation limits section of the Reactor Configuration article for more information.
Optional: Move to the 'Effectivity' tab. Set a start date and an end date for the reactor. If you'd like the reactor to run immediately and indefinitely skip this step.
Click 'Save'.

Promo code pool
Navigate to Events > Reactors. Click 'Create' in the top right corner.
Give the reactor a name and choose
SUBMITTED_CODE
from the 'Event type' list.Choose whether you want this reactor to occur an unlimited number of times or be limited to user or tenant activations. For code pools the activation limit refers to how many times the code pools itself can be used by the subject/tenant, rather than the individual codes in the pool. Codes in a code pool can only be used once.
Move to the 'Payload Constraints' tab. In the 'Code Validity' section click 'Specific Pool'. Choose the code pool you'd like to react to from the list.
Move to the 'Reactions' tab. Configure the reaction as needed. See theActivation limits section of the Reactor Configuration article for more information.
Optional - Move to the 'Effectivity' tab. Set a start date and an end date for the reactor. If you'd like the reactor to run immediately and indefinitely skip this step.
Click 'Save'.

Multiple static codes
Navigate to Events > Reactors. Click 'Create' in the top right corner.
Give the reactor a name and choose
SUBMITTED_CODE
from the 'Event type' list.Choose whether you want this reactor to occur an unlimited number of times or be limited to user or tenant activations. For static promo codes a subject activation limit is advised to stop misuse.
Move to the 'Payload Constraints' tab. Click 'Use Advanced Mode'.
Enter the following schema, replacing 'CODE1', 'CODE2' etc. with the codes you'd like to use.
{ "type": "object", "$schema": "http://json-schema.org/draft-06/schema#", "properties": { "code": { "type": "string", "enum": [ "CODE1", "CODE2", "CODE3" ] } }, "required": [] }
Move to the 'Reactions' tab. Configure the reaction as needed. See theActivation limits section of the Reactor Configuration article for more information.
Optional - Move to the 'Effectivity' tab. Set a start date and an end date for the reactor. If you'd like the reactor to run immediately and indefinitely skip this step.
Click 'Save'.

Tips
Promo codes can be used within audience criteria so they can be used to unlock bonuses. See the Create advanced or multi-event reactors using Audiences page for an example of how to use audiences and reactors together.
Last updated
Was this helpful?