> For the complete documentation index, see [llms.txt](https://rymera.gitbook.io/wholesale-suite-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwpp.md).

# wholesale/v1 (Premium)

## Changelog:

v1.27

* Added the ability to do batch products and variations updates.
* Added the ability to list, create, update and delete Category Wholesale Discounts.
* Added the ability to list, create, update and delete General Wholesale Discounts.
* Compatibility with [Bundle](https://docs.woocommerce.com/document/bundles/bundles-rest-api-reference/) and [Composite ](https://docs.woocommerce.com/document/composite-products/composite-products-rest-api-reference/)API.
* This release requires a minimum version of Wholesale Prices v1.16.

This API was introduced in Wholesale Prices Premium 1.25

### Endpoints:

`/wp-json/wholesale/v1/products`

This endpoint allows you to List, Create, Update, Delete Wholesale Products.

`/wp-json/wholesale/v1/products/{product_id}/variations`

This endpoint allows you to List, Create, Update, Delete Wholesale Variations.

`/wp-json/wholesale/v1/products/batch`

This endpoint allows you to do Batch Create, Update, Delete Wholesale Products.

`/wp-json/wholesale/v1/products/batch/{variable_id}/batch`

This endpoint allows you to do Batch Create, Update, Delete Wholesale Variations.

`/wp-json/wholesale/v1/wholesale_role`

This endpoint allows you to List and Update Wholesale Role. (Free Version only have 1 wholesale role)

`/wp-json/wholesale/v1/category-discount`

This endpoint allows you to List, Create, Update, Delete Category Wholesale Discounts.

`/wp-json/wholesale/v1/general-discount`

This endpoint allows you to List, Create, Update, Delete General Wholesale Discounts.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwpp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
