WooCommerce MCP

v0.6.0
io.github.sadrmanesh/woocommerce-mcp Checked 3 days ago Published 1 month ago

Manage 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.

ParameterTypeDescription
afterstringCreated after this date-time
beforestringCreated before this date-time
categoryintegerCategory ID
featuredboolean
maxPricenumber
minPricenumber
onSaleboolean
orderstringSort direction
orderBystring
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
searchstringFree-text search
skustring
statusstring
stockStatusstring
storestringStore id from woocommerce_list_stores. Defaults to the default store
tagintegerTag ID
typestring

woocommerce_search_products Search products

Search products by name, SKU, or description. Returns the same summary shape as the product list.

ParameterTypeDescription
query *stringSearch phrase matched against product name, SKU, and description
afterstringCreated after this date-time
beforestringCreated before this date-time
categoryintegerCategory ID
featuredboolean
maxPricenumber
minPricenumber
onSaleboolean
orderstringSort direction
orderBystring
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
skustring
statusstring
stockStatusstring
storestringStore id from woocommerce_list_stores. Defaults to the default store
tagintegerTag ID
typestring

woocommerce_get_product Get product

Get one product by ID, without the REST _links payload.

ParameterTypeDescription
id *integerProduct ID
storestringStore 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.

ParameterTypeDescription
name *stringProduct name
catalogVisibilitystring
categoriesarrayExisting category IDs
confirmbooleanApply the change. Required when the server asks for confirmation
descriptionstring
dimensionsobject
downloadableboolean
dryRunbooleanPreview the WooCommerce request without sending it
externalUrlstringExternal product URL
featuredboolean
imagesarray
manageStockbooleanTrack stock quantity in WooCommerce
previewIdstringpreviewId 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
regularPriceRegular price
salePriceSale price. Send an empty string to clear it
shortDescriptionstring
skustring
statusstringPublish status. Prefer draft until the product is ready
stockQuantityinteger
stockStatusstring
storestringStore id from woocommerce_list_stores. Defaults to the default store
tagsarrayExisting tag IDs
typestringProduct type
virtualboolean
weightstring

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.

ParameterTypeDescription
id *integerProduct ID
catalogVisibilitystring
categoriesarrayExisting category IDs
confirmbooleanApply the change. Required when the server asks for confirmation
descriptionstring
dimensionsobject
downloadableboolean
dryRunbooleanPreview the WooCommerce request without sending it
externalUrlstringExternal product URL
featuredboolean
imagesarray
manageStockbooleanTrack stock quantity in WooCommerce
namestringProduct name
previewIdstringpreviewId 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
regularPriceRegular price
salePriceSale price. Send an empty string to clear it
shortDescriptionstring
skustring
statusstringPublish status. Prefer draft until the product is ready
stockQuantityinteger
stockStatusstring
storestringStore id from woocommerce_list_stores. Defaults to the default store
tagsarrayExisting tag IDs
typestringProduct type
virtualboolean
weightstring

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.

ParameterTypeDescription
updates *arrayUp to 100 product updates sent as one batch
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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…

ParameterTypeDescription
change *numberSigned change. -10 with mode percent lowers prices by 10%
mode *stringpercent changes by a percentage, fixed by an amount
productIds *arraySimple or external products to reprice
confirmbooleanApply the change. Required when the server asks for confirmation
decimalsintegerDecimal places to round to. Defaults to 2
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore id from woocommerce_list_stores. Defaults to the default store
targetstringregular 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.

ParameterTypeDescription
afterstringCreated after this date-time
beforestringCreated before this date-time
customerintegerCustomer ID
orderstringSort direction
orderBystring
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
productintegerProduct ID contained in the order
searchstring
statusstring
storestringStore 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.

ParameterTypeDescription
id *integerOrder ID
storestringStore 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.

ParameterTypeDescription
id *integerOrder ID
status *stringNew order status
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
note *stringNote text
orderId *integerOrder ID
confirmbooleanApply the change. Required when the server asks for confirmation
customerNotebooleanWhen true, the note is shared with the customer
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
orderId *integerOrder ID
storestringStore id from woocommerce_list_stores. Defaults to the default store
typestringDefaults 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.

ParameterTypeDescription
noteId *integerNote ID
orderId *integerOrder ID
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
orderId *integerOrder ID
storestringStore 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.

ParameterTypeDescription
carrier *stringCarrier name, such as DHL or Post
orderId *integerOrder ID
trackingNumber *stringTracking number
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
markCompletedbooleanSet the order status to completed. Defaults to true
notifyCustomerbooleanAdd a customer-visible note with the tracking details. Defaults to true
previewIdstringpreviewId 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
shippedAtstringShip date, YYYY-MM-DD. Defaults to today (UTC)
storestringStore id from woocommerce_list_stores. Defaults to the default store
trackingUrlstringTracking page URL

woocommerce_list_refunds List refunds

List the refunds recorded on an order.

ParameterTypeDescription
orderId *integerOrder ID
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
storestringStore 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.

ParameterTypeDescription
orderId *integerOrder ID
refundId *integerRefund ID
storestringStore 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.

ParameterTypeDescription
orderId *integerOrder ID
amountTotal refund amount. Required unless lineItems is given
apiRefundbooleanAsk the payment gateway to return the money. Defaults to false, which records a manual refund only
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
lineItemsarray
previewIdstringpreviewId 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
reasonstringReason shown on the order
restockItemsbooleanReturn refunded line item quantities to stock
storestringStore 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.

ParameterTypeDescription
emailstring
orderstringSort direction
orderBystring
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
redactPiibooleanMask names, emails, phones, and street addresses in the result. Stores can force this on
rolestringWordPress role, for example customer
searchstring
storestringStore 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.

ParameterTypeDescription
id *integerCustomer ID
redactPiibooleanMask names, emails, phones, and street addresses in the result. Stores can force this on
storestringStore 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.

ParameterTypeDescription
id *integerCustomer ID
billingobject
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
emailstring
firstNamestring
lastNamestring
previewIdstringpreviewId 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
shippingobject
storestringStore 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.

ParameterTypeDescription
customerId *integerCustomer ID
maxOrdersintegerOrders to read. Defaults to 200
recentintegerHow many recent orders to list. Defaults to 10
redactPiibooleanMask names, emails, phones, and street addresses in the result. Stores can force this on
storestringStore 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.

ParameterTypeDescription
after *stringInclude orders created at or after this date-time
atRiskDaysintegerRepeat customers with no order in this many days are at risk. Defaults to 60
beforestringInclude orders created before this date-time. Defaults to now
maxOrdersintegerDefaults to 2000
membersPerSegmentintegerCustomers to list per segment. Defaults to 10
redactPiibooleanMask names, emails, phones, and street addresses in the result. Stores can force this on
statusesarrayDefaults to processing and completed
storestringStore id from woocommerce_list_stores. Defaults to the default store
vipSharenumberPercentage 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.

ParameterTypeDescription
productId *integerProduct ID
storestringStore id from woocommerce_list_stores. Defaults to the default store
variationIdintegerVariation 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.

ParameterTypeDescription
productId *integerProduct ID
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
manageStockbooleanWhether WooCommerce tracks stock for this product
previewIdstringpreviewId 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
stockQuantityintegerQuantity on hand
stockStatusstring
storestringStore id from woocommerce_list_stores. Defaults to the default store
variationIdintegerVariation 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.

ParameterTypeDescription
dateMaxstringInclusive end date, YYYY-MM-DD
dateMinstringInclusive start date, YYYY-MM-DD
periodstringReport period used when dates are omitted. Defaults to month
storestringStore 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.

ParameterTypeDescription
after *stringInclude orders created at or after this date-time
beforestringInclude orders created before this date-time. Defaults to now
groupBystringTime bucket for the series. Defaults to day
maxOrdersintegerStop after this many orders. Defaults to 1000. The result says when it was truncated
statusesarrayOrder statuses that count as sales. Defaults to processing and completed
storestringStore id from woocommerce_list_stores. Defaults to the default store
topintegerHow 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.

ParameterTypeDescription
includeOutOfStockbooleanInclude out-of-stock products. Defaults to true
includeVariationsbooleanCheck each variation of variable products. Defaults to true
maxProductsintegerProducts to scan. Defaults to 500
maxVariationsintegerVariations to scan. Defaults to 2000
storestringStore id from woocommerce_list_stores. Defaults to the default store
thresholdintegerReport 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.

ParameterTypeDescription
afterstringISO-8601 date-time
beforestringISO-8601 date-time
codestringExact coupon code
orderstringSort direction
orderBystring
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
searchstring
storestringStore 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.

ParameterTypeDescription
amount *Discount amount, without a currency symbol
code *stringCoupon code customers enter
confirmbooleanApply the change. Required when the server asks for confirmation
dateExpiresExpiry as YYYY-MM-DD or an ISO-8601 date-time
descriptionstring
discountTypestringDefaults to the store default, which is fixed_cart, when omitted
dryRunbooleanPreview the WooCommerce request without sending it
emailRestrictionsarray
excludedProductIdsarray
freeShippingboolean
individualUseboolean
maximumAmountDecimal amount, as a number or a string such as "19.99"
minimumAmountDecimal amount, as a number or a string such as "19.99"
previewIdstringpreviewId 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
productIdsarray
storestringStore id from woocommerce_list_stores. Defaults to the default store
usageLimitinteger
usageLimitPerUserinteger

woocommerce_get_coupon Get coupon

Get one coupon with its restrictions, limits, and usage count.

ParameterTypeDescription
id *integerCoupon ID
storestringStore 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.

ParameterTypeDescription
id *integerCoupon ID
amountDecimal amount, as a number or a string such as "19.99"
confirmbooleanApply the change. Required when the server asks for confirmation
dateExpiresNew expiry as YYYY-MM-DD or an ISO-8601 date-time, or null to remove it
descriptionstring
discountTypestring
dryRunbooleanPreview the WooCommerce request without sending it
emailRestrictionsarray
excludedProductIdsarray
freeShippingboolean
individualUseboolean
maximumAmountDecimal amount, as a number or a string such as "19.99"
minimumAmountDecimal amount, as a number or a string such as "19.99"
previewIdstringpreviewId 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
productIdsarray
storestringStore 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.

ParameterTypeDescription
id *integerCoupon ID
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
forcebooleanDelete permanently instead of moving to the trash. Defaults to false
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
after *stringInclude orders created at or after this date-time
beforestringInclude orders created before this date-time. Defaults to now
codestringOnly report this coupon code
maxOrdersintegerDefaults to 1000
statusesarrayDefaults to processing and completed
storestringStore 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.

ParameterTypeDescription
discountPercent *numberDiscount from the regular price, for example 20 for 20% off
productIds *arraySimple or external products to put on sale
confirmbooleanApply the change. Required when the server asks for confirmation
decimalsintegerDecimal places to round to. Defaults to 2
dryRunbooleanPreview the WooCommerce request without sending it
endsAtSale end. Omit for no end date
previewIdstringpreviewId 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
startsAtSale start. Omit to start now
storestringStore 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.

ParameterTypeDescription
productIds *arrayProducts whose sale price and sale dates are cleared
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
statusstring
storestringStore 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.

ParameterTypeDescription
id *integerWebhook ID
storestringStore 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.

ParameterTypeDescription
deliveryUrl *stringPublic https URL that receives deliveries, such as this server's webhook receiver
name *stringName shown in WooCommerce
topic *stringEvent that triggers the webhook
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
statusstringDefaults to active
storestringStore 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.

ParameterTypeDescription
id *integerWebhook ID
confirmbooleanApply the change. Required when the server asks for confirmation
deliveryUrlstring
dryRunbooleanPreview the WooCommerce request without sending it
namestring
previewIdstringpreviewId 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
rotateSecretbooleanSet the webhook's secret to this store's configured webhook secret
statusstring
storestringStore 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.

ParameterTypeDescription
id *integerWebhook ID
confirmbooleanApply the change. Required when the server asks for confirmation
dryRunbooleanPreview the WooCommerce request without sending it
previewIdstringpreviewId 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
storestringStore 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.

ParameterTypeDescription
includePayloadbooleanInclude each delivery payload. Defaults to false
limitintegerDefaults to 20
sinceIdintegerOnly events with a larger id, for polling
storestringStore id from woocommerce_list_stores. Defaults to the default store
topicstringFilter 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.

ParameterTypeDescription
includeLocationsbooleanInclude each zone's locations. Defaults to true
includeMethodsbooleanInclude each zone's shipping methods. Defaults to true
storestringStore 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.

ParameterTypeDescription
storestringStore 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.

ParameterTypeDescription
pageinteger1-based page index
perPageintegerPage size, from 1 to 100
storestringStore id from woocommerce_list_stores. Defaults to the default store
taxClassstringTax class slug

woocommerce_list_tax_classes List tax classes

List tax classes, such as standard, reduced rate, and zero rate.

ParameterTypeDescription
storestringStore id from woocommerce_list_stores. Defaults to the default store