Dashboard
Plans
Configure billing plans in Owostack
Plans
Plans define what your customers can subscribe to. Each plan maps to a provider plan.
Creating a Plan
- Go to Plans in the sidebar
- Click Create Plan
- Fill in the details:
| Field | Description |
|---|---|
| Name | Display name (e.g., "Pro Plan") |
| Price | Amount in the provider's smallest unit |
| Interval | monthly, quarterly, annually |
| Description | Optional description for your reference |
When you create a plan, Owostack automatically creates a corresponding plan in your provider account. The provider plan ID is generated automatically.
Plan Features
Define what features each plan includes by creating Entitlements:
// Example plan with features
{
name: "Pro Plan",
price: 5000, // ₦50
features: {
api_calls: { limit: 10000 }, // 10,000 API calls/month
storage_gb: { limit: 50 }, // 50 GB storage
team_members: { limit: 5 }, // Up to 5 team members
premium_features: true, // Boolean access
}
}Metered vs Feature Entitlements
Feature Entitlements (Boolean)
Simple on/off access to a capability:
await owo.check({ customer: "user_123", feature: "premium_features" });
// Returns: { allowed: true }Metered Entitlements (Usage-based)
Track usage against a limit:
await owo.check({ customer: "user_123", feature: "api_calls" });
// Returns: { allowed: true, balance: 9500, limit: 10000 }Updating Plans
When you update a plan:
- Price changes affect new subscribers only
- Feature changes affect all subscribers immediately
Syncing with providers
If you create plans directly in a provider dashboard:
- Go to Plans → Sync from Provider
- Owostack will import your existing plans
- Configure features for each imported plan