promotion.code.remove
Remove a coupon code. Orders that already used it keep their frozen discount — this only stops future use.
- Scope:
promotion.write - System: no
- Reachable from:
POST /v1/commands/promotion.code.remove(tenant credential) · MCP toolpromotion.code.remove· SDKclient.call('promotion.code.remove', …) - Events:
promotion.updated
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "code_id": { "minLength": 1, "type": "string" } }, "required": [ "code_id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "code_id": { "type": "string" } }, "required": [ "code_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)