Seed Data
Pre-populated test data available in the staging environment for development and testing.
Staging Environment
The staging environment is pre-seeded with 10 plans (6 user + 1 annual + 3 team), sample subscriptions, invoices, quotas, discounts, referrals, and trial progressions across 16 database tables. Use the test credentials from the Authentication guide to access this data.
Demo Tenants
| Field | Value |
|---|---|
| Primary Tenant ID | a0000000-0000-4000-8000-000000000001 |
| Secondary Tenant ID | a0000000-0000-4000-8000-000000000002 |
| Auth Tenant ID | 00000000-0000-0000-0000-000000000001 |
Test Users
| Role | Password | Notes | |
|---|---|---|---|
| organizer | organizer@eventzr.com | Password123! | Create/manage subscriptions, upgrade/downgrade |
| user | user@eventzr.com | Password123! | View subscriptions, plans, trials, invoices |
| dev (MFA) | dev@eventzr.com | Password123! | Requires MFA - use organizer@ for quick testing |
Subscription Plans (10 seeded)
Plans are global (no tenantId) and shared across all tenants. Prices are in cents (USD).
User Plans (Monthly)
| Tier | Price/mo | Events | Storage | AI Credits | Trial |
|---|---|---|---|---|---|
BASE | Free | 5 | 1 GB | - | - |
STUDENT | $9.99 | 25 | 10 GB | 500 | 14d |
STARTUP | $29.99 | 50 | 50 GB | 2,000 | 14d |
PROPopular | $99.99 | 200 | 200 GB | 10,000 | 14d |
PROMAX | $299.99 | 1,000 | 1 TB | 50,000 | 14d |
ENTERPRISE | $25,000 | Unlimited | Unlimited | 250,000 | 30d |
Team Plans (Monthly)
| Tier | Price/mo | Members | Events | AI Credits |
|---|---|---|---|---|
Team BASE | Free | 5 | 10 | - |
Team PRO | $499.99 | 50 | 500 | 25,000 |
Team ENTERPRISE | $50,000 | Unlimited | Unlimited | 500,000 |
Annual Plans
| Tier | Price/yr | Savings |
|---|---|---|
PRO - Annually | $959.90 | Save 20% |
Seeded Discount Codes
| Code | Program | Type | Value | Duration |
|---|---|---|---|---|
STUDENT2026 | Student | Percentage | 50% | Repeating (12 months) |
STARTUP50 | Startup | Percentage | 50% | Repeating (6 months) |
WELCOME20 | Promotional | Percentage | 20% | Once |
REFER25 | Referral | Percentage | 25% | Repeating (3 months) |
Status Transition Rules
Subscription State Machine
Subscriptions follow strict state transition rules. Invalid transitions return ERR_SUBSCRIPTIONS_SUBSCRIPTION_INVALID_STATE (400).
| From | Allowed Transitions |
|---|---|
active | cancelled, paused, past_due |
trial | active, cancelled, expired |
paused | active, cancelled |
past_due | active, cancelled, expired |
cancelled | active (reactivation, 30-day window) |
expired | terminal (no transitions) |
Quick Access
List all plansbash
curl -X GET "https://535ubezkse.execute-api.us-east-1.amazonaws.com/subscriptions/v1/plans?isActive=true" \
-H "Authorization: Bearer $TOKEN"List subscriptionsbash
curl -X GET "https://535ubezkse.execute-api.us-east-1.amazonaws.com/subscriptions/v1/subscriptions" \
-H "Authorization: Bearer $TOKEN"Check quota for a featurebash
curl -X GET "https://535ubezkse.execute-api.us-east-1.amazonaws.com/subscriptions/v1/quotas/check/MAX_EVENTS" \
-H "Authorization: Bearer $TOKEN"Validate a discount codebash
curl -X POST "https://535ubezkse.execute-api.us-east-1.amazonaws.com/subscriptions/v1/discounts/validate" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "code": "WELCOME20" }'Compare all plansbash
curl -X GET "https://535ubezkse.execute-api.us-east-1.amazonaws.com/subscriptions/v1/subscriptions/comparison/all" \
-H "Authorization: Bearer $TOKEN"Key Constants
| Constant | Value |
|---|---|
DEFAULT_TRIAL_DAYS | 30 |
MAX_TRIAL_DAYS | 60 |
MIN_TRIAL_DAYS | 7 |
REACTIVATION_WINDOW_DAYS | 30 |
DEFAULT_CURRENCY | USD |
PAYMENT_GRACE_PERIOD_DAYS | 7 |
MINIMUM_INVOICE_AMOUNT | 50 cents ($0.50) |
SOFT_LIMIT_THRESHOLD | 80% |
Seeded Data Summary (16 tables)
| Table | Records | Description |
|---|---|---|
subscriptions_plans | 10 | 6 user monthly + 1 annual + 3 team |
subscriptions_subscriptions | 5+ | Active, trial, cancelled states |
subscriptions_invoices | 3+ | Paid, pending, overdue |
subscriptions_invoice_line_items | 5+ | Subscription + addon line items |
subscriptions_payments | 3+ | Successful + failed payments |
subscriptions_quotas | 10+ | Per-subscription quota limits |
subscriptions_quota_usage | 5+ | Usage tracking records |
subscriptions_plan_features | 15+ | Feature flags per plan |
subscriptions_discounts | 4 | Student, startup, promo, referral |
subscriptions_referral_tracking | 2+ | Pending + converted referrals |
subscriptions_startup_applications | 2+ | Approved + pending applications |
subscriptions_student_enrollments | 2+ | Verified + pending enrollments |
subscriptions_addons | 3+ | AI credits, storage, support addons |
subscriptions_history | 5+ | Create, upgrade, cancel events |
subscriptions_trial_progressions | 2+ | Active + completed trials |
subscriptions_ai_credit_ledger | 5+ | Allocations, purchases, usage |