Update a Wholesale Variation

This API allows you to update a wholesale variation

Method

Endpoint

PUT

/wp-json/wholesale/v1/products/{variable_id}/variations/{variation_id}

Path parameters

Required

Type

Description

variable_id

yes

int

The variable ID.

variation_id

yes

int

The variation ID.

Body Parameters

Required

Type

Description

wholesale_price

yes

array

Wholesale prices for each wholesale role.

wholesale_visibility_filter

no

array

The wholesale role keys that allowed to see the product.

wholesale_minimum_order_quantity

no

array

The "Wholesale Minimum Order Quantity" for each role

wholesale_order_quantity_step

no

array

The "Wholesale Order Quantity Step" for each

wholesale_quantity_discount_rule_mapping

no

array

The rules for "Product Quantity Based Wholesale Pricing" option.

Extra Properties for wholesale_quantity_discount_rule_mapping

PropertiesTypeDescription

wholesale_role

String

The wholesale role key

start_qty

Number

The min quantity of the quantity range in order to trigger the wholesale discount.

end_qty

Number

The max quantity of the quantity range in order to trigger the wholesale discount.

price_type

String

Either percent-price or fixed-price

wholesale_price

Number

The wholesale price/discount.

Last updated