Title: W3S API Extension for Woocommerce
Author: w3specialists.com
Published: <strong>2 juni 2025</strong>
Last modified: 2 juni 2025

---

Plugins zoeken

![](https://ps.w.org/w3s-api-extension/assets/icon-256x256.png?rev=3304946)

# W3S API Extension for Woocommerce

 Door [w3specialists.com](https://profiles.wordpress.org/w3specialists/)

[Download](https://downloads.wordpress.org/plugin/w3s-api-extension.1.0.1.zip)

 * [Details](https://nl.wordpress.org/plugins/w3s-api-extension/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/w3s-api-extension/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/w3s-api-extension/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/w3s-api-extension/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/w3s-api-extension/)

## Beschrijving

Enhances your store’s REST API by adding powerful, flexible endpoints.
 Stay tuned
more are coming!

**Add or Remove a Single Category**

Easily append or remove one category at a time—by numeric ID or human-friendly slug—
using simple POST/PUT/PATCH or DELETE requests to
 /wp-json/wc/v3/products/{product_id}/
categories/{identifier}

**Batch Manage Multiple Categories**

In a single call, add or remove multiple categories at once via JSON payloads to
/
wp-json/wc/v3/products/{product_id}/categories Supply an array of IDs or slugs under
the “categories” key to update your product’s category list in bulk.

**Automatic Slug Resolution**
 Pass slugs like “summer-collection” and the plugin
will resolve them to the correct WooCommerce term IDs on the fly—no extra lookups
required.

**Non-Destructive Updates**
 Neither endpoint touches other product data. Categories
are merged or pruned transparently without overwriting prices, stock, attributes,
or any other fields.

Built-In Validation & Security

Sanitization of all inputs (IDs and slugs) to guard against bad data.

Permission checks ensure only users with the edit_products capability (Shop Manager,
Admin) can modify categories.

Clear, standardized error codes (w3s_api_extension_invalid_product and w3s_api_extension_invalid_product_category)
for consistent API responses.

W3S API Extension for WooCommerce installs alongside the core WooCommerce REST API,
requires no additional configuration, and works out of the box.

### Endpoints Documentation

**Product Categories**

 *  Add a single category
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories/{identifier}`
    - **Methods:** POST, PUT, PATCH
    - **Examples:**
       curl -X PUT https://example.com/wp-json/wc/v3/products/125/
      categories/18 \ -u consumer_key:consumer_secret curl -X PUT https://example.
      com/wp-json/wc/v3/products/125/categories/my-category \ -u consumer_key:consumer_secret
 *  Remove a single category
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories/{identifier}`
    - **Methods:** DELETE
    - **Examples:**
       curl -X DELETE https://example.com/wp-json/wc/v3/products/125/
      categories/18 \ -u consumer_key:consumer_secret curl -X DELETE https://example.
      com/wp-json/wc/v3/products/125/categories/my-category \ -u consumer_key:consumer_secret
 *  Batch add categories
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories`
    - **Methods:** POST, PUT, PATCH
    - **Example:**
       curl -X PUT https://example.com/wp-json/wc/v3/products/125/categories\-
      u consumer_key:consumer_secret \ -H “Content-Type: application/json” \ -d ‘{“
      categories”: [1,”my-category”,3,”my-category-1″]}’
 *  Batch delete categories
    - **Type:** HTTP request
    - **Endpoint:** `/wp-json/wc/v3/products/{product_id}/categories`
    - **Methods:** DELETE
    - **Example:**
       curl -X DELETE https://example.com/wp-json/wc/v3/products/125/
      categories \ -u consumer_key:consumer_secret \ -H “Content-Type: application/
      json” \ -d ‘{“categories”: [1,”my-category”,3,”my-category-1″]}’

**Extra notes**

 *  The single category endpoint doesn’t allow slug with characters anything other
   than latin & numbers [a-z0-9]
 *  Strings that include only numbers will be parsed as IDs and not as Slugs

## Installatie

 1. Upload the `w3s-api-extension` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. OPTIONAL: Rewrite rules are flushed automatically on plugin activation. If you 
    want, you can also flush them manually.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“W3S API Extension for Woocommerce” is open source software. De volgende personen
hebben bijgedragen aan deze plugin.

Bijdragers

 *   [ w3specialists.com ](https://profiles.wordpress.org/w3specialists/)

[Vertaal “W3S API Extension for Woocommerce” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/w3s-api-extension)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/w3s-api-extension/),
haal de [SVN repository](https://plugins.svn.wordpress.org/w3s-api-extension/) op,
of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/w3s-api-extension/)
via [RSS](https://plugins.trac.wordpress.org/log/w3s-api-extension/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fixed: readme file modifications

#### 1.0.0

 * Initial release

## Meta

 *  Versie **1.0.1**
 *  Laatst geüpdatet **1 jaar geleden**
 *  Actieve installaties **Minder dan 10**
 *  WordPress versie ** 6.0 of nieuwer **
 *  Getest t/m **6.8.5**
 *  PHP versie ** 7.4 of nieuwer **
 *  Taal
 * [English (US)](https://wordpress.org/plugins/w3s-api-extension/)
 * Tags
 * [api](https://nl.wordpress.org/plugins/tags/api/)[categories](https://nl.wordpress.org/plugins/tags/categories/)
   [extension](https://nl.wordpress.org/plugins/tags/extension/)[woocommerce](https://nl.wordpress.org/plugins/tags/woocommerce/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/w3s-api-extension/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Your review](https://wordpress.org/support/plugin/w3s-api-extension/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/w3s-api-extension/reviews/)

## Bijdragers

 *   [ w3specialists.com ](https://profiles.wordpress.org/w3specialists/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/w3s-api-extension/)