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

discountCodeBulkDelete mutation

Version 2021-01 (Release candidate)

Asynchronously delete 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

ids ( [ID!] )

The IDs of the code discounts to delete.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

job (Job)

The asynchronous job that deletes the code discounts.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2020-10 (Latest)

Asynchronously delete 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

ids ( [ID!] )

The IDs of the code discounts to delete.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discounts.

Return fields

job (Job)

The asynchronous job that deletes the code discounts.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.