/woocommerce-commerce:woo-apifrom woocommerce-commerce
Builds and consumes WooCommerce REST API v3 endpoints — authentication, custom endpoints, webhooks, and batch operations. Use when integrating external systems with WooCommerce.
Ships in woocommerce-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
woocommerce, rest-api, api-development, wordpress, ecommerce, webhooks
20 skills in this plugin
/php-modernWrite modern PHP 8.x code — typed properties, enums, readonly classes, match expressions, named arguments, union/intersection types, fibers, attributes, and constructor promotion. Use when writing PHP for WooCommerce or any PHP 8.x project./php-patternsApply PHP design patterns — Singleton, Factory, Strategy, Observer, Repository, Decorator, and Dependency Injection in PHP. Use when structuring WooCommerce extension code or implementing complex business logic./php-testingWrite PHP tests with PHPUnit — unit tests, mocking, data providers, assertions, test doubles, and TDD workflow. Use when writing tests for WooCommerce extensions or PHP projects.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceOther plugins' skills for the same job