Legal Documents
Manage legal documents such as Terms of Service, Privacy Policy, Return Policy, and Cookie Policy. These are served to the storefront and shown during registration, checkout, and on dedicated pages.
Managing Documents
Navigate to Content → Legal Documents.
Creating a Document
| Field | Description |
|---|---|
| Title | Document title (localizable) |
| Slug | URL identifier (e.g., terms-of-service) |
| Type | TermsOfService, PrivacyPolicy, ReturnPolicy, CookiePolicy, etc. |
| Content | Rich text content (HTML, localizable) |
| Version | Version number (increment when making significant changes) |
| Effective Date | When this version takes effect |
Placeholders
Legal documents support template placeholders that are automatically replaced with store-specific values:
| Placeholder | Replaced With |
|---|---|
{{CompanyName}} | Store's company name |
{{StoreName}} | Store name |
{{StoreUrl}} | Store URL |
{{ContactEmail}} | Store contact email |
This allows a single document template to work across multiple stores.
Localization
Document title and content are localizable. Switch the language selector to create translations for each language.
Versioning & Consent
When you update a legal document and increment the version:
- The old version is preserved
- Customers who accepted the old version may need to re-accept the new version
- The consent tracking system records which version each customer accepted
Storefront Integration
Documents are served via:
GET /api/storefront/documents/{slug}
Common integration points:
- Registration form — checkbox linking to Terms of Service
- Checkout — acceptance of Terms before placing order
- Footer — links to Privacy Policy, Terms, etc.
- Cookie banner — link to Cookie Policy
Use the versioning system diligently. When regulations change (e.g., GDPR updates), increment the version and update the effective date. The consent tracking system will know which customers need to re-accept.