Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to discountRedeemCodeBulkAdd

discountRedeemCodeBulkAdd

mutation

Requires Apps must have write_discounts access scope.

Asynchronously add discount codes in bulk that customers can use to redeem a discount. You can use the discountRedeemCodeBulkAdd mutation to automate the distribution of discount codes through emails or other marketing channels.

The list of codes to associate with the code discount. Maximum: 100 codes.

ID!required

The ID of the DiscountCodeNode object that the codes will be added to. For example, gid://shopify/DiscountCodeNode/123. You can use the codeDiscountNodes query to retrieve the ID.


Was this section helpful?

Anchor to DiscountRedeemCodeBulkAddPayload returnsDiscountRedeemCodeBulkAddPayload returns

The ID of bulk operation that creates multiple unique discount codes. You can use the discountRedeemCodeBulkCreation query to track the status of the bulk operation.

The list of errors that occurred from executing the mutation.


Was this section helpful?