Retrieve a Wholesale Variation

This API handles fetching wholesale and non-wholesale variation.

Method

Endpoint

GET

/wp-json/wholseale/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.

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