Get Billing Usage

Get current billing period usage for the authenticated user.

Source of truth: Stripe. This fetches usage directly from Stripe's upcoming invoice API to ensure accurate billing information.

Args: current_user: Authenticated user db: Database session

Returns: BillingUsageResponse with usage statistics from Stripe

get/api/billing/usage

Response

Successful Response

successboolean
hasBillingboolean required
totalCostCentsinteger required
totalCostDollarsnumber required
totalVideoSecondsnumber required
eventCountinteger required
periodStartstring nullable
periodEndstring nullable
billedToUserIdstring nullable
creditBalanceCentsinteger
creditBalanceDollarsnumber
billingModestring

Changes

No recorded changes to this endpoint across all 1 revision of this API.