Skip to main content
Anchor to QuantityRuleUserError

QuantityRuleUserError

object

Requires read_products access scope.

An error for a failed quantity rule operation.

•QuantityRuleUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Creates or updates existing quantity rules on a price list. You can use the quantityRulesAdd mutation to set order level minimums, maximumums and increments for specific product variants.

Arguments

•ID!required

The ID of the price list to which the quantity rules will be added or updated.

•[QuantityRuleInput!]!required

The list of quantity rules to add or update in the price list.


Fields

•[QuantityRule!]

The list of quantity rules that were added to or updated in the price list.

•[QuantityRuleUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes specific quantity rules from a price list using a product variant ID. You can use the quantityRulesDelete mutation to delete a set of quantity rules from a price list.

Arguments

•ID!required

The ID of the price list from which the quantity rules will be deleted.

•[ID!]!required

A list of product variant IDs whose quantity rules will be removed from the price list.


Fields

Anchor to deletedQuantityRulesVariantIdsdeletedQuantityRulesVariantIds
•[ID!]

A list of product variant IDs whose quantity rules were removed from the price list.

•[QuantityRuleUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?