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.

Anchor to Fields and connectionsFields and connections

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

•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 bulk code creation resource by ID.


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

•[DiscountRedeemCodeInput!]!
required

The list of codes to associate with the code discount. Maximum: 250 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.


Fields

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

•interface

Was this section helpful?
OSZAR »