Replace Volume Discounts
Replaces all existing volume discount tiers for the variant with a new set.
This is useful for bulk updates where you want to set all tiers at once.
Requires the stores.products.update permission.
Authorizations
Your API key goes here
Path Parameters
The ID of the store containing the product.
The ID of the product.
The ID of the variant.
Body
The complete set of volume discount tiers to apply.
The minimum quantity required to activate this discount tier.
1 <= x <= 2147483647Specifies the type of discount to apply for volume pricing tiers.
0, 1, 2 The discount value. Interpretation depends on Komerza.Common.Forms.Products.VolumeDiscountForm.DiscountType:
- Percentage: A percentage off (e.g., 10 = 10% off, max 100)
- FixedAmount: Amount deducted per unit (e.g., 5 = $5 off per unit)
- FixedPrice: The new unit price (e.g., 8 = $8 per unit)
0 <= x <= 100000Response
The object was successfully updated.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents the data associated with a response.