const { result, error } = await unprice.plans.listPlanVersions({ onlyPublished: true, onlyEnterprisePlan: false, onlyLatest: true, billingInterval: "month", currency: "USD"});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
const { result, error } = await unprice.plans.listPlanVersions({ onlyPublished: true, onlyEnterprisePlan: false, onlyLatest: true, billingInterval: "month", currency: "USD"});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);
const { result, error } = await unprice.plans.listPlanVersions({ onlyPublished: true, onlyEnterprisePlan: false, onlyLatest: true, billingInterval: "month", currency: "USD"});if (error) { // handle potential network or bad request error // a link to our docs will be in the `error.docs` field console.error(error.message); return;}console.log(result);