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.
| Name | Type | Description |
|---|---|---|
| event | EventEnum | Triggering event type. |
| customEvent | LoyaltyV2ActivityEarningRuleTriggerCustomEvent | |
| segment | LoyaltyV2ActivityEarningRuleTriggerSegment |
| Name | Value |
|---|---|
| ORDER_PAID | "customer.order.paid" |
| CUSTOM_EVENT | "customer.custom_event" |
| SEGMENT_ENTERED | "customer.segment.entered" |