Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 882 Bytes

EarningRuleTrigger.md

File metadata and controls

26 lines (14 loc) · 882 Bytes

EarningRuleTrigger

Event that triggers the earning rule. Depending on event, either custom_event or segment is required and the other trigger contexts must be null/absent. The API validates field combinations that this schema does not express.

Properties

Name Type Description
event EventEnum Triggering event type.
customEvent LoyaltyV2ActivityEarningRuleTriggerCustomEvent
segment LoyaltyV2ActivityEarningRuleTriggerSegment

Enum: EventEnum

Name Value
ORDER_PAID "customer.order.paid"
CUSTOM_EVENT "customer.custom_event"
SEGMENT_ENTERED "customer.segment.entered"