quantity Pricing By Variant Update
Requires 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 for specific objects. You can set fixed prices (see ), quantity rules, and quantity price breaks in a single operation.
objects define minimum, maximum, and increment constraints for ordering. objects offer tiered pricing based on purchase volume.
The mutation executes delete operations before create operations and doesn't allow partial updates.
If any requested change fails, then the mutation doesn't apply any of the changes.
If any requested change fails, then the mutation doesn't apply any of the changes.
Note: If any requested change fails, then the mutation doesn't apply any of the changes.
Arguments
- input (QuantityPricingByVariantUpdateInput!)
- priceListId (ID!)
- Anchor to inputinput•Quantity
Pricing By Variant Update Input! required The input data used to update the quantity pricing in the price list.
- Anchor to priceListIdprice•ID!
List Id required The ID of the price list for which quantity pricing will be updated.
Anchor to QuantityPricingByVariantUpdatePayload returnsQuantity Pricing By Variant Update Payload returns
- productVariants ([ProductVariant!])
- userErrors ([QuantityPricingByVariantUserError!]!)
- Anchor to productVariantsproduct•[Product
Variants Variant!] The variants for which quantity pricing was created successfully in the price list.
- Anchor to userErrorsuser•[Quantity
Errors Pricing By Variant User Error!]! non-null The list of errors that occurred from executing the mutation.