Skip to main content
Creates a new subscription plan in draft status.

Mutation

mutation CreatePlan($input: PlanCreateInput!) {
  createOnePlan(input: $input) {
    id
    refId
    displayName
    description
    status
    pricingType
    versionNumber
  }
}

Parameters

input
PlanCreateInput
required
Input for creating a plan

Return Type

Returns the created Plan object in DRAFT status.

Next Steps

After creating a plan:
  1. Add entitlements with createPackageEntitlements
  2. Set pricing with setPackagePricing
  3. Configure compatible addons with setCompatibleAddonsOnPlan
  4. Publish with publishPlan