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: SELLER
deactivateDiscountCode(
  input: DeactivateDiscountCodeInput!
): DeactivateDiscountCodePayload!

Arguments

ArgumentTypeDescription
inputDeactivateDiscountCodeInput!The code to turn off.

Return type

DeactivateDiscountCodePayload!