discountCodeRedeemCodeBulkDelete mutation

Version 2020-10 (Release candidate)

Asynchronously delete discount redeem codes in bulk. Specify the redeem codes to delete by providing a search query, a savedSearchId, or a list of redeem code 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.


discountId ( ID! ) required

The ID of the redeem code's discount.

ids ( [ID!] )

The IDs of the discount redeem codes to delete.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering discount redeem codes.

Return fields

job (Job)

The asynchronous job that deletes the discount redeem codes.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.