getUserBillingSubscription()
Retrieves a user's billing subscription. Returns a CommerceSubscription
.
function getUserBillingSubscription(userId: string): Promise<CommerceSubscription>
const userId = 'user_123'
const subscription = await clerkClient.billing.getUserBillingSubscription(userId)
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET /users/{user_id}/billing/subscription
. See the BAPI reference for more information.
Feedback
Last updated on