Skip to main content
Anchor to DiscountRedeemCodeBulkAddPayload

DiscountRedeemCodeBulkAddPayload

payload

Return type for discountRedeemCodeBulkAdd mutation.

•DiscountRedeemCodeBulkCreation

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.

•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.

Arguments

•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.

•[DiscountRedeemCodeInput!]!
required

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



Was this section helpful?