Overview
The Plan Management Service handles the definition and management of subscription plans, including pricing, features, and plan migrations. It serves as the source of truth for what features and limits apply to each subscription tier.
Key Features
- Plan Definition: Create and manage subscription plans with different tiers
- Feature Flags: Control feature access based on subscription plans
- Usage Limits: Define and enforce usage limits per plan
- Plan Migration: Handle upgrades and downgrades between plans
- Pricing Management: Manage pricing, discounts, and promotional offers
Supported Plan Types
Basic Plan
- Essential features
- Limited usage quotas
- Email support
Professional Plan
- All Basic features
- Higher usage quotas
- Priority support
- Advanced analytics
Enterprise Plan
- All Professional features
- Unlimited usage
- Dedicated support
- Custom integrations
- SLA guarantees
API Endpoints
REST API
GET /api/plans
- List all available plansGET /api/plans/{planId}
- Get plan detailsPOST /api/plans
- Create new planPUT /api/plans/{planId}
- Update planPOST /api/plans/migrate
- Migrate subscription to different plan
Plan Structure
{
"id": "pro-monthly",
"name": "Professional Monthly",
"price": 49.99,
"currency": "USD",
"interval": "monthly",
"features": {
"api_calls": 10000,
"storage_gb": 100,
"team_members": 10,
"priority_support": true
}
}
Event-driven architecture documentation: FlowMart