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
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Code |
amount | string | Yes | Amount |
discount_type | string | No | Discount Type |
description | string | No | Description |
date_expires | string | No | Date Expires |
minimum_amount | string | No | Minimum Amount |
maximum_amount | string | No | Maximum Amount |
usage_limit | integer | No | Usage Limit |
usage_limit_per_user | integer | No | Usage Limit Per User |
individual_use | boolean | No | Individual Use |
exclude_sale_items | boolean | No | Exclude Sale Items |
product_ids | array | No | Product Ids |
excluded_product_ids | array | No | Excluded Product Ids |
product_categories | array | No | Product Categories |
free_shipping | boolean | No | Free Shipping |
Related WordPress tools
woo_create_attribute_termwoo_create_customerwoo_create_orderwoo_create_productwoo_create_product_attributewoo_create_product_category
Before you can call it
This tool needs a connected WordPress account. The WordPress connect guide covers how to authorize it and what it unlocks, and the quickstart gets a client talking to the server in about five minutes.
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.