List All Wholesale Variations

This API allows you to fetch all 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

uid

no

int

The user ID.

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.

Note:

  • If you need to filter the results based on the per-user wholesale override setting you need to specify the user ID via uid query parameter.

Last updated