Anchor to discountCodeBulkDeactivatediscount
mutationdiscount Code Bulk Deactivate
Requires Apps must have 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.
Anchor to Arguments
Arguments
- •[ID!]
The IDs of the discounts to deactivate.
- Anchor to savedSearchIdsaved•ID
Search 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.
- Anchor to searchsearch•String
Was this section helpful?
- •Job
The asynchronous job that deactivates the discounts.
- Anchor to userErrorsuser•[Discount
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?