discountCodeBulkDelete mutation
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.
On this page
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.
mutation discountCodeBulkDelete { discountCodeBulkDelete {} }
<font style="color:#1F61A0;">job</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">code</font>
<font style="color:#1F61A0;">extraInfo</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
Arguments
Return fields
- job (
[Job](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/job)
)
The asynchronous job that deletes the code discounts. - userErrors (
[[DiscountUserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountusererror)
)
List of errors that occurred executing the mutation.