Skip to main content
PUT
Replace all volume discount tiers

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The ID of the store containing the product.

productId
string<uuid>
required

The ID of the product.

variantId
string<uuid>
required

The ID of the variant.

Body

The complete set of volume discount tiers to apply.

quantity
integer<int32>
required

The minimum quantity required to activate this discount tier.

Required range: 1 <= x <= 2147483647
discountType
enum<integer>
required

Specifies the type of discount to apply for volume pricing tiers.

Available options:
0,
1,
2
discountValue
number<double>
required

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)
Required range: 0 <= x <= 100000

Response

The object was successfully updated.

Represents a default generic response for API endpoints.

success
boolean
required

Indicates whether the operation or response was successful.

message
string | null

A descriptive message providing additional context or information about the response.

code
string | null

The error code (if there was an error) to use when referencing the error

data
object[] | null

Represents the data associated with a response.

Last modified on August 2, 2026