Anchor to DiscountCodeBulkActivatePayloadDiscount
payloadDiscount Code Bulk Activate Payload
Return type for mutation.
Anchor to FieldsFields
- job (Job)
- userErrors ([DiscountUserError!]!)
- •Job
The asynchronous job that activates 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?
Anchor to Mutations with this payloadMutations with this payload
- discountCodeBulkActivate (DiscountCodeBulkActivatePayload)
- •mutation
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.
- Anchor to searchsearch•String
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the saved search for filtering discounts to activate. Saved searches represent customer segments that merchants have built in the Shopify admin.
- •[ID!]
The IDs of the discounts to activate.
Arguments
Was this section helpful?