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

FieldValue
Primary Tenant IDa0000000-0000-4000-8000-000000000001
Secondary Tenant IDa0000000-0000-4000-8000-000000000002
Auth Tenant ID00000000-0000-0000-0000-000000000001

Test Users

RoleEmailPasswordNotes
organizerorganizer@eventzr.comPassword123!Create/manage subscriptions, upgrade/downgrade
useruser@eventzr.comPassword123!View subscriptions, plans, trials, invoices
dev (MFA)dev@eventzr.comPassword123!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)

TierPrice/moEventsStorageAI CreditsTrial
BASEFree51 GB--
STUDENT$9.992510 GB50014d
STARTUP$29.995050 GB2,00014d
PROPopular$99.99200200 GB10,00014d
PROMAX$299.991,0001 TB50,00014d
ENTERPRISE$25,000UnlimitedUnlimited250,00030d

Team Plans (Monthly)

TierPrice/moMembersEventsAI Credits
Team BASEFree510-
Team PRO$499.995050025,000
Team ENTERPRISE$50,000UnlimitedUnlimited500,000

Annual Plans

TierPrice/yrSavings
PRO - Annually$959.90Save 20%

Seeded Discount Codes

CodeProgramTypeValueDuration
STUDENT2026StudentPercentage50%Repeating (12 months)
STARTUP50StartupPercentage50%Repeating (6 months)
WELCOME20PromotionalPercentage20%Once
REFER25ReferralPercentage25%Repeating (3 months)

Status Transition Rules

Subscription State Machine

Subscriptions follow strict state transition rules. Invalid transitions return ERR_SUBSCRIPTIONS_SUBSCRIPTION_INVALID_STATE (400).

FromAllowed Transitions
activecancelled, paused, past_due
trialactive, cancelled, expired
pausedactive, cancelled
past_dueactive, cancelled, expired
cancelledactive (reactivation, 30-day window)
expiredterminal (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

ConstantValue
DEFAULT_TRIAL_DAYS30
MAX_TRIAL_DAYS60
MIN_TRIAL_DAYS7
REACTIVATION_WINDOW_DAYS30
DEFAULT_CURRENCYUSD
PAYMENT_GRACE_PERIOD_DAYS7
MINIMUM_INVOICE_AMOUNT50 cents ($0.50)
SOFT_LIMIT_THRESHOLD80%

Seeded Data Summary (16 tables)

TableRecordsDescription
subscriptions_plans106 user monthly + 1 annual + 3 team
subscriptions_subscriptions5+Active, trial, cancelled states
subscriptions_invoices3+Paid, pending, overdue
subscriptions_invoice_line_items5+Subscription + addon line items
subscriptions_payments3+Successful + failed payments
subscriptions_quotas10+Per-subscription quota limits
subscriptions_quota_usage5+Usage tracking records
subscriptions_plan_features15+Feature flags per plan
subscriptions_discounts4Student, startup, promo, referral
subscriptions_referral_tracking2+Pending + converted referrals
subscriptions_startup_applications2+Approved + pending applications
subscriptions_student_enrollments2+Verified + pending enrollments
subscriptions_addons3+AI credits, storage, support addons
subscriptions_history5+Create, upgrade, cancel events
subscriptions_trial_progressions2+Active + completed trials
subscriptions_ai_credit_ledger5+Allocations, purchases, usage