FraudAlertRule

Defines a Fraud Alert, including what conditions will trigger the alert, how, and to whom alert notifications will be sent.

  • How 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".

  • What is being counted toward triggering a fraud alert.

  • A unique identifier for the rule.

  • A corporate/account contact will receive fraud alerts.

  • Additional email addresses set by emails should receive fraud alerts.

  • Contacts configured for the selected store(s) will receive fraud alerts.

  • How many of the specified metric should trigger a fraud alert.

  • Determines 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.

  • The 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.

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • Additional email addresses that alert notifications should be sent to if notify_emails is set.

  • Required for Sparkfly Loyalty related fraud alerts, the ID of the Loyalty Program.

  • 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
    pendingactivesuspendedarchived
  • The IDs of selected stores in which potentially fraudulent activity should be measured. If empty, any store will be considered.

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

Examples
{
  "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"
}