getOrganizationBillingSubscription()
Gets the BillingSubscription for the given Organization.
function getOrganizationBillingSubscription(organizationId: string): Promise<BillingSubscription>- Name
organizationId- Type
string- Description
The ID of the Organization to get the Billing Subscription for.
const organizationId = 'org_123'
const subscription = await clerkClient.billing.getOrganizationBillingSubscription(organizationId)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET /organizations/{organization_id}/billing/subscription. See the BAPI reference for more information.
Feedback
Last updated on