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

Function: fetchPolarUsage()

fetchPolarUsage(_userId): Promise<PolarUsageData>
Defined in: packages/nextjs/src/polar/fetchPolarUsage.ts:9 Fetches usage data for a given user. (Mocked implementation)

Parameters

_userId

string the end-user ID

Returns

Promise<PolarUsageData>
Last modified on October 29, 2026