Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to discountCodeBulkActivate

discountCodeBulkActivate

mutation

Requires Apps must have write_discounts access scope.

Activates multiple code discounts asynchronously using one of the following:

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

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

The IDs of the discounts to activate.

The ID of the saved search for filtering discounts to activate. 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 DiscountCodeBulkActivatePayload returnsDiscountCodeBulkActivatePayload returns

The asynchronous job that activates the discounts.

The list of errors that occurred from executing the mutation.


Was this section helpful?