Tools / WooCommerce

WooCommerce tools reference: complete catalog for this category.

Includes products, taxonomy, stock, orders, coupons, reports, taxes, shipping, and system integrations.

Products and variations

Product creation, updates, variation lifecycle and catalog reads.

wc_get_products Read-only

lists products with filters for status, category, tag, search, pagination, order, and type. It can include images, categories, attributes, variation counts, and pagination metadata.

wc_create_product Write

creates a WooCommerce product with name, type, prices, description, SKU, stock, categories, tags, images, and status.

wc_update_product Write

updates a product by ID.

wc_delete_product Write

deletes a product by ID. `force=true` permanently deletes it.

wc_batch_update_products Write

updates multiple products in a batch.

wc_get_product_variations Read-only

gets variations for a variable product and returns normalized rows with `id`, `product_id`, SKU, pricing, stock, stock status, and attributes.

wc_get_variation Read-only

gets one variation by `product_id` and `variation_id` with ownership validation.

wc_create_product_variation Write

creates a product variation.

wc_update_product_variation Write

updates a variation using `product_id` and `variation_id`, with ownership validation before saving changes.

wc_batch_update_variations Write

batch updates multiple variations of one variable product in a single operation.

wc_delete_product_variation Write

deletes a variation using `product_id` and `variation_id`, with ownership validation.

wc_get_product_attributes Read-only

lists global WooCommerce product attributes (attribute taxonomies).

wc_get_attribute_terms Read-only

lists terms for a WooCommerce product attribute taxonomy using `attribute_id` or `attribute_slug`.

wc_create_product_attribute Write

creates a global WooCommerce product attribute taxonomy.

wc_set_product_attributes Write

sets product attributes on a product, supporting both global taxonomy attributes and local/custom attributes.

Categories, tags and reviews

Taxonomy and review management for cleaner merchandising flows.

wc_get_product_categories Read-only

lists product categories.

wc_create_product_category Write

creates a product category.

wc_update_product_category Write

updates a product category.

wc_delete_product_category Write

deletes a product category.

wc_get_product_tags Read-only

lists product tags.

wc_create_product_tag Write

creates a product tag.

wc_update_product_tag Write

updates a product tag.

wc_delete_product_tag Write

deletes a product tag.

wc_get_product_reviews Read-only

lists product reviews, optionally filtered by `product_id`.

wc_create_product_review Write

creates a product review.

wc_update_product_review Write

updates a product review.

wc_delete_product_review Write

deletes a product review.

Stock

Inventory checks and stock-level operations for daily commerce.

wc_update_stock Write

updates the stock quantity of a product with `set`, `increase`, or `decrease` operations.

wc_get_low_stock_products Read-only

gets products below a stock threshold.

wc_set_stock_status Write

changes stock status to `instock`, `outofstock`, or `onbackorder`.

Orders, notes and refunds

Order lifecycle operations, internal notes and refund controls.

wc_get_orders Sensitive read

lists orders with filters for status, customer, product, dates, pagination, and optional enrichments for items, totals, and shipping.

wc_create_order Write

creates an order with customer, billing, shipping, line items, shipping lines, fees, coupons, status, and payment method.

wc_update_order Write

updates an order by ID.

wc_delete_order Write

deletes an order by ID. `force=true` permanently deletes it.

wc_batch_update_orders Write

updates multiple orders in a batch.

wc_get_order_notes Sensitive read

gets notes for an order.

wc_create_order_note Write

creates a note on an order. It can be a customer note or an internal note.

wc_delete_order_note Write

deletes an order note.

wc_create_refund Write

creates a refund for an order, with amount, reason, lines, and optional inventory handling.

wc_get_refunds Read-only

gets refunds for one order or all refunds.

wc_delete_refund Write

deletes a refund by ID.

Coupons

Coupon reads, creation and campaign lifecycle updates.

wc_get_coupons Read-only

lists coupons with filters for code, status, limit, offset, and order.

wc_get_coupon Read-only

gets one WooCommerce coupon by ID.

wc_get_coupon_count Read-only

counts coupons by status (`publish`, `draft`, `pending`, `private`, `future`, `trash`) or returns totals for all statuses.

wc_create_coupon Write

creates a coupon with code, discount type, amount, expiration, usage limit, individual use, and included or excluded products.

wc_update_coupon Write

updates a coupon by ID.

wc_delete_coupon Write

deletes a coupon by ID. With `force=false`, it attempts to move the coupon to trash first; with `force=true`, it permanently deletes it.

wc_empty_coupon_trash Write

permanently deletes all coupons currently in trash.

Reports

Sales and top-seller reporting for operational visibility.

wc_get_sales_report Read-only

gets a sales report for a date range.

wc_get_top_sellers_report Read-only

gets the top-selling products.

Taxes

Tax class and tax rate management for compliance scenarios.

wc_get_tax_classes Read-only

lists tax classes.

wc_get_tax_rates Read-only

lists tax rates, optionally filtered by class.

wc_create_tax_rate Write

creates a tax rate.

wc_update_tax_rate Write

updates a tax rate by ID.

wc_delete_tax_rate Write

deletes a tax rate by ID.

Shipping

Shipping zones and methods for fulfillment configuration.

wc_get_shipping_zones Read-only

lists shipping zones.

wc_get_shipping_zone_methods Read-only

gets the shipping methods for a zone.

wc_create_shipping_zone Write

creates a shipping zone.

wc_update_shipping_zone Write

updates a zone.

wc_delete_shipping_zone Write

deletes a shipping zone.

Gateways, system, settings and webhooks

Payments, diagnostics, system tools and outbound integration endpoints.

wc_get_payment_gateways Read-only

lists payment gateways.

wc_update_payment_gateway Write

updates a gateway's settings by ID.

wc_get_system_status Sensitive read

gets WooCommerce technical status: environment, versions, database information, and active plugins.

wc_run_system_status_tool Write

runs system tools, such as clearing transients or removing orphaned variations.

wc_get_settings Sensitive read

gets WooCommerce settings by group: general, products, tax, shipping, checkout, or account.

wc_update_setting_option Write

updates a WooCommerce settings option.

wc_get_webhooks Read-only

lists WooCommerce webhooks.

wc_create_webhook Write

creates a WooCommerce webhook with name, status, topic, and delivery URL.

wc_update_webhook Write

updates a webhook.

wc_delete_webhook Write

deletes a webhook.