v1

latestOpenAPI 3.0.22026-07-2645239950.4 KB

get/activities/{activity_id}

Response

200

successboolean

Example response

{
  "data": {
    "points_config": {
      "points_computation_type": "multiplier_based",
      "attribute_to_multiply": "order_subtotal",
      "multiplier": 1
    },
    "enduser_activity_short_description": "Earn points for every dollar you spend in purchases.",
    "activity_id": "made_a_purchase",
    "is_points_expiry_reset_activity": true,
    "show_on_guest_dashboard": true,
    "enduser_activity_description_html": "Earn 100 points for every advisor you talk to.",
    "activity_card_background_image_url": "",
    "is_qualified_for_tier_upgrade": false,
    "last_modified_date": "2023-12-08 16:55:20.470000",
    "is_active": true,
    "metadata": {
      "Category": "Chocolate Cake"
    },
    "rules_config": [
      {
        "rule_type": "Bonus Multiplier",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "",
        "conditions": [
          {
            "operator": "Equals",
            "attribute": "Product Category",
            "value": "Blue Rainbow"
          },
          {
            "operator": "Between",
            "attribute": "Transaction Date",
            "value": "3/8/2023-3/8/2023"
          },
          {
            "operator": "Equals",
            "attribute": "nationality",
            "value": "American"
          }
        ],
        "rule_value": 10
      },
      {
        "rule_type": "Fixed Points",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "",
        "conditions": [
          {
            "operator": "More than X day(s) ago",
            "attribute": "Enrollment Date",
            "value": 30
          }
        ],
        "rule_value": 500
      },
      {
        "rule_type": "Update Attribute",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "",
        "conditions": [
          {
            "operator": "Less Than",
            "attribute": "Order Value",
            "value": 100
          }
        ],
        "rule_value": 0
      },
      {
        "rule_type": "Update Attribute",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "",
        "conditions": [
          {
            "operator": "After",
            "attribute": "Enrollment Date",
            "value": "11/1/2022"
          }
        ],
        "rule_value": 0
      },
      {
        "rule_type": "Update Attribute",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "",
        "conditions": [
          {
            "operator": "After",
            "attribute": "Enrollment Date",
            "value": "1/1/2023"
          }
        ],
        "rule_value": 0
      },
      {
        "rule_type": "Bonus Multiplier",
        "is_archived": false,
        "is_active": false,
        "conditions_matching_policy": "match_all",
        "rule_name": "Gold Tier Rule",
        "conditions": [
          {
            "operator": "Equals",
            "attribute": "User Tier",
            "value": "zrl_gold"
          }
        ],
        "rule_value": 2
      },
      {
        "rule_type": "Bonus Multiplier",
        "is_archived": false,
        "is_active": true,
        "conditions_matching_policy": "match_all",
        "rule_name": "Platinum Tier Rule",
        "conditions": [
          {
            "operator": "Equals",
            "attribute": "User Tier",
            "value": "zrl_platinum"
          }
        ],
        "rule_value": 3
      }
    ],
    "approval_method": "immediate",
    "created_date": "2021-03-15 12:59:39.818000",
    "activity_name": "Loan Installment Payment",
    "extra_config": {},
    "id": "604f5a3b8152252216f5c19b",
    "activity_benefit_type": "points"
  },
  "success": true
}