WooCommerce MCP
v0.6.0Manage WooCommerce stores: products, orders, customers, coupons, webhooks, and analytics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
woocommerce_list_stores List stores
List the WooCommerce stores this server can reach, with the id to pass as store, which one is the default, whether writes are allowed, privacy and webhook settings, and cache statistics.
woocommerce_list_products List products
List products in the WooCommerce catalog. Returns a short summary per product plus pagination.
| Parameter | Type | Description |
|---|---|---|
after | string | Created after this date-time |
before | string | Created before this date-time |
category | integer | Category ID |
featured | boolean | |
maxPrice | number | |
minPrice | number | |
onSale | boolean | |
order | string | Sort direction |
orderBy | string | |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
search | string | Free-text search |
sku | string | |
status | string | |
stockStatus | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
tag | integer | Tag ID |
type | string |
woocommerce_search_products Search products
Search products by name, SKU, or description. Returns the same summary shape as the product list.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search phrase matched against product name, SKU, and description |
after | string | Created after this date-time |
before | string | Created before this date-time |
category | integer | Category ID |
featured | boolean | |
maxPrice | number | |
minPrice | number | |
onSale | boolean | |
order | string | Sort direction |
orderBy | string | |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
sku | string | |
status | string | |
stockStatus | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
tag | integer | Tag ID |
type | string |
woocommerce_get_product Get product
Get one product by ID, without the REST _links payload.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Product ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_create_product Create product
Create a product. Prefer status "draft" unless the user asked to publish. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name |
catalogVisibility | string | |
categories | array | Existing category IDs |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
description | string | |
dimensions | object | |
downloadable | boolean | |
dryRun | boolean | Preview the WooCommerce request without sending it |
externalUrl | string | External product URL |
featured | boolean | |
images | array | |
manageStock | boolean | Track stock quantity in WooCommerce |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
regularPrice | Regular price | |
salePrice | Sale price. Send an empty string to clear it | |
shortDescription | string | |
sku | string | |
status | string | Publish status. Prefer draft until the product is ready |
stockQuantity | integer | |
stockStatus | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
tags | array | Existing tag IDs |
type | string | Product type |
virtual | boolean | |
weight | string |
woocommerce_update_product Update product
Update fields on an existing product. Only fields you send are changed. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Product ID |
catalogVisibility | string | |
categories | array | Existing category IDs |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
description | string | |
dimensions | object | |
downloadable | boolean | |
dryRun | boolean | Preview the WooCommerce request without sending it |
externalUrl | string | External product URL |
featured | boolean | |
images | array | |
manageStock | boolean | Track stock quantity in WooCommerce |
name | string | Product name |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
regularPrice | Regular price | |
salePrice | Sale price. Send an empty string to clear it | |
shortDescription | string | |
sku | string | |
status | string | Publish status. Prefer draft until the product is ready |
stockQuantity | integer | |
stockStatus | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
tags | array | Existing tag IDs |
type | string | Product type |
virtual | boolean | |
weight | string |
woocommerce_bulk_update_products Bulk update products
Update price, stock, or status on up to 100 products in one WooCommerce batch request. Per-product failures are listed in errors. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
updates * | array | Up to 100 product updates sent as one batch |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_bulk_adjust_prices Bulk adjust prices
Raise or lower prices on up to 100 products by a percentage or a fixed amount, rounded to the given decimals. Reads the current prices first and returns every old and new price; the preview shows the exact batch request. Variable products are skipped because their prices live on variations. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store dat…
| Parameter | Type | Description |
|---|---|---|
change * | number | Signed change. -10 with mode percent lowers prices by 10% |
mode * | string | percent changes by a percentage, fixed by an amount |
productIds * | array | Simple or external products to reprice |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
decimals | integer | Decimal places to round to. Defaults to 2 |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
target | string | regular adjusts the regular price (default). sale sets the sale price from the regular price |
woocommerce_list_orders List orders
List orders. Each item includes status, total, customer, and up to three line items, plus pagination.
| Parameter | Type | Description |
|---|---|---|
after | string | Created after this date-time |
before | string | Created before this date-time |
customer | integer | Customer ID |
order | string | Sort direction |
orderBy | string | |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
product | integer | Product ID contained in the order |
search | string | |
status | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_get_order Get order
Get one order by ID, including line items, shipping, and billing, without the REST _links payload.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Order ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_update_order_status Update order status
Change an order's status. This does not create a refund by itself; use woocommerce_create_refund for that. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Order ID |
status * | string | New order status |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_add_order_note Add order note
Add a note to an order. Set customerNote when the customer should see it. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
note * | string | Note text |
orderId * | integer | Order ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
customerNote | boolean | When true, the note is shared with the customer |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_order_notes List order notes
List the notes on an order, newest first. Filter to customer-visible or internal notes.
| Parameter | Type | Description |
|---|---|---|
orderId * | integer | Order ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
type | string | Defaults to any |
woocommerce_delete_order_note Delete order note
Delete one note from an order permanently. Notes have no trash. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
noteId * | integer | Note ID |
orderId * | integer | Order ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_get_order_tracking Get order tracking
Read the shipments and tracking numbers recorded on an order.
| Parameter | Type | Description |
|---|---|---|
orderId * | integer | Order ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_fulfill_order Fulfill order
Record a shipment with carrier and tracking number, mark the order completed, and add a customer note with the tracking details. The preview shows the first request; the status change and note follow it when you confirm. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
carrier * | string | Carrier name, such as DHL or Post |
orderId * | integer | Order ID |
trackingNumber * | string | Tracking number |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
markCompleted | boolean | Set the order status to completed. Defaults to true |
notifyCustomer | boolean | Add a customer-visible note with the tracking details. Defaults to true |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
shippedAt | string | Ship date, YYYY-MM-DD. Defaults to today (UTC) |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
trackingUrl | string | Tracking page URL |
woocommerce_list_refunds List refunds
List the refunds recorded on an order.
| Parameter | Type | Description |
|---|---|---|
orderId * | integer | Order ID |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_get_refund Get refund
Get one refund on an order, including refunded line items.
| Parameter | Type | Description |
|---|---|---|
orderId * | integer | Order ID |
refundId * | integer | Refund ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_create_refund Create refund
Record a refund on an order, by total amount or by line items. By default this records a manual refund and does not move money; set apiRefund: true to ask the payment gateway to return the funds. Refunds cannot be undone. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
orderId * | integer | Order ID |
amount | Total refund amount. Required unless lineItems is given | |
apiRefund | boolean | Ask the payment gateway to return the money. Defaults to false, which records a manual refund only |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
lineItems | array | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
reason | string | Reason shown on the order |
restockItems | boolean | Return refunded line item quantities to stock |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_customers List customers
List customers. Returns id, name, email, role, and pagination. Customer records contain personal data; pass redactPii: true to mask it.
| Parameter | Type | Description |
|---|---|---|
email | string | |
order | string | Sort direction |
orderBy | string | |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
redactPii | boolean | Mask names, emails, phones, and street addresses in the result. Stores can force this on |
role | string | WordPress role, for example customer |
search | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_get_customer Get customer
Get one customer by ID, without the REST _links payload. Customer records contain personal data; pass redactPii: true to mask it.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Customer ID |
redactPii | boolean | Mask names, emails, phones, and street addresses in the result. Stores can force this on |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_update_customer Update customer
Update a customer email, name, or billing and shipping address. Only the fields you pass are changed. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Customer ID |
billing | object | |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
email | string | |
firstName | string | |
lastName | string | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
shipping | object | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_customer_orders Customer orders
Summarize one customer's order history: order count, total spent, average order value, first and last order, and recent orders. Customer records contain personal data; pass redactPii: true to mask it.
| Parameter | Type | Description |
|---|---|---|
customerId * | integer | Customer ID |
maxOrders | integer | Orders to read. Defaults to 200 |
recent | integer | How many recent orders to list. Defaults to 10 |
redactPii | boolean | Mask names, emails, phones, and street addresses in the result. Stores can force this on |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_customer_segments Customer segments
Group the customers who ordered in a date range into VIP, repeat, one-time, at-risk, and guest segments, with counts, spend, and the top members of each. Customer records contain personal data; pass redactPii: true to mask it.
| Parameter | Type | Description |
|---|---|---|
after * | string | Include orders created at or after this date-time |
atRiskDays | integer | Repeat customers with no order in this many days are at risk. Defaults to 60 |
before | string | Include orders created before this date-time. Defaults to now |
maxOrders | integer | Defaults to 2000 |
membersPerSegment | integer | Customers to list per segment. Defaults to 10 |
redactPii | boolean | Mask names, emails, phones, and street addresses in the result. Stores can force this on |
statuses | array | Defaults to processing and completed |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
vipShare | number | Percentage of customers by spend counted as VIP. Defaults to 10 |
woocommerce_get_stock Get stock
Read stock quantity and status for a product or variation.
| Parameter | Type | Description |
|---|---|---|
productId * | integer | Product ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
variationId | integer | Variation ID when the stock record belongs to a variation |
woocommerce_update_stock Update stock
Set the stock quantity or status for a product or variation. Sending stockQuantity turns on stock management unless manageStock is false. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
productId * | integer | Product ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
manageStock | boolean | Whether WooCommerce tracks stock for this product |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
stockQuantity | integer | Quantity on hand |
stockStatus | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
variationId | integer | Variation ID when updating a variation |
woocommerce_get_store_summary Store summary
Summarize recent sales, top sellers, and current totals for orders, products, and customers from the WooCommerce reports API. Order, product, and customer totals are current counts and do not take the date range.
| Parameter | Type | Description |
|---|---|---|
dateMax | string | Inclusive end date, YYYY-MM-DD |
dateMin | string | Inclusive start date, YYYY-MM-DD |
period | string | Report period used when dates are omitted. Defaults to month |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_sales_analytics Sales analytics
Compute sales for a date range from orders: gross and net sales, refunds, average order value, a day, week, or month series, top products, and payment methods. Reads up to maxOrders orders and says when the result is truncated.
| Parameter | Type | Description |
|---|---|---|
after * | string | Include orders created at or after this date-time |
before | string | Include orders created before this date-time. Defaults to now |
groupBy | string | Time bucket for the series. Defaults to day |
maxOrders | integer | Stop after this many orders. Defaults to 1000. The result says when it was truncated |
statuses | array | Order statuses that count as sales. Defaults to processing and completed |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
top | integer | How many top products to return. Defaults to 10 |
woocommerce_low_stock_report Low stock report
List products and variations whose managed stock is at or below a threshold, plus out-of-stock items, sorted by quantity so the most urgent come first. Variations of variable products are checked one by one unless the parent manages stock for all of them.
| Parameter | Type | Description |
|---|---|---|
includeOutOfStock | boolean | Include out-of-stock products. Defaults to true |
includeVariations | boolean | Check each variation of variable products. Defaults to true |
maxProducts | integer | Products to scan. Defaults to 500 |
maxVariations | integer | Variations to scan. Defaults to 2000 |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
threshold | integer | Report managed stock at or below this. Defaults to 5 |
woocommerce_list_coupons List coupons
List coupons with code, discount type, amount, and usage, plus pagination.
| Parameter | Type | Description |
|---|---|---|
after | string | ISO-8601 date-time |
before | string | ISO-8601 date-time |
code | string | Exact coupon code |
order | string | Sort direction |
orderBy | string | |
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
search | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_create_coupon Create coupon
Create a coupon. Amount is a decimal string or number, without a currency symbol. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
amount * | Discount amount, without a currency symbol | |
code * | string | Coupon code customers enter |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dateExpires | Expiry as YYYY-MM-DD or an ISO-8601 date-time | |
description | string | |
discountType | string | Defaults to the store default, which is fixed_cart, when omitted |
dryRun | boolean | Preview the WooCommerce request without sending it |
emailRestrictions | array | |
excludedProductIds | array | |
freeShipping | boolean | |
individualUse | boolean | |
maximumAmount | Decimal amount, as a number or a string such as "19.99" | |
minimumAmount | Decimal amount, as a number or a string such as "19.99" | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
productIds | array | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
usageLimit | integer | |
usageLimitPerUser | integer |
woocommerce_get_coupon Get coupon
Get one coupon with its restrictions, limits, and usage count.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Coupon ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_update_coupon Update coupon
Change a coupon amount, type, expiry, limits, or restrictions. Only the fields you pass are changed. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Coupon ID |
amount | Decimal amount, as a number or a string such as "19.99" | |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dateExpires | New expiry as YYYY-MM-DD or an ISO-8601 date-time, or null to remove it | |
description | string | |
discountType | string | |
dryRun | boolean | Preview the WooCommerce request without sending it |
emailRestrictions | array | |
excludedProductIds | array | |
freeShipping | boolean | |
individualUse | boolean | |
maximumAmount | Decimal amount, as a number or a string such as "19.99" | |
minimumAmount | Decimal amount, as a number or a string such as "19.99" | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
productIds | array | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
usageLimit | ||
usageLimitPerUser |
woocommerce_delete_coupon Delete coupon
Move a coupon to the trash, or delete it permanently with force: true. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Coupon ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
force | boolean | Delete permanently instead of moving to the trash. Defaults to false |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_coupon_performance Coupon performance
Report how often each coupon was used in a date range, with the discount given and the revenue of the orders that used it.
| Parameter | Type | Description |
|---|---|---|
after * | string | Include orders created at or after this date-time |
before | string | Include orders created before this date-time. Defaults to now |
code | string | Only report this coupon code |
maxOrders | integer | Defaults to 1000 |
statuses | array | Defaults to processing and completed |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_schedule_sale Schedule sale
Put products on sale at a percentage off their regular price, optionally between two dates. Variable and grouped products are skipped; use the variation tools for those. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
discountPercent * | number | Discount from the regular price, for example 20 for 20% off |
productIds * | array | Simple or external products to put on sale |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
decimals | integer | Decimal places to round to. Defaults to 2 |
dryRun | boolean | Preview the WooCommerce request without sending it |
endsAt | Sale end. Omit for no end date | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
startsAt | Sale start. Omit to start now | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_end_sale End sale
Clear the sale price and sale dates of products so they sell at their regular price again. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
productIds * | array | Products whose sale price and sale dates are cleared |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_webhooks List webhooks
List the webhooks configured in WooCommerce with topic, status, and delivery URL. Secrets are never returned.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
status | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_get_webhook Get webhook
Get one webhook by ID. The secret is never returned.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_create_webhook Create webhook
Create a webhook for a topic such as order.created. It is signed with this store's configured webhook secret, so deliveries to this server's receiver can be verified. The secret is never shown. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
deliveryUrl * | string | Public https URL that receives deliveries, such as this server's webhook receiver |
name * | string | Name shown in WooCommerce |
topic * | string | Event that triggers the webhook |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
status | string | Defaults to active |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_update_webhook Update webhook
Rename, pause, resume, or disable a webhook, change its delivery URL, or reset its secret to this store's configured secret. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
deliveryUrl | string | |
dryRun | boolean | Preview the WooCommerce request without sending it |
name | string | |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
rotateSecret | boolean | Set the webhook's secret to this store's configured webhook secret |
status | string | |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_delete_webhook Delete webhook
Delete a webhook permanently. Write tool: refused while the store is read-only. Pass dryRun: true to preview the request. When confirmation is required (the default), call once to get a preview, then again with confirm: true and the returned previewId to apply it. A confirm with a previewId is refused with stale_preview if the store data the change was computed from has changed since the preview.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Webhook ID |
confirm | boolean | Apply the change. Required when the server asks for confirmation |
dryRun | boolean | Preview the WooCommerce request without sending it |
previewId | string | previewId from the preview of this change. The call is refused if the arguments differ from the preview, or if the store data it was computed from has changed since |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_webhook_events List webhook events
List recent webhook deliveries received by this server for the store, newest first. Pass sinceId to poll for new ones. Events are kept in memory only.
| Parameter | Type | Description |
|---|---|---|
includePayload | boolean | Include each delivery payload. Defaults to false |
limit | integer | Defaults to 20 |
sinceId | integer | Only events with a larger id, for polling |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
topic | string | Filter by topic. order.* matches every order topic |
woocommerce_list_shipping_zones List shipping zones
List shipping zones in match order, with their locations and enabled or disabled shipping methods and costs.
| Parameter | Type | Description |
|---|---|---|
includeLocations | boolean | Include each zone's locations. Defaults to true |
includeMethods | boolean | Include each zone's shipping methods. Defaults to true |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_shipping_methods List shipping methods
List the shipping method types available on the store, such as flat rate and free shipping.
| Parameter | Type | Description |
|---|---|---|
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
woocommerce_list_tax_rates List tax rates
List tax rates with country, state, postcodes, cities, rate, and class. Filter by tax class slug.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1-based page index |
perPage | integer | Page size, from 1 to 100 |
store | string | Store id from woocommerce_list_stores. Defaults to the default store |
taxClass | string | Tax class slug |
woocommerce_list_tax_classes List tax classes
List tax classes, such as standard, reduced rate, and zero rate.
| Parameter | Type | Description |
|---|---|---|
store | string | Store id from woocommerce_list_stores. Defaults to the default store |