FunnelFlux Billing Service API
FunnelFlux Billing Service API - manages subscriptions, usage, addons, and custom domain lifecycle.
This service orchestrates across:
- Chargebee: Subscription and billing management
- Ledger: Domain registry (source of truth for ownership)
- Cloudflare: Custom hostname creation/SSL provisioning
Domain Management Architecture
Domains are stored in Ledger as the source of truth. Cloudflare status is fetched
on-demand via the RefreshDomain endpoint (not on every list call).
List Domains: Returns only Ledger data (fast, no Cloudflare calls) Refresh Domain: Fetches fresh Cloudflare status + runs redirect check, updates Ledger Create Domain: Registers in Ledger + creates Cloudflare custom hostname + updates billing Delete Domain: Removes from Cloudflare + Ledger + updates billing