Skip to content

Implement usage-based billing with metered pricing and tiered overages #707

Description

@Smartdevs17

Context

Subscription plans need usage-based billing with metered pricing.

Current Limitation

Billing is purely time-based with no usage tracking.

Expected Outcome

  • Real-time usage tracking per subscription
  • Metered pricing with tiered overages
  • Usage alerts and notifications
  • Usage analytics dashboard

Acceptance Criteria

  • Real-time usage tracking (API calls, storage, compute)
  • Metered pricing with configurable tiers
  • Overage pricing with automatic tier upgrades
  • Usage alerts at 80% and 100% of limits
  • Usage analytics dashboard
  • Usage export for reporting
  • Usage-based invoice generation

Technical Scope

  • contracts/metering/src/ - Metering contract
  • backend/services/billing/metering.ts - Metering service
  • src/services/analyticsService.ts - Analytics service
  • app/screens/BatchOperationsScreen.tsx - Batch operations

Metadata

Metadata

Assignees

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveIssues in the Drips Wave programhighHigh complexity issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions