Skip to main content

Plan Object

Description

Represents a subscription plan with pricing, features, and trial information.

Declaration

type Plan {
_id: ID!
id: String
expires: Date
active: Boolean!
features: PlanFeatures!
trial: PlanTrial!
title: String!
currency: String!
recurrence: String!
description: String!
price: PlanPrice!
nextPaymentDate: Date
prices: [PlanPrice!]!
yearlyDiscount: Float
seats: Int!
}

Fields

NameTypeDescription
_idID!Internal database identifier.
id ⚠️StringPlan identifier. This field is deprecated. ⚠️ Deprecated: No longer supported
expiresDateDate when the plan expires (if applicable).
activeBoolean!Whether the plan is currently active.
featuresPlanFeatures!Feature set configuration for the plan.
trialPlanTrial!Trial period information.
titleString!Plan title (e.g., "Essentials", "Standard", "Extended").
currencyString!Currency code for the plan (e.g., "EUR", "USD").
recurrenceString!Billing recurrence ("monthly" or "yearly").
descriptionString!Plan description.
pricePlanPrice!Primary price for the plan.
nextPaymentDateDateDate of the next payment (for active subscriptions).
prices[PlanPrice!]!List of prices in different currencies.
yearlyDiscount ⚠️FloatYearly discount percentage. This field is deprecated. ⚠️ Deprecated: No longer supported
seatsInt!Number of user seats included in the plan.