Skip to main content
@ai-billing/nextjs
@ai-billing/nextjs / server / fetchStripeUsage

Function: fetchStripeUsage()

fetchStripeUsage(_request): Promise<StripeUsageData>
Defined in: packages/nextjs/src/stripe/fetchStripeUsage.ts:9 Fetches usage data for a given customer. (Mocked implementation)

Parameters

_request

User identifier — either { userId } or { stripeCustomerId }.

stripeCustomerId?

string

userId?

string

Returns

Promise<StripeUsageData>
Last modified on October 29, 2026