Skip to main content
object

Requires read_products access scope.

Represents a selling method (for example, "Subscribe and save" or "Pre-paid"). Selling plan groups and associated records (selling plans and policies) are deleted 48 hours after a merchant uninstalls their subscriptions app. We recommend backing up these records if you need to restore them later.

Anchor to Fields and connectionsFields and connections

•String

The ID for app, exposed in Liquid and product JSON.

•Boolean!non-null

Whether the given product is directly associated to the selling plan group.

Anchor to appliesToProductVariantappliesToProductVariant
•Boolean!non-null

Whether the given product variant is directly associated to the selling plan group.

Anchor to appliesToProductVariantsappliesToProductVariants
•Boolean!non-null

Whether any of the product variants of the given product are associated to the selling plan group.

•DateTime!non-null

The date and time when the selling plan group was created.

•String

The merchant-facing description of the selling plan group.

•ID!non-null

A globally-unique ID.

•String!non-null

The merchant-facing label of the selling plan group.

•String!non-null

The buyer-facing label of the selling plan group.

•[String!]!non-null

The values of all options available on the selling plan group. Selling plans are grouped together in Liquid when they're created by the same app, and have the same selling_plan_group.name and selling_plan_group.options values.

•Int

The relative position of the selling plan group for display.

•ProductConnection!non-null

Products associated to the selling plan group.

•Count

A count of products associated to the selling plan group.

•ProductVariantConnection!non-null

Product variants associated to the selling plan group.

Anchor to productVariantsCountproductVariantsCount
•Count

A count of product variants associated to the selling plan group.

•SellingPlanConnection!non-null

Selling plans associated to the selling plan group.

•String

A summary of the policies associated to the selling plan group.

•[Translation!]!non-null

The published translations associated with the resource.


Was this section helpful?

•query

Returns a Selling Plan Group resource by ID.

•query

List Selling Plan Groups.


Was this section helpful?

•mutation

Adds multiple products to a selling plan group.

Arguments

•ID!required

The ID of the selling plan group.

•[ID!]!required

The IDs of the products to add.


Fields

•SellingPlanGroup

The updated selling plan group.

•[SellingPlanGroupUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Adds multiple product variants to a selling plan group.

Arguments

•ID!required

The ID of the selling plan group.

•[ID!]!required

The IDs of the product variants to add.


Fields

•SellingPlanGroup

The updated selling plan group.

•[SellingPlanGroupUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a Selling Plan Group.

Arguments

•SellingPlanGroupInput!required

The properties of the new Selling Plan Group.

•SellingPlanGroupResourceInput

The resources this Selling Plan Group should be applied to.


Fields

•SellingPlanGroup

The created selling plan group object.

•[SellingPlanGroupUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Update a Selling Plan Group.

Arguments

•ID!required

The Selling Plan Group to update.

•SellingPlanGroupInput!required

The properties of the Selling Plan Group to update.


Fields

Anchor to deletedSellingPlanIdsdeletedSellingPlanIds
•[ID!]

The IDs of the deleted Subscription Plans.

•SellingPlanGroup

The updated Selling Plan Group.

•[SellingPlanGroupUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?
OSZAR »