Tenant Master — Step 5: Terms & Conditions

What the admin sees
A rich-text editor for the Terms & Conditions document, a row of quick-insert placeholder tokens (store name, registered company name, address lines, city/state/postal code/country, phone, support email, application website URL), and a read-only version chip showing the currently-saved version (v1, v2, …).
What the admin does here
Terms & Conditions, Privacy Policy, and Exchange & Returns are three instances of the same underlying policy resource, distinguished only by a policyType discriminator — this step calls GET/PUT /admin/api/v1/tenant/config/terms. Clicking a placeholder token inserts its literal {{Token}} text into the editor at the cursor — the admin always edits raw token text, never a resolved preview; resolution against live tenant data happens only on the client-facing read endpoints. The PUT body carries only the edited content — the admin never sets version directly; tenant-service computes the next version itself and the chip updates to reflect it after a successful save.
Related Documents
- SR-025 FR-09 – FR-11 — policy discriminator, auto-versioning, placeholder tokens
- ADR-00039 — why Terms/Privacy/Returns share one table
- Architecture — Flow (C) — policy save with auto-versioning
- Flutter UI Walkthrough — Terms & Conditions — this document’s content and version, read-only, plus the shopper’s one-shot acceptance
- Flutter UI Walkthrough — Phone Signup — the signup-time consent checkbox that stamps this document’s current version onto the new account
- Flutter UI Walkthrough — Policy Viewer — this document’s content, reachable from the signup screen before consent is given
- Microservices: tenant-service
- Previous: Registered Address
- Next: Privacy Policy