Skip to main content
Anchor to DiscountRedeemCodeBulkCreation

DiscountRedeemCodeBulkCreation

object

Requires Apps must have read_discounts access scope.

The properties and status of a bulk discount redeem code creation operation.

DiscountRedeemCodeBulkCreationCodeConnection!
non-null

The result of each code creation operation associated with the bulk creation operation including any errors that might have occurred during the operation.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


Int!
non-null

The number of codes to create.

DateTime!
non-null

The date and time when the bulk creation was created.

DiscountCodeNode

The code discount associated with the created codes.

Boolean!
non-null

Whether the bulk creation is still queued (false) or has been run (true).

Int!
non-null

The number of codes that weren't created successfully.

ID!
non-null

A globally-unique ID.

Int!
non-null

The number of codes created successfully.


Was this section helpful?

query

Returns a DiscountRedeemCodeBulkCreation resource by ID.

Arguments

ID!
required

The ID of the DiscountRedeemCodeBulkCreation to return.



Was this section helpful?

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?

interface

Was this section helpful?