discountAutomaticBulkDelete mutation

Version unstable

Asynchronously delete automatic discounts in bulk if a search or saved_search_id argument is provided or if a maximum discount threshold is reached (1,000). Otherwise, deletions will occur inline. Warning: All automatic discounts will be deleted if a blank search argument is provided.

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 automatic discounts to delete.

savedSearchId ( ID )

The ID of the saved search.

search ( String )

The search query for filtering automatic discounts on.

Return fields

  • job (Job)

    The asynchronous job removing the automatic discounts.

  • userErrors ([DiscountUserError!]!)

    List of errors that occurred from executing the mutation.

Version 2021-10 (Release candidate)

Asynchronously delete automatic discounts in bulk if a search or saved_search_id argument is provided or if a maximum discount threshold is reached (1,000). Otherwise, deletions will occur inline. Warning: All automatic discounts will be deleted if a blank search argument is provided.

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 automatic discounts to delete.

savedSearchId ( ID )