getPlanList()
Gets the list of Billing Plans for the instance. By default, the list is returned in descending order by creation date (newest first).
Returns a PaginatedResourceResponse object with a data property containing an array of BillingPlan objects and a totalCount property containing the total number of Billing Plans for the instance.
function getPlanList(params?: GetPlanListParams): Promise<PaginatedResourceResponse<BillingPlan[]>>- Name
payerType- Type
"org" | "user"- Description
Filters plans by the type of payer.
const { data, totalCount } = await clerkClient.billing.getPlanList({ payerType: 'org' })Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET /billing/plans. See the BAPI reference for more information.
Feedback
Last updated on