Skip to main content
Log inSign up
Anchor to discountCodeBulkDeactivate

discountCodeBulkDeactivate

mutation

Requires Apps must have write_discounts access scope.

Deactivates multiple code-based discounts asynchronously using one of the following:

  • A search query
  • A saved search ID
  • A list of discount code IDs

For example, you can deactivate discounts for all codes that match a search criteria, or deactivate a predefined set of discount codes.

•

The IDs of the discounts to deactivate.

•

The ID of the saved search for filtering discounts to deactivate. Saved searches represent customer segments that merchants have built in the Shopify admin.

•

The search query for filtering discounts.

For more information on the list of supported fields and search syntax, refer to the codeDiscountNodes query.


Was this section helpful?

Anchor to DiscountCodeBulkDeactivatePayload returnsDiscountCodeBulkDeactivatePayload returns

•

The asynchronous job that deactivates the discounts.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?