deleteDiscount
Deletes a discount so that its code can no longer be redeemed.
The discount disappears from Company.discounts, and its code string becomes available again for a new
discount.
Use setDiscountStatus with DiscountStatus.INACTIVE instead if you only want to suspend a
discount and keep it in the company's list. A deleted discount cannot be brought back.
DeleteDiscountPayload.success is true whenever the mutation completes; it never resolves to
false. Deleting an ID that does not exist responds with a not-found error instead.
Authorization is required: you must be allowed to manage the discounts of the company that owns the discount.
Arguments
| Argument | Description | Type |
|---|---|---|
| input | DeleteDiscountInput! |
Type
This field resolves to DeleteDiscountPayload, which has the following fields: