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•Discount
Redeem Code Bulk Creation Code Connection! 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.
- Anchor to codesCountcodes•Int!
Count non-null The number of codes to create.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the bulk creation was created.
- Anchor to discountCodediscount•Discount
Code Code Node 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•Int!
Count non-null The number of codes that weren't created successfully.
- •ID!non-null
A globally-unique ID.
- Anchor to importedCountimported•Int!
Count 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: 250 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•Discount
Creation Redeem Code Bulk 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•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields