Billing & Subscription
Manage your AIIA subscription, track usage, and configure payments.
Subscription Tiers
| Tier | Users | Storage | AI Tokens | Modules | Deployment |
|---|---|---|---|---|---|
| Essentials | 10 | 5 GB | — | Core, Audit | Shared SaaS |
| Professional | 50 | 50 GB | 100K/mo | + Risk, Compliance | Shared SaaS |
| Enterprise | 200 | 500 GB | 500K/mo | + Intelligence | Private Tenant |
| Sovereign | Unlimited | Unlimited | Unlimited | All | On-Premise |
Payment Methods
AIIA supports two payment providers:
| Provider | Methods | Currency |
|---|---|---|
| Stripe | Visa, Mastercard | USD, SAR |
| Moyasar | MADA, STC Pay, Apple Pay | SAR |
Managing Payments
- Navigate to Administration → Billing
- View current plan, usage, and invoices
- Upgrade/downgrade through the plan selector
- Access the Stripe Customer Portal for payment details
Usage Tracking
| Metric | Description | Enforcement |
|---|---|---|
| Users | Active user count | Soft limit with warning |
| Storage | Total evidence storage used | Upload blocked at limit |
| AI Tokens | Monthly AI API token consumption | AI features degraded at limit |
Usage meters show real-time consumption with percentage bars.
License Management
License Key
Each organization has a license key (RS256-signed JWT) containing:
- Organization ID
- Subscription tier
- Active modules
- Expiry date
- Max users and storage
Grace Period
If a license expires:
- 30-day grace period — full functionality maintained
- After grace period — degraded to Core module only
- Renewal — restores full functionality immediately
License CLI (On-Premise)
For on-premise deployments, manage licenses via CLI:
# Generate a new license
python -m app.services.license_service generate \
--org-id 1 \
--tier enterprise \
--months 12
# Inspect a license
python -m app.services.license_service inspect <token>
Invoices
View invoice history in the Billing page:
- Amount and currency
- Payment method used
- Payment date
- Status (paid/pending/failed)