WooCommerce Gutschein erstellen
woo_create_couponCreate a new WooCommerce coupon with custom discount types, amounts, usage limits, and restrictions.
Instructions
Erstellt einen neuen WooCommerce Gutschein
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"discountType": "<discountType>",
"amount": "<amount>"
},
"name": "woo_create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Gutscheincode | |
| amount | Yes | Rabattbetrag/Prozent | |
| productIds | No | Nur für diese Produkt-IDs | |
| usageLimit | No | Verwendungslimit gesamt | |
| categoryIds | No | Nur für diese Kategorie-IDs | |
| dateExpires | No | Ablaufdatum (ISO 8601) | |
| description | No | Beschreibung | |
| discountType | Yes | Rabatttyp | |
| freeShipping | No | Kostenloser Versand | |
| maximumAmount | No | Maximalbestellwert | |
| minimumAmount | No | Mindestbestellwert | |
| excludeSaleItems | No | Sale-Artikel ausschließen | |
| usageLimitPerUser | No | Verwendungslimit pro Kunde |