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.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerceThis skill is limited to using the following tools:
**Fetch live docs**:
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
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.