Delete a Wholesale Variation

This API handles deleting a wholesale or non-wholesale variation.

Method

Endpoint

DELETE

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

Path parameters

Required

Type

Description

variable_id

yes

integer

The variable product ID.

variation_id

yes

integer

The variation ID.

Note:

  • Able to delete wholesale or non-wholesale variation.

  • Deleting variation via this API endpoint will force delete the variation. This fixes the issue when variable product is restored, it will pair again with the deleted variation.

Last updated