getOrganizationBillingSubscription()
Retrieves an organization's billing subscription. Returns a CommerceSubscription
.
function getOrganizationBillingSubscription(organizationId: string): Promise<CommerceSubscription>
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