getPlan( )


Retrieves a pricing plan by ID.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Pricing Plans
Read Pricing Plans
Learn more about app permissions.
Method Declaration
Copy
function getPlan(_id: string): Promise<Plan>;
Method Parameters
_idstringRequired

Plan ID.

Returns
Return Type:Promise<Plan>
JavaScript
import { plans } from "@wix/pricing-plans"; async function getPlan(id) { const response = await plans.getPlan(id); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?