Fetch organization subscription
- Category
- Billing
- Published
Fetch an organization's subscription from the Backend API
Developers can now fetch an organization's subscription directly from our Backend API via GET /organization/:org_id/billing/subscription
.
Usage with Next.js
import { clerkClient } from '@clerk/nextjs/server'
export async function getOrganizationSubscription() {
const client = await clerkClient()
return client.billing.getOrganizationSubscription('org_xxxxx')
}
For more information and SDK availability, check out the documentation.