set_discount_enabled
Enable or disable a discount code in Cmssy. Pass the discount's id or slug and a boolean value to update its status.
Instructions
Enable or disable a discount code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Whether the discount is enabled | |
| idOrSlug | No | The discount's id or code |