Dashboard API > Plan
Retrieve plans that the organization can enable on other organizations given a mandate
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Returns
Returns an array of resource objects of type per_owner_pricing_plan
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const perOwnerPricingPlans = await client.perOwnerPricingPlans.activableAsAppointedOrganizationList();
for (const perOwnerPricingPlan of perOwnerPricingPlans) { // Check the 'Returned output' tab for the result ☝️ console.log(perOwnerPricingPlan); }}
run();{ id: "124", name: "Basic", active: true, monthly_price: true, yearly_price: true, limits: [ { id: "sites", type: "owner_managed_resource", free_of_charge_usage: 10, extra_packets_available_in_some_plan: true, max_extra_packets: null, extra_packet_amount: null, extra_packet_price: null, }, { id: "locales", type: "per_site_quota_managed_site_resource", free_of_charge_per_site_usage: 10, extra_packets_available_in_some_plan: true, max_extra_packets: null, extra_packet_amount: null, extra_packet_price: null, }, { id: "items", type: "shared_quota_managed_site_resource", free_of_charge_usage: 1000000, extra_packets_available_in_some_plan: true, max_extra_packets: null, extra_packet_amount: null, extra_packet_price: null, }, ], notes: "", enterprise_features: [],}