discountRedeemCodeBulkAdd mutation
Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.
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 |
---|---|
codes
(
[DiscountRedeemCodeInput!]!
)
required
|
The list of codes that will be added to the code discount. Maximum 100 codes permitted. |
discountId
(
ID!
)
required
|
The ID of the code discount that the codes will be added to. |
DiscountRedeemCodeInput fields
-
code (
String!
) RequiredThe code of a discount.
Return fields
-
bulkCreation (
DiscountRedeemCodeBulkCreation
)Tracks the progress of the bulk code creation.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.
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 |
---|---|
codes
(
[DiscountRedeemCodeInput!]!
)
required
|
The list of codes that will be added to the code discount. Maximum 100 codes permitted. |
discountId
(
ID!
)
required
|
The ID of the code discount that the codes will be added to. |
DiscountRedeemCodeInput fields
-
code (
String!
) RequiredThe code of a discount.
Return fields
-
bulkCreation (
DiscountRedeemCodeBulkCreation
)Tracks the progress of the bulk code creation.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.
Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.
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 |
---|---|
codes
(
[DiscountRedeemCodeInput!]!
)
required
|
The list of codes that will be added to the code discount. Maximum 100 codes permitted. |
discountId
(
ID!
)
required
|
The ID of the code discount that the codes will be added to. |
DiscountRedeemCodeInput fields
-
code (
String!
) RequiredThe code of a discount.
Return fields
-
bulkCreation (
DiscountRedeemCodeBulkCreation
)Tracks the progress of the bulk code creation.
-
userErrors (
[DiscountUserError!]!
)List of errors that occurred executing the mutation.