--- title: sellingPlanGroupAddProductVariants - GraphQL Admin description: Adds multiple product variants to a selling plan group. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/sellingplangroupaddproductvariants md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/sellingplangroupaddproductvariants.md --- # selling​Plan​Group​Add​Product​Variants mutation Requires `write_products` access scope as well as any of `write_own_subscription_contracts`, `write_purchase_options` access scopes. Also: The user must have `manage_orders_information` permissions. Adds multiple product variants to a selling plan group. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the selling plan group. * product​Variant​Ids [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The IDs of the product variants to add. *** ## Selling​Plan​Group​Add​Product​Variants​Payload returns * selling​Plan​Group [Selling​Plan​Group](https://shopify.dev/docs/api/admin-graphql/latest/objects/SellingPlanGroup) The updated selling plan group. * user​Errors [\[Selling​Plan​Group​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/SellingPlanGroupUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### sellingPlanGroupAddProductVariants reference ## Mutation Reference ```graphql mutation sellingPlanGroupAddProductVariants($id: ID!, $productVariantIds: [ID!]!) { sellingPlanGroupAddProductVariants(id: $id, productVariantIds: $productVariantIds) { sellingPlanGroup { # SellingPlanGroup fields } userErrors { field message } } } ``` ## Input ##### Variables ```json { "id": "gid://shopify//10079785100", "productVariantIds": [ "gid://shopify//10079785100" ] } ```