---
title: "DiscountRedeemCodeBulkCreation"
description: "Attributes and status of the bulk discount code creation operation."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-redeem-code-bulk-creation'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-redeem-code-bulk-creation.md'
---
# DiscountRedeemCodeBulkCreation

Attributes and status of the bulk discount code creation operation.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`DiscountRedeemCodeBulkCreation`

## Fields

* `codesCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The number of codes to create.

* `createdAt`

  [Date](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/date.md)

  The date and time of bulk creation.

* `discountCode`

  [DiscountCodeNode](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-node.md)

  The code discount associated with the created codes.
  
  

* `done`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether the bulk creation is still pending (false) or has begun running (true).

* `failedCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The number of codes not successfully created.

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  A globally-unique ID.
  
  

* `importedCount`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The number of codes created successfully

## Schema Definition

```graphql
type DiscountRedeemCodeBulkCreation { 
	codesCount: Int
	createdAt: Date
	discountCode: DiscountCodeNode
	done: Boolean
	failedCount: Int
	id: ID
	importedCount: Int 
}
```

## Field from

* [DiscountRedeemCodeBulkAddPayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-redeem-code-bulk-add-payload.md).bulkCreation

  The ID of the discount redeem code bulk creation operation

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

