Skip to content

Billing Pricing

Billing Pricing

Authority

Chargebee is the authoritative product and invoice source. Sirloin reads Chargebee product and invoice state and exposes product data through billing APIs.

Product Display

Product display is computed from ListProducts responses. Frontend plan constants still provide UI metadata, ordering, feature copy, and local presentation rules, but they do not replace Chargebee as the billing source of truth.

Credit Calculation

Billing credits are calculated from Chargebee metadata through Sirloin billing events. Credit application must remain idempotent and auditable.

Source Paths

  • proto/sirloin/v5/billing.proto
  • apps/sirloin/internal/app/services/billing/products/
  • apps/sirloin/internal/app/services/billing/events/credits.go
  • apps/brisket/src/features/products-provider/helper-functions.ts
  • apps/brisket/src/features/checkout/components/constants