Skip to content

Compliance Rules

Enterprise Feature

Compliance Rules are an advanced feature available as part of Marqo Enterprise.

Compliance rules restrict products by region, age, policy, or legal requirements to ensure your catalog meets regulatory and policy requirements.

Overview

Compliance rules automatically enforce restrictions on products based on geographic location, age requirements, legal policies, and other compliance criteria.

Restriction Types

Regional Restrictions

Restrict products by region:

{
  "restriction_type": "regional",
  "rules": [
    {
      "product_id": "prod_123",
      "restricted_regions": ["EU"],
      "reason": "gdpr_compliance"
    },
    {
      "product_id": "prod_456",
      "restricted_regions": ["US"],
      "reason": "regulatory"
    }
  ]
}

Age Restrictions

Restrict products by age:

{
  "restriction_type": "age",
  "rules": [
    {
      "product_id": "prod_123",
      "min_age": 18,
      "reason": "alcohol"
    },
    {
      "product_id": "prod_456",
      "min_age": 21,
      "reason": "tobacco"
    }
  ]
}

Policy Restrictions

Enforce business policies:

{
  "restriction_type": "policy",
  "rules": [
    {
      "product_id": "prod_123",
      "restriction": "no_returns",
      "reason": "final_sale"
    },
    {
      "product_id": "prod_456",
      "restriction": "requires_approval",
      "reason": "high_value"
    }
  ]
}

Compliance Enforcement

Automatically enforce compliance rules:

{
  "enforcement": {
    "auto_block": true,
    "notify_users": true,
    "show_alternatives": true
  }
}

Best Practices

  1. Stay current: Keep compliance rules up to date with regulations
  2. Document reasons: Always document why products are restricted
  3. Test thoroughly: Test compliance rules before deploying
  4. Monitor changes: Track regulatory changes that affect compliance
  5. Provide alternatives: Show alternative products when restrictions apply