Skip to main content
POST
Create a has-prior-reward trigger
EXPERT. This operation is in the Feature Building Blocks APIs. Read that page before you use it.

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
controllerId
string
required

Body

application/json

Body of a POST /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/triggers/has-prior-rewards request.

component_ids
string[]
component_references
object[]
count_matches

Choose between static or dynamic count matches. Buildtime expressions use ControllerBuildtimeContext.

count_max

Choose between static or dynamic count max. Buildtime expressions use ControllerBuildtimeContext.

count_min

Choose between static or dynamic count min. Buildtime expressions use ControllerBuildtimeContext.

enabled

Choose between static or dynamic enabled. Buildtime expressions use ControllerBuildtimeContext.

filter_expression

Choose between static or dynamic filter expression. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardHasPriorRewardTriggerContext.

filter_expressions
string[]
filter_face_value_types

Choose between static or dynamic filter face value types. Buildtime expressions use ControllerBuildtimeContext.

Available options:
AUD,
BRL,
CAD,
CNY,
EUR,
GBP,
HKD,
INR,
JPY,
KRW,
MONTH,
MXN,
NZD,
PERCENT_OFF,
POINTS,
TRY,
TWD,
USD
filter_max_age

Choose between static or dynamic filter max age. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_max_date

Choose between static or dynamic filter max date. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

filter_min_age

Choose between static or dynamic filter min age. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_min_date

Choose between static or dynamic filter min date. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

filter_names

Choose between static or dynamic filter names. Buildtime expressions use ControllerBuildtimeContext.

filter_reward_supplier_ids

Choose between static or dynamic filter reward supplier ids. Buildtime expressions use ControllerBuildtimeContext.

filter_scope

Choose between static or dynamic filter scope. Buildtime expressions use ControllerBuildtimeContext.

Available options:
CAMPAIGN,
CLIENT,
JOURNEY,
PROGRAM
filter_states

Choose between static or dynamic filter states. Buildtime expressions use ControllerBuildtimeContext.

Available options:
CANCELED,
EARNED,
EXPIRED,
FAILED,
FULFILLED,
REDEEMED,
REVOKED,
SENT
filter_tags

Choose between static or dynamic filter tags. Buildtime expressions use ControllerBuildtimeContext.

negated

Choose between static or dynamic negated. Buildtime expressions use ControllerBuildtimeContext.

parent_trigger_group_name

Choose between static or dynamic parent trigger group name. Buildtime expressions use ControllerBuildtimeContext.

sum_of_face_value_max

Choose between static or dynamic sum of face value max. Buildtime expressions use ControllerBuildtimeContext.

sum_of_face_value_min

Choose between static or dynamic sum of face value min. Buildtime expressions use ControllerBuildtimeContext.

tax_year_start

Choose between static or dynamic tax year start. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Example:

"--10-24"

trigger_description

Choose between static or dynamic trigger description. Buildtime expressions use ControllerBuildtimeContext.

trigger_name

Choose between static or dynamic trigger name. Buildtime expressions use ControllerBuildtimeContext.

trigger_phase

Choose between static or dynamic trigger phase. Buildtime expressions use ControllerBuildtimeContext.

Available options:
MATCHING,
QUALIFYING,
QUALITY

Response

Successful response

component_ids
string[]
component_references
object[]
enabled

The enabled as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

negated

The negated as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

parent_trigger_group_name

The parent trigger group name as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

trigger_description

The trigger description as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

trigger_id
string
trigger_name

The trigger name as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

trigger_phase

The trigger phase as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Available options:
MATCHING,
QUALIFYING,
QUALITY
trigger_type
enum<string>
Available options:
HAS_PRIOR_REWARD
count_matches

The count matches as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

count_max

The count max as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

count_min

The count min as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

filter_expression

The filter expression as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use RewardHasPriorRewardTriggerContext.

filter_expressions
string[]
filter_face_value_types

The filter face value types as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Available options:
AUD,
BRL,
CAD,
CNY,
EUR,
GBP,
HKD,
INR,
JPY,
KRW,
MONTH,
MXN,
NZD,
PERCENT_OFF,
POINTS,
TRY,
TWD,
USD
filter_max_age

The filter max age as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_max_date

The filter max date as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

filter_min_age

The filter min age as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^[-+]?P(?:(?:[-+]?[0-9]+D)(?:T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)?|T(?=(?:[-+]?[0-9]+H|[-+]?[0-9]+M|[-+]?[0-9]+(?:[.,][0-9]*)?S))(?:[-+]?[0-9]+H)?(?:[-+]?[0-9]+M)?(?:[-+]?[0-9]+(?:[.,][0-9]*)?S)?)$
Example:

"PT42S"

filter_min_date

The filter min date as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$
Example:

"2025-10-24T02:00:00-07:00"

filter_names

The filter names as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

filter_reward_supplier_ids

The filter reward supplier ids as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

filter_scope

The filter scope as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Available options:
CAMPAIGN,
CLIENT,
JOURNEY,
PROGRAM
filter_states

The filter states as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Available options:
CANCELED,
EARNED,
EXPIRED,
FAILED,
FULFILLED,
REDEEMED,
REVOKED,
SENT
filter_tags

The filter tags as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

sum_of_face_value_max

The sum of face value max as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

sum_of_face_value_min

The sum of face value min as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

tax_year_start

The tax year start as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

Pattern: ^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$
Example:

"--10-24"