List All Wholesale Variations

This API handles fetching wholesale and non-wholesale variations.

Method

Endpoint

GET

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

Path parameters

Required

Type

Description

variable_id

yes

int

The variable ID.

Query Parameters

Required

Type

Description

wholesale_role

no

string

The wholesale role key.

return_wholesale_products

no

boolean

Return only products with wholesale price. This parameter is dependent on the wholesale_role parameter. Default value is false.

Last updated