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
- Stay current: Keep compliance rules up to date with regulations
- Document reasons: Always document why products are restricted
- Test thoroughly: Test compliance rules before deploying
- Monitor changes: Track regulatory changes that affect compliance
- Provide alternatives: Show alternative products when restrictions apply
Related Topics
- Exclusions - Remove non-compliant products