Dashboard
Web UI · 23 endpoints

Customer self-service — plan management, payment methods, billing history. The primary interface for all subscription changes and on-session payments.

iAPI Gateway
Internal API · 38 endpoints

Service-to-service calls from other Cloudflare systems. The largest surface area in Area 1.

NinjaPanel
Support tooling · 18 endpoints

Internal support tool for account state, subscriptions, credits, and billing dispute resolution. Writes to the same APIs as Dashboard.

Billing Profiles

CRUD operations, validation, sync with Stripe customer objects. The billing identity that all other processes reference.

Payment Methods

Add, update, and tokenize payment methods. Card vaulting and PayPal agreements. Determines the collection path for all subscriptions.

Invoice History

List invoices, detail views, PDF generation for customer records. Previously showed "Paid / Paid" for resolved bad debt — now fixed.

Bad Debt Payment

Retry failed payments, reconcile account state, clear bad debt flags. Now isolated behind a dedicated endpoint with guards.

Observability

Prometheus metrics, Grafana dashboards, account health alerts. Business observability for billing state across all entry points.

StoreRole
PostgreSQLPrimary relational store for account records and billing profiles.
RedisCache layer, session management, and rate limiting.
Stripe CustomerThe sixth store — shared state across all three areas. Stripe customer objects are the canonical reference for payment methods and billing identity.
Billing History Fix

Invoice pagination and date filtering for accurate customer-facing records. Replaces the misleading "Paid / Paid" display for resolved bad debt.

Bad Debt Endpoint

Isolated /pay-bad-debt endpoint with guards. Separate from the regular collection path to prevent accidental state corruption.

NinjaPanel Recompute

Support self-service — trigger a full account recompute from NinjaPanel. Eliminates the need for engineering intervention on stuck accounts.

Business Observability

Metrics pipeline and Grafana dashboards for account health. Visibility into billing state that didn't exist before.

PayPal Fix

Braintree token migration to correct the PayPal vaulting path. Fixes the wrong dunning path that PayPal customers were taking.

Unified Checkout Setup

Single payment flow replacing per-product checkout pages. The front door to billing — card vaulting, PayPal vaulting, and Turnstile.

Entry Points Dashboard 23 endpoints iAPI Gateway 38 endpoints NinjaPanel 18 endpoints Capabilities Billing Profiles Payment Methods Invoice History Bad Debt Observability Data Stores PostgreSQL Redis Stripe Customer
Area 1 layer stack — entry points feed into capabilities, backed by three data stores.