Skip to main content
Anchor to DiscountCodeBulkDeactivatePayload

DiscountCodeBulkDeactivatePayload

payload

Return type for discountCodeBulkDeactivate mutation.

•Job

The asynchronous job that deactivates the discounts.

•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.

Arguments

•String

The search query for filtering discounts.

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

•ID

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

•[ID!]

The IDs of the discounts to deactivate.



Was this section helpful?