End discount code
expire_discount_codeStop a code working now, on every site using that Stripe account. Orders that already used it keep their discount.
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": {
"siteId": "<siteId>",
"codeId": "<codeId>"
},
"name": "expire_discount_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codeId | Yes | id from list_discount_codes, "promo_…" | |
| siteId | Yes | Site id (from list_sites) |