---
title: DiscountCodeBulkActivatePayload - GraphQL Admin
description: Return type for `discountCodeBulkActivate` mutation.
api_version: unstable
api_name: admin
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/unstable/payloads/DiscountCodeBulkActivatePayload
  md: https://shopify.dev/docs/api/admin-graphql/unstable/payloads/DiscountCodeBulkActivatePayload.md
---

# Discount​Code​Bulk​Activate​Payload

payload

Return type for `discountCodeBulkActivate` mutation.

## Fields

* job

  [Job](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Job)

  The asynchronous job that activates the discounts.

* user​Errors

  [\[Discount​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Mutations with this payload

* [discount​Code​Bulk​Activate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/discountCodeBulkActivate)

  mutation

  Activates multiple [code discounts](https://help.shopify.com/manual/discounts/discount-types#discount-codes) 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.

  * search

    [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

    ### Arguments

    The search query for filtering discounts.\
    \
    For more information on the list of supported fields and search syntax, refer to the [`codeDiscountNodes`](https://shopify.dev/docs/api/admin-graphql/latest/queries/codeDiscountNodes#query-arguments) query.

  * saved​Search​Id

    [ID](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)

    The ID of the saved search for filtering discounts to activate. Saved searches represent [customer segments](https://help.shopify.com/manual/customers/customer-segments) that merchants have built in the Shopify admin.

  * ids

    [\[ID!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)

    The IDs of the discounts to activate.

  ***

***

## Map

### Mutations with this payload

* [discount​Code​Bulk​Activate](https://shopify.dev/docs/api/admin-graphql/unstable/types/discountCodeBulkActivate)