Create a has-prior-reward trigger
Adds a has-prior-reward trigger to the specified campaign controller. The trigger fires when the participant does (or does not) have a prior reward of the configured type. Returns the created trigger with its server-assigned id.
Authorizations
Path Parameters
(/version/.+)?Body
Body of a POST /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/triggers/has-prior-rewards request.
Choose between static or dynamic count matches
Choose between static or dynamic count max
Choose between static or dynamic count min
Choose between static or dynamic enabled
Choose between static or dynamic filter expression
Choose between static or dynamic filter face value types
AUD, BRL, CAD, CNY, EUR, GBP, HKD, INR, JPY, KRW, MONTH, MXN, NZD, PERCENT_OFF, POINTS, TRY, TWD, USD Choose between static or dynamic filter max age
^[-+]?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)?)$"PT42S"
Choose between static or dynamic filter max date
^\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])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Choose between static or dynamic filter min age
^[-+]?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)?)$"PT42S"
Choose between static or dynamic filter min date
^\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])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Choose between static or dynamic filter names
Choose between static or dynamic filter reward supplier ids
Choose between static or dynamic filter scope
CAMPAIGN, CLIENT, JOURNEY, PROGRAM Choose between static or dynamic filter states
CANCELED, EARNED, FAILED, FULFILLED, REDEEMED, REVOKED, SENT Choose between static or dynamic filter tags
Choose between static or dynamic negated
Choose between static or dynamic parent trigger group name
Choose between static or dynamic sum of face value max
Choose between static or dynamic sum of face value min
Choose between static or dynamic tax year start
^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$"--10-24"
Choose between static or dynamic trigger description
Choose between static or dynamic trigger name
Choose between static or dynamic trigger phase
MATCHING, QUALIFYING, QUALITY Response
Successful response
The enabled as configured: a literal value, or an expression (type:string) when defined dynamically.
The negated as configured: a literal value, or an expression (type:string) when defined dynamically.
The parent trigger group name as configured: a literal value, or an expression (type:string) when defined dynamically.
The trigger description as configured: a literal value, or an expression (type:string) when defined dynamically.
The trigger name as configured: a literal value, or an expression (type:string) when defined dynamically.
The trigger phase as configured: a literal value, or an expression (type:string) when defined dynamically.
MATCHING, QUALIFYING, QUALITY HAS_PRIOR_REWARD The count matches as configured: a literal value, or an expression (type:string) when defined dynamically.
The count max as configured: a literal value, or an expression (type:string) when defined dynamically.
The count min as configured: a literal value, or an expression (type:string) when defined dynamically.
The filter expression as configured: a literal value, or an expression (type:string) when defined dynamically.
The filter face value types as configured: a literal value, or an expression (type:string) when defined dynamically.
AUD, BRL, CAD, CNY, EUR, GBP, HKD, INR, JPY, KRW, MONTH, MXN, NZD, PERCENT_OFF, POINTS, TRY, TWD, USD The filter max age as configured: a literal value, or an expression (type:string) when defined dynamically.
^[-+]?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)?)$"PT42S"
The filter max date as configured: a literal value, or an expression (type:string) when defined dynamically.
^\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])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
The filter min age as configured: a literal value, or an expression (type:string) when defined dynamically.
^[-+]?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)?)$"PT42S"
The filter min date as configured: a literal value, or an expression (type:string) when defined dynamically.
^\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])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
The filter names as configured: a literal value, or an expression (type:string) when defined dynamically.
The filter reward supplier ids as configured: a literal value, or an expression (type:string) when defined dynamically.
The filter scope as configured: a literal value, or an expression (type:string) when defined dynamically.
CAMPAIGN, CLIENT, JOURNEY, PROGRAM The filter states as configured: a literal value, or an expression (type:string) when defined dynamically.
CANCELED, EARNED, FAILED, FULFILLED, REDEEMED, REVOKED, SENT The filter tags as configured: a literal value, or an expression (type:string) when defined dynamically.
The sum of face value max as configured: a literal value, or an expression (type:string) when defined dynamically.
The sum of face value min as configured: a literal value, or an expression (type:string) when defined dynamically.
The tax year start as configured: a literal value, or an expression (type:string) when defined dynamically.
^--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$"--10-24"
