From woocommerce-commerce
Builds and consumes WooCommerce REST API v3 endpoints: authentication, custom routes, resource extensions, webhooks, batch operations. For WooCommerce API development and integrations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/woocommerce-commerce:woo-apiThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Fetch live docs**:
Fetch live docs:
https://woocommerce.github.io/woocommerce-rest-api-docs/ for API referencehttps://developer.wordpress.org/rest-api/ for WordPress REST API handbooksite:developer.woocommerce.com rest api extending for extension patternsWooCommerce REST API v3 extends the WordPress REST API:
/wp-json/wc/v3/WP_REST_Controller pattern| Resource | Endpoint | Methods |
|---|---|---|
| Products | /wc/v3/products | GET, POST, PUT, DELETE |
| Product Variations | /wc/v3/products/{id}/variations | GET, POST, PUT, DELETE |
| Orders | /wc/v3/orders | GET, POST, PUT, DELETE |
| Customers | /wc/v3/customers | GET, POST, PUT, DELETE |
| Coupons | /wc/v3/coupons | GET, POST, PUT, DELETE |
| Reports | /wc/v3/reports | GET |
| Settings | /wc/v3/settings | GET, PUT |
| Shipping Zones | /wc/v3/shipping/zones | GET, POST, PUT, DELETE |
| Tax Rates | /wc/v3/taxes | GET, POST, PUT, DELETE |
| Webhooks | /wc/v3/webhooks | GET, POST, PUT, DELETE |
| System Status | /wc/v3/system_status | GET |
WooCommerce generates consumer key/secret pairs:
consumer_key & consumer_secret, or HTTP Basic Authread, write, read_writeWordPress-native auth — username + application password via HTTP Basic Auth. Works for all WP REST API endpoints including WooCommerce.
For internal (same-site) JavaScript:
wp_create_nonce( 'wp_rest' ) — set as X-WP-Nonce headerwp.apiFetch in WordPress scriptsUse rest_api_init action to register routes:
register_rest_route( 'my-extension/v1', '/items', $args )methods, callback, permission_callback, args (with validate_callback and sanitize_callback)Extend WP_REST_Controller for structured endpoints:
register_routes() — define route patternsget_items() — handle collection GETget_item() — handle single GETcreate_item() — handle POSTupdate_item() — handle PUT/PATCHdelete_item() — handle DELETEget_item_schema() — JSON Schema for the resourceget_item_permissions_check() — authorizationAdd fields to existing WooCommerce resources:
register_rest_field( 'product', 'my_field', $args ) — add fields to product responses$args includes get_callback, update_callback, schemawoocommerce_rest_prepare_{post_type} — filter response before sending (e.g., woocommerce_rest_prepare_product_object)woocommerce_rest_pre_insert_{post_type} — filter object before savingwoocommerce_rest_{post_type}_query — filter query argsWooCommerce webhooks fire on resource events:
order.created, order.updated, product.created, customer.created, etc.Filter woocommerce_valid_webhook_events and woocommerce_webhook_topic_hooks to add custom topics.
POST to /wc/v3/products/batch with create, update, delete arrays to perform bulk operations in a single request.
permission_callback — never leave it empty or return true for non-public endpointsWP_REST_Response for responses with proper status codesper_page, page, offset_links for HATEOAS-style discoverabilityFetch the WooCommerce REST API docs and WordPress REST API handbook for exact endpoint paths, parameters, and authentication details before implementing.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceIntegrates with WooCommerce stores via REST API for managing products, orders, customers, and webhooks. Provides setup instructions and code examples in Node.js and Python.
Works with WooCommerce CRUD data stores for WC_Product, WC_Order, WC_Customer, WC_Coupon objects; covers getters/setters, meta data, HPOS migration, custom stores.
Guides WooCommerce store development including setup, payment integration, shipping, custom products, and WordPress 7.0 features like AI connectors, DataViews, and collaboration tools.