Admin API / Mutations
deactivateDiscountCode
Turns off a discount code that the caller or the owner of a store that the caller staffs created. Checkout then refuses the code. Orders placed before the call keep their discount. A repeat succeeds and keeps the first deactivatedAt. reactivateDiscountCode turns the code on again.
Requires a client key with one of these scopes:
admin:discounts:writeRequires this member role or higher: SELLERdeactivateDiscountCode(
input: DeactivateDiscountCodeInput!
): DeactivateDiscountCodePayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | DeactivateDiscountCodeInput! | The code to turn off. |