{
  "id": "<root>",
  "type": "ROOT",
  "entryPoint": {
    "id": "check-if-0",
    "then": {
      "id": "apply-discount-0",
      "type": "APPLY_DISCOUNT",
      "title": "Free shipping over $120 CAD in Canada",
      "value": {
        "type": "PERCENTAGE",
        "percentage": "100"
      }
    },
    "type": "CHECK_IF",
    "matchType": "AND",
    "otherwise": null,
    "conditions": [
      {
        "by": "EQUALS",
        "type": "COMPARE_STRING",
        "target": "SHIPPING_ADDRESS_COUNTRY",
        "stringsToCheck": [
          "CA"
        ]
      },
      {
        "type": "PRODUCT_ELIGIBILITY",
        "eligibility": {
          "type": "SPECIFIC_COLLECTIONS",
          "asListOfIds": "pre-orders",
          "selectedCollections": []
        },
        "includeOrExclude": "EXCLUDE"
      },
      {
        "type": "PURCHASE_REQUIREMENTS",
        "minOrMax": "MIN",
        "requirements": {
          "quantity": "0",
          "subtotal": "120",
          "appliesTo": "ELIGIBLE_LINE_ITEMS",
          "requirementType": "SUBTOTAL",
          "disableCurrencyConversion": true
        }
      }
    ]
  }
}
