Skip to main content

SellingPlanGroup

Requires read_products access scope.

Supported actions: create, update, delete

Subscribe to field-level changes on the SellingPlanGroup GraphQL Admin API object.

Each topic corresponds to a commerce resource that can exist independently within its domain. Child entities that depend on a parent within the same domain don't have their own topic. Instead, changes to child entities trigger a delivery on the parent topic. Calculated fields, derived fields, auto-updated timestamps, and cross-domain fields aren't available as triggers.

shopify.app.toml

[events]
api_version = "2027-01"

[[events.subscription]]
handle = "my_selling-plan-group_event"

topic = "SellingPlanGroup"
actions = ["update"]
triggers = ["sellingPlanGroup.description"]

uri = "https://your-app.com/events"

query = """
query sellingPlanGroup_event_payload($sellingPlanGroupId: ID!) {
sellingPlanGroup(id: $sellingPlanGroupId) {
id
name
description
}
}
"""

Field-level triggers for SellingPlanGroup subscriptions.

All triggers require the read_products access scope. Those triggers that require additional scopes are documented where relevant. Deprecated triggers are listed last.

Subscriptions can include multiple triggers. Use the shopify-webhook-id header for deduplication when handling duplicate deliveries.

Custom queries aren't limited to SellingPlanGroup. They can query the full GraphQL Admin API.

Anchor to list-of-topics-sellingPlanGroup.*
sellingPlanGroup.*

Fires when events involve the SellingPlanGroup object.

The "create" and "delete" actions are only relevant within the context of this parent topic. Use fields_changed to follow or replicate impacted data after a delete event. Define a custom query to retrieve specific fields from create events.

sellingPlanGroup.* is a parent trigger. Subscribing with the "update" action receives events for all supported triggers under sellingPlanGroup, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Variables: sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.description
sellingPlanGroup.description

Fires when the description field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The description field represents the merchant-facing description of the selling plan group.

Variables: sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.merchantCode
sellingPlanGroup.merchantCode

Fires when the merchantCode field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The merchantCode field represents the merchant-facing label of the selling plan group.

Variables: sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.name
sellingPlanGroup.name

Fires when the name field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The name field represents the buyer-facing label of the selling plan group.

Variables: sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.position
sellingPlanGroup.position

Fires when the position field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The position field represents the relative position of the selling plan group for display.

Variables: sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.productVariants
sellingPlanGroup.productVariants

Fires when the productVariants field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Product variants associated to the selling plan group.

Variables: productVariantsId, sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.products
sellingPlanGroup.products

Fires when the products field on the SellingPlanGroup object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Products associated to the selling plan group.

Variables: productsId, sellingPlanGroupId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.*
sellingPlanGroup.sellingPlans.*

Fires when the sellingPlans field on the SellingPlanGroup object changes.

sellingPlanGroup.sellingPlans.* is a parent trigger. Subscribing with the "update" action receives events for all supported triggers under sellingPlanGroup.sellingPlans, including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Selling plans associated to the selling plan group.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.billingPolicy
sellingPlanGroup.sellingPlans.billingPolicy

Fires when the billingPolicy field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The billingPolicy field represents a selling plan policy which describes the recurring billing details.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.category
sellingPlanGroup.sellingPlans.category

Fires when the category field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The category field represents the category used to classify the selling plan for reporting purposes.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.deliveryPolicy
sellingPlanGroup.sellingPlans.deliveryPolicy

Fires when the deliveryPolicy field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The deliveryPolicy field represents a selling plan policy which describes the delivery details.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.description
sellingPlanGroup.sellingPlans.description

Fires when the description field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Buyer facing string which describes the selling plan commitment.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.inventoryPolicy
sellingPlanGroup.sellingPlans.inventoryPolicy

Fires when the inventoryPolicy field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

When to reserve inventory for a selling plan.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!).*
sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!).*

Fires when the metafield field on the SellingPlan object changes.

sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!).* is a parent trigger. Subscribing with the "update" action receives events for all supported triggers under sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!), including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The metafield field represents a custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Variables: metafieldKey, metafieldNamespace, sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.metafield(namespace: String!).*
sellingPlanGroup.sellingPlans.metafield(namespace: String!).*

Fires when the metafield field on the SellingPlan object changes.

sellingPlanGroup.sellingPlans.metafield(namespace: String!).* is a parent trigger. Subscribing with the "update" action receives events for all supported triggers under sellingPlanGroup.sellingPlans.metafield(namespace: String!), including nested triggers. Use a more specific trigger to limit events to the fields you need.

Include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

This subscription omits the optional argument metafield.key.

The metafield field represents a custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Variables: metafieldKey, metafieldNamespace, sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!).value
sellingPlanGroup.sellingPlans.metafield(namespace: String!, key: String!).value

Fires when the value field on the Metafield object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The value field represents the data stored in the metafield.

Variables: metafieldKey, metafieldNamespace, sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.metafield(namespace: String!).value
sellingPlanGroup.sellingPlans.metafield(namespace: String!).value

Fires when the value field on the Metafield object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

This subscription omits the optional argument metafield.key.

The value field represents the data stored in the metafield.

Variables: metafieldKey, metafieldNamespace, sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.name
sellingPlanGroup.sellingPlans.name

Fires when the name field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

The name field represents a customer-facing description of the selling plan.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.position
sellingPlanGroup.sellingPlans.position

Fires when the position field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Relative position of the selling plan for display.

Variables: sellingPlanGroupId, sellingPlansId

Anchor to list-of-topics-sellingPlanGroup.sellingPlans.pricingPolicies
sellingPlanGroup.sellingPlans.pricingPolicies

Fires when the pricingPolicies field on the SellingPlan object changes.

Subscribe to this trigger with the "update" action and include the field in a custom query to retrieve updated data from the payload. You can trace the field in subsequent requests using fields_changed.

Selling plan pricing details.

Variables: sellingPlanGroupId, sellingPlansId


Was this page helpful?