DiscountProductsInput

Version 2019-04

Specifies the products and product variants attached to a discount.

Show definition
"""
Specifies the products and product variants attached to a discount.
"""
input DiscountProductsInput {
  """
  Specifies list of product ids. This argument is deprecated: Use `products_to_add` and `products_to_remove` instead.
  """
  productIds: [ID!]
  """
  Specifies list of product variant ids. This argument is deprecated: Use
  `product_variants_to_add` and `product_variants_to_remove` instead.
  """
  productVariantIds: [ID!]
}

Input Fields

productIds ([ID!])

Specifies list of product ids. This argument is deprecated: Use products_to_add and products_to_remove instead.

productVariantIds ([ID!])

Specifies list of product variant ids. This argument is deprecated: Use product_variants_to_add and product_variants_to_remove instead.

Version 2019-07 (Latest)

Specifies the products and product variants attached to a discount.

Show definition
"""
Specifies the products and product variants attached to a discount.
"""
input DiscountProductsInput {
  """
  Specifies list of product variant ids to add.
  """
  productVariantsToAdd: [ID!]
  """
  Specifies list of product variant ids to remove.
  """
  productVariantsToRemove: [ID!]
  """
  Specifies list of product ids to add.
  """
  productsToAdd: [ID!]
  """
  Specifies list of product ids to remove.
  """
  productsToRemove: [ID!]
}

Input Fields

productVariantsToAdd ([ID!])

Specifies list of product variant ids to add.

productVariantsToRemove ([ID!])

Specifies list of product variant ids to remove.

productsToAdd ([ID!])

Specifies list of product ids to add.

productsToRemove ([ID!])

Specifies list of product ids to remove.

Version 2019-10 (Release candidate)

Specifies the products and product variants attached to a discount.

Show definition
"""
Specifies the products and product variants attached to a discount.
"""
input DiscountProductsInput {
  """
  Specifies list of product variant ids to add.
  """
  productVariantsToAdd: [ID!]
  """
  Specifies list of product variant ids to remove.
  """
  productVariantsToRemove: [ID!]
  """
  Specifies list of product ids to add.
  """
  productsToAdd: [ID!]
  """
  Specifies list of product ids to remove.
  """
  productsToRemove: [ID!]
}

Input Fields

productVariantsToAdd ([ID!])

Specifies list of product variant ids to add.

productVariantsToRemove ([ID!])

Specifies list of product variant ids to remove.

productsToAdd ([ID!])

Specifies list of product ids to add.

productsToRemove ([ID!])

Specifies list of product ids to remove.

Sign up for a Partner account to get started.

Sign up