# discountCodes

### Arguments

| Argument                                                                                          | Description                                                             |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| redeemable ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean)) | Only list discount codes that can be redeemed.                          |
| expired ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean))    | Only list discount codes that are already fully used (expired).         |
| after ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))        | Returns the elements in the list that come after the specified cursor.  |
| before ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))       | Returns the elements in the list that come before the specified cursor. |
| first ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))              | Returns the first *n* elements from the list.                           |
| last ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))               | Returns the last *n* elements from the list.                            |

### Return fields

#### edges (\[[DiscountCodeEdge](https://developer.firmhouse.com/graphql-api/api-reference/objects/discount-code-edge)])

A list of edges.

#### nodes (\[[DiscountCode](https://developer.firmhouse.com/graphql-api/api-reference/objects/discount-code)])

A list of nodes.

#### pageInfo ([PageInfo](https://developer.firmhouse.com/graphql-api/api-reference/objects/page-info)!)

Information to aid in pagination.

#### totalCount ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))

The total number of items available.
