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 |
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 |
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.If Only Show Wholesale Products To Wholesale Customers is enabled, then you need to specify
wholesale_role
parameter to get correct data.
Last updated