Retrieves a pricing plan by ID.
You can only call this method when authenticated as a Wix app or Wix user identity.
function getPlan(_id: string): Promise<Plan>;
Plan ID.
import { plans } from "@wix/pricing-plans";
async function getPlan(id) {
const response = await plans.getPlan(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.