API Reference

WordPress / API Reference

woo_create_coupon

WooCommerce tool. Create a WooCommerce discount coupon

This is a write tool: it creates coupon in your WordPress account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Create coupon in my WordPress account for [code], [amount].

It takes 2 required and 13 optional parameters.

Parameters

ParameterTypeRequiredDescription
codestringYesCode
amountstringYesAmount
discount_typestringNoDiscount Type
descriptionstringNoDescription
date_expiresstringNoDate Expires
minimum_amountstringNoMinimum Amount
maximum_amountstringNoMaximum Amount
usage_limitintegerNoUsage Limit
usage_limit_per_userintegerNoUsage Limit Per User
individual_usebooleanNoIndividual Use
exclude_sale_itemsbooleanNoExclude Sale Items
product_idsarrayNoProduct Ids
excluded_product_idsarrayNoExcluded Product Ids
product_categoriesarrayNoProduct Categories
free_shippingbooleanNoFree Shipping

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.