Discount Redeem Code Bulk Creation
Requires Apps must have access scope.
The properties and status of a bulk discount redeem code creation operation.
Anchor to Fields and connectionsFields and connections
- Anchor to codescodes•
The result of each code creation operation associated with the bulk creation operation including any errors that might have occurred during the operation.
- Anchor to codesCountcodes•
Count Int!non-null The number of codes to create.
- Anchor to createdAtcreated•
At DateTime!non-null The date and time when the bulk creation was created.
- Anchor to discountCodediscount•
Code The code discount associated with the created codes.
- Anchor to donedone•Boolean!non-null
Whether the bulk creation is still queued (
false
) or has been run (true
).- Anchor to failedCountfailed•
Count Int!non-null The number of codes that weren't created successfully.
- •ID!non-null
A globally-unique ID.
- Anchor to importedCountimported•
Count Int!non-null The number of codes created successfully.
Anchor to QueriesQueries
- •query
Returns a bulk code creation resource by ID.
Anchor to MutationsMutations
- •mutation
Asynchronously add discount codes in bulk that customers can use to redeem a discount. You can use the
mutation to automate the distribution of discount codes through emails or other marketing channels.
- Anchor to codescodes•[Discount
Redeem Code Input!]!required The list of codes to associate with the code discount. Maximum: 100 codes.
- Anchor to discountIddiscount•
Id ID!required The ID of the
object that the codes will be added to. For example,
. You can use the
query to retrieve the ID.
Arguments
- Anchor to bulkCreationbulk•
Creation The ID of bulk operation that creates multiple unique discount codes. You can use the
query to track the status of the bulk operation.
- Anchor to userErrorsuser•
Errors [DiscountUser Error!]!non-null The list of errors that occurred from executing the mutation.
Fields