{
  "earning_rules": [
    {
      "activity": "purchase",
      "title": "Earn on purchases",
      "currency": "USD",
      "spend_amount": "1.00",
      "points": "4",
      "tier_rates": [
        {
          "tier_id": "3",
          "points": "9"
        }
      ],
      "condition": "Earn on qualifying payments in USD."
    },
    {
      "activity": "welcome_gift",
      "title": "Welcome gift",
      "points": "25",
      "benefit": {
        "type": "points",
        "points": 25
      },
      "vip_dependent": false,
      "paused": false,
      "tier_benefits": [
        {
          "tier_id": "1",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 25
          }
        },
        {
          "tier_id": "2",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 25
          }
        },
        {
          "tier_id": "3",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 25
          }
        }
      ],
      "condition": "Earn once when you first sign in to your new account."
    },
    {
      "activity": "visit_instagram",
      "title": "Visit our Instagram page",
      "points": "30",
      "profile_url": "https://instagram.com/notasideproject",
      "condition": "Open this link once after signing in."
    },
    {
      "activity": "email_subscription",
      "title": "Subscribe to marketing emails",
      "points": "50",
      "condition": "Earn once for a first qualifying subscription while the rule is active."
    },
    {
      "activity": "birthday",
      "title": "Birthday points",
      "points": "40",
      "collect_birth_year": false,
      "condition": "Save your birthday before it starts in UTC to earn the annual award.",
      "benefit": {
        "type": "points",
        "points": 40
      },
      "vip_dependent": false,
      "paused": false,
      "tier_benefits": [
        {
          "tier_id": "1",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 40
          }
        },
        {
          "tier_id": "2",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 40
          }
        },
        {
          "tier_id": "3",
          "mode": "default",
          "benefit": {
            "type": "points",
            "points": 40
          }
        }
      ]
    }
  ],
  "rewards": [
    {
      "rule_id": "41",
      "title": "Store credit",
      "redemption_type": "store_credit",
      "distribution": "points",
      "currency": "USD",
      "points_amount": "100",
      "vip_audience": "everyone",
      "tier_terms": [],
      "terms_version": "00fb41de36c3274e1608196fb3e86ffb9640a66488da220c0ab97cf46297a1a6",
      "terms": {
        "unit_credit_amount": "1.00",
        "expires_after_days": null
      }
    },
    {
      "rule_id": "42",
      "title": "Birthday blanket",
      "redemption_type": "free_product",
      "distribution": "points",
      "currency": "USD",
      "points_amount": "100",
      "vip_audience": "selected_tiers",
      "tier_terms": [
        {
          "tier_id": "3",
          "points_amount": "100"
        }
      ],
      "terms_version": "323e38674305165817edfa6dda9fc6f2cce80cb3fc53af4c480b19b64b4c3740",
      "terms": {
        "variant_id": "123",
        "label": "Red Blanket · Small",
        "storefront_url": "/products/red-blanket?variant=123",
        "quantity": 1,
        "purchase_type": "one_time",
        "expires_after_days": null,
        "combines_with": []
      }
    },
    {
      "rule_id": "49",
      "title": "10% off outdoor gear",
      "redemption_type": "amount_off_products",
      "distribution": "points",
      "currency": "USD",
      "points_amount": "100",
      "vip_audience": "everyone",
      "tier_terms": [],
      "terms_version": "8bd0d68f30c154d9413b46cd8def9e9fba57ed6a2f6aeae4517ef8d56cef5406",
      "terms": {
        "discount": {
          "type": "percentage",
          "percentage": "10"
        },
        "minimum_purchase": {
          "type": "none"
        },
        "entitlement_scope": "collections",
        "targets": [
          {
            "kind": "collection",
            "id": "1",
            "label": "Hydrogen",
            "storefront_url": "/collections/hydrogen"
          },
          {
            "kind": "collection",
            "id": "2",
            "label": "Winter Essentials",
            "storefront_url": "/collections/winter-essentials"
          }
        ],
        "purchase_type": "one_time",
        "expires_after_days": null,
        "combines_with": []
      }
    },
    {
      "rule_id": "50",
      "title": "Buy two layers, get hiking socks",
      "redemption_type": "buy_x_get_y",
      "distribution": "points",
      "currency": "USD",
      "points_amount": "150",
      "vip_audience": "everyone",
      "tier_terms": [],
      "terms_version": "38a33be46e0e70cb0e76e02792edf95cf9c319a61bab00e14a25c53096903a2b",
      "terms": {
        "customer_buys": {
          "scope": "products",
          "targets": [
            {
              "kind": "product",
              "id": "10",
              "label": "Alpine Jacket",
              "storefront_url": "/products/alpine-jacket"
            },
            {
              "kind": "variant",
              "id": "211",
              "product_id": "21",
              "label": "Trail Vest · Pine / Medium",
              "storefront_url": "/products/trail-vest?variant=211"
            }
          ],
          "type": "quantity",
          "quantity": 2
        },
        "customer_gets": {
          "scope": "products",
          "targets": [
            {
              "kind": "variant",
              "id": "315",
              "product_id": "31",
              "label": "Hiking Socks · Slate / Medium",
              "storefront_url": "/products/hiking-socks?variant=315"
            }
          ],
          "quantity": 1,
          "discount": {
            "type": "free"
          }
        },
        "uses_per_order_limit": 1,
        "purchase_type": "one_time",
        "expires_after_days": 30,
        "combines_with": []
      }
    }
  ],
  "vip_program": {
    "status": "active",
    "qualification_period": "calendar_year",
    "rolling_months": null,
    "time_zone": "UTC",
    "currency": "USD",
    "tiers": [
      {
        "tier_id": "1",
        "name": "Member",
        "threshold": "0.00",
        "keep_threshold": "0.00"
      },
      {
        "tier_id": "2",
        "name": "Silver",
        "threshold": "500.00",
        "keep_threshold": "500.00"
      },
      {
        "tier_id": "3",
        "name": "Gold",
        "threshold": "1000.00",
        "keep_threshold": "600.00"
      }
    ]
  }
}
