API version: unstable
API version: 2021-04 Release candidate
API version: 2021-01 Latest
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

discountCodeBulkActivate mutation

Version unstable

Asynchronously activate code discounts in bulk using a search query, a savedSearchId or a list of IDs.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
ids ( [ID!] )

The IDs of the code discounts to activate.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

  • job (Job)

    The asynchronous job that activates the code discounts.

  • userErrors ([DiscountUserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-04 (Release candidate)

Asynchronously activate code discounts in bulk using a search query, a savedSearchId or a list of IDs.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
ids ( [ID!] )

The IDs of the code discounts to activate.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

  • job (Job)

    The asynchronous job that activates the code discounts.

  • userErrors ([DiscountUserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-01 (Latest)

Asynchronously activate code discounts in bulk using a search query, a savedSearchId or a list of IDs.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
ids ( [ID!] )

The IDs of the code discounts to activate.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

  • job (Job)

    The asynchronous job that activates the code discounts.

  • userErrors ([DiscountUserError!]!)

    List of errors that occurred executing the mutation.

Version 2020-10

Asynchronously activate code discounts in bulk using a search query, a savedSearchId or a list of IDs.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
ids ( [ID!] )

The IDs of the code discounts to activate.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

  • job (Job)

    The asynchronous job that activates the code discounts.

  • userErrors ([DiscountUserError!]!)

    List of errors that occurred executing the mutation.