Component ยท Shared or other
billing-service
CHOREO CLOUD Service Choreo Cloud service
What it is
billing-service manages subscriptions, entitlements and usage metering for Choreo Cloud. For Agent Manager it holds the product, plans and quotas, and it receives usage events from the metering job. It supports Stripe and AWS Marketplace payments.
Why it exists
A paid SaaS needs to know what each customer is entitled to and how much they have used.
How it works
- Product agent-manager has a 30-day trial plan, then an enterprise plan.
- Trial quotas include 5 platform agents, 5 external agents, 1 environment and 5 projects.
- Receives usage events at POST /metering/api/v1/events.
- Entitlement is checked before an agent is created, and exceeding a quota returns 402.
- Publishes events such as subscription.activated on NATS, which triggers provisioning.
Identity and access
The metering job authenticates with client_credentials as METERING_PUBLISHER_APP, and billing works out the customer from the token.
Key facts
- Cluster
- cloud-cp (project core)
- Product
- agent-manager
- Plans
- Trial (30 days), enterprise
- Edition
- Choreo Cloud
- Namespace
- cloud-cp
Talks to (1)
- sends telemetry to NATS JetStream WSO2CLOUDEVENTS subscription.activatedCloudEvents
Used by (4)
- called by agent-platform AMS shell Entitlement check before agent createHTTPS entitlement API
- called by agent-manager-metering Hourly usage eventsHTTPS POST /metering/api/v1/events
- called by Console (React SPA) First visit activates the Agent Manager subscriptionHTTP GET /organization?product=agent-manager
- called by agent-manager-service (SaaS deployment) Agent Manager asks billing whether the subscription allows an agent to be createdHTTPS entitlement checks API
Inside and around
Part of: cloud-cp (cloud control plane)