Skip to main content
Anchor to quantityPricingByVariantUpdate

quantityPricingByVariantUpdate

mutation

Requires write_products access scope. Also: The user must have permission to create and edit catalogs, and the shop requires B2B features enabled.

Updates quantity pricing on a PriceList for specific ProductVariant objects. You can set fixed prices (see PriceListPrice), quantity rules, and quantity price breaks in a single operation.

QuantityRule objects define minimum, maximum, and increment constraints for ordering. QuantityPriceBreak objects offer tiered pricing based on purchase volume.

The mutation executes delete operations before create operations and doesn't allow partial updates.


Note

If any requested change fails, then the mutation doesn't apply any of the changes.


•QuantityPricingByVariantUpdateInput!
required

The input data used to update the quantity pricing in the price list.

•ID!
required

The ID of the price list for which quantity pricing will be updated.


Was this section helpful?

Anchor to QuantityPricingByVariantUpdatePayload returnsQuantityPricingByVariantUpdatePayload returns

•[ProductVariant!]

The variants for which quantity pricing was created successfully in the price list.

•[QuantityPricingByVariantUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?