discountCodeBulkDeactivate mutation
Asynchronously deactivates 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.
Arguments
Argument | Description |
---|---|
ids
(
[ID!]
)
|
The IDs of the code discounts to deactivate. |
savedSearchId
(
ID
)
|
The ID of the saved search. |
search
(
String
)
|
The search query for filtering discounts. |
Return fields
-
job (
Job
)The asynchronous job that deactivates the code discounts.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously deactivates 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.
Arguments
Argument | Description |
---|---|
ids
(
[ID!]
)
|
The IDs of the code discounts to deactivate. |
savedSearchId
(
ID
)
|
The ID of the saved search. |
search
(
String
)
|
The search query for filtering discounts. |
Return fields
-
job (
Job
)The asynchronous job that deactivates the code discounts.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously deactivates 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.
Arguments
Argument | Description |
---|---|
ids
(
[ID!]
)
|
The IDs of the code discounts to deactivate. |
savedSearchId
(
ID
)
|
The ID of the saved search. |
search
(
String
)
|
The search query for filtering discounts. |
Return fields
-
job (
Job
)The asynchronous job that deactivates the code discounts.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously deactivates 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.
Arguments
Argument | Description |
---|---|
ids
(
[ID!]
)
|
The IDs of the code discounts to deactivate. |
savedSearchId
(
ID
)
|
The ID of the saved search. |
search
(
String
)
|
The search query for filtering discounts. |
Return fields
-
job (
Job
)The asynchronous job that deactivates the code discounts.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously deactivates 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.
Arguments
Argument | Description |
---|---|
ids
(
[ID!]
)
|
The IDs of the code discounts to deactivate. |
savedSearchId
(
ID
)
|
The ID of the saved search. |
search
(
String
)
|
The search query for filtering discounts. |
Return fields
-
job (
Job
)The asynchronous job that deactivates the code discounts.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.