Retrieve a Wholesale Product

This API handles fetching wholesale and non-wholesale product.

Method

Endpoint

GET

/wp-json/wholesale/v1/products/{product_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.

show_categories

no

boolean

Whether show or hide wc categories property from the response. The prop is hidden by default using this api.

show_meta_data

no

boolean

Whether show or hide wc meta_data property from the response. The prop is hidden by default using this api.

Last updated