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 FieldsFields
- 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 firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- 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
resource by ID.- •ID!required
The ID of the
to return.
Arguments
- •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 discountIddiscount•ID!
Id required The ID of the
object that the codes will be added to. For example,. You can use thequery to retrieve the ID.- Anchor to codescodes•[Discount
Redeem Code Input!]! required The list of codes to associate with the code discount. Maximum: 250 codes.
Arguments