FraudAlertRule
Defines a Fraud Alert, including what conditions will trigger the alert, how, and to whom alert notifications will be sent.
- eventType: integer
_suppression _period min:0max:31536000requiredHow long, in seconds, after a fraud alert has been triggered to suppress duplicate events for the same alert and owner (e.g. Loyalty Enrollment).
Note: This value must be greater than or equal to the value of "time_period".
- metricType: stringenum
_type requiredWhat is being counted toward triggering a fraud alert.
values- loyalty
_enrollment _points _earned - loyalty
_enrollment _transactions - loyalty
_enrollment _retro _claims
- nameType: stringmin length:1required
A unique identifier for the rule.
- notifyType: boolean
_corporate _contact requiredA corporate/account contact will receive fraud alerts.
- notifyType: boolean
_emails requiredAdditional email addresses set by emails should receive fraud alerts.
- notifyType: boolean
_store _contact requiredContacts configured for the selected store(s) will receive fraud alerts.
- quantityType: integermin:1required
How many of the specified metric should trigger a fraud alert.
- scopeType: stringenum
_type requiredDetermines how selected stores contribute towards triggering a fraud alert. If all_stores is selected, activity in any of the selected stores will collectively count towards meeting the threshold (quantity), while one_store means that the threshold must be met within one of the locations.
values- all
_stores - one
_store
- timeType: integer
_period min:3600max:31536000requiredThe duration, in seconds, over which the quantity must be reached in order to trigger a fraud alert. This value may be between 1 hour and 365 days.
- createdType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- descriptionType: string
- emailsType: array string[] unique!
Additional email addresses that alert notifications should be sent to if notify_emails is set.
- loyaltyType: integer
_program _id min:1Required for Sparkfly Loyalty related fraud alerts, the ID of the Loyalty Program.
- statusType: stringenumread-only
The current status of the fraud alert rule. Note: Archived rules cannot be reactivated, and rules can only be activated, suspended, and archived through "actions" API calls.
values- pending
- active
- suspended
- archived
- storeType: array integer[] unique!
_ids The IDs of selected stores in which potentially fraudulent activity should be measured. If empty, any store will be considered.
- updatedType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
{
"loyalty_program_id": 1,
"name": "string",
"description": "string",
"status": "pending",
"metric_type": "loyalty_enrollment_points_earned",
"quantity": 1,
"time_period": 3600,
"scope_type": "all_stores",
"event_suppression_period": 3600,
"store_ids": [
1
],
"notify_store_contact": true,
"notify_corporate_contact": true,
"notify_emails": true,
"emails": [
"user@example.com"
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}