SellingPlan object
Represents how a product can be sold and purchased. Selling plans and associated records (selling plan groups 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.
Required access
Requires access to either all or app-owned selling plans.
On this page
Fields
- billingPolicy (
[SellingPlanBillingPolicy!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplanbillingpolicy)
)
Selling plan policy which describes the billing details. - createdAt (
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
The date and time when the selling plan was created. - deliveryPolicy (
[SellingPlanDeliveryPolicy!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplandeliverypolicy)
)
Selling plan policy which describes the delivery details. - description (
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
Buyer facing string which describes the selling plan commitment. - id (
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
)
Globally unique identifier. - name (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
Buyer facing string which describes the selling plan content. - options (
[[String!]!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
The values of all options available on the selling plan. Selling plans are grouped together in Liquid when they are created by the same app, and have the sameselling_plan_group.name
andselling_plan_group.options
values. - position (
[Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
Relative position of the selling plan for display. A lower position will be displayed before a higher position. - pricingPolicies (
[[SellingPlanPricingPolicy!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplanpricingpolicy)
)
Selling plan pricing details.
Types that return SellingPlan
[SellingPlanGroup.sellingPlans](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplangroup#sellingplans-2021-01)
Implements
[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
An auto-generated type for paginating through multiple SellingPlans.
On this page
Fields
- edges (
[[SellingPlanEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplan)
)
A list of edges. - pageInfo (
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
)
Information to aid in pagination.
An auto-generated type which holds one SellingPlan and a cursor during pagination.
On this page
Fields
- cursor (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
A cursor for use in pagination. - node (
[SellingPlan!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplan)
)
The item at the end of SellingPlanEdge.
Types that return SellingPlanEdge
[SellingPlanConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplan#edges-2021-01)