Create Volume Discount
Adds a new volume discount tier to the specified variant. Each tier defines a minimum quantity
and the discount to apply when that quantity is reached.
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 to add the tier to.
Body
The details of the volume discount tier to create.
Form for creating or updating a volume discount tier on a variant.
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 created.
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
Data transfer object for a volume discount tier associated with a variant.