delete_promo_code
Remove a promo code permanently from a Mailchimp store, deleting all associated redemption history. This action cannot be undone.
Instructions
Permanently delete a promo code. Past redemption history is lost. Irreversible.
Use update_promo_code with enabled=false to disable a code while preserving its redemption stats. Use delete_promo_rule to remove the rule and all its codes at once.
Returns 404 if any of store_id, promo_rule_id, or promo_code_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID the code is attached to. promo_code_id: Code ID to delete.
Returns: JSON with status ('deleted'), store_id, promo_rule_id, promo_code_id on success.
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": {
"store_id": "<store_id>",
"promo_rule_id": "<promo_rule_id>",
"promo_code_id": "<promo_code_id>"
},
"name": "delete_promo_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| store_id | Yes | ||
| promo_code_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |