Skip to main content
query

Returns a SellingPlanGroup resource by ID.

•ID!
required

The ID of the SellingPlanGroup to return.


Was this section helpful?

•SellingPlanGroup

A selling method that defines how products can be sold through purchase options like subscriptions, pre-orders, or try-before-you-buy. Groups one or more SellingPlan objects that share the same selling method and options.

The group provides buyer-facing labels and merchant-facing descriptions for the selling method. Associates Product and ProductVariant objects with selling plan groups to offer them through these purchase options.


Caution

Selling plan groups and their associated records are automatically deleted 48 hours after a merchant uninstalls the App that created them. Back up these records if you need to restore them later.


•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.

Arguments

•ID!
required

The ID of the product.


Anchor to appliesToProductVariantappliesToProductVariant
•Boolean!
non-null

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

Arguments

•ID!
required

The ID of the product.


Anchor to appliesToProductVariantsappliesToProductVariants
•Boolean!
non-null

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

Arguments

•ID!
required

The ID of the product.


•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.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•Count

A count of products associated to the selling plan group.

•ProductVariantConnection!
non-null

Product variants associated to the selling plan group.

Arguments

•ID

Filters the product variants by a product ID.

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


Anchor to productVariantsCountproductVariantsCount
•Count

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

Arguments

•ID

The ID of the product to scope the count to.


•SellingPlanConnection!
non-null

Selling plans associated to the selling plan group.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•String

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

•[Translation!]!
non-null

The published translations associated with the resource.

Arguments

•String!
required

Filters translations locale.

•ID

Filters translations by market ID. Use this argument to retrieve content specific to a market.



Was this section helpful?