> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/queries/discount-codes.md).

# discountCodes

### Arguments

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

### Return fields

#### edges (\[[DiscountCodeEdge](/graphql-api/api-reference/objects/discount-code-edge.md)])

A list of edges.

#### nodes (\[[DiscountCode](/graphql-api/api-reference/objects/discount-code.md)])

A list of nodes.

#### pageInfo ([PageInfo](/graphql-api/api-reference/objects/page-info.md)!)

Information to aid in pagination.

#### totalCount ([Int](/graphql-api/api-reference/objects/int.md))

The total number of items available.
