DiscountProductsInput input object

Version 2020-01 (Release candidate)

Specifies the products and product variants attached to a discount.

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 (Latest)

Specifies the products and product variants attached to a discount.

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-07

Specifies the products and product variants attached to a discount.

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-04

Specifies the products and product variants attached to a discount.

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.

Sign up for a Partner account to get started.

Sign up