> 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/mutations/clear-discount-code.md).

# clearDiscountCode

Clears the discount code from a cart.

### Arguments

| Argument                                                                                           | Description                      |
| -------------------------------------------------------------------------------------------------- | -------------------------------- |
| input ([ClearDiscountCodeInput](/graphql-api/api-reference/objects/clear-discount-code-input.md)!) | Parameters for ClearDiscountCode |

### ClearDiscountCodeInput Arguments

| Argument                                                        | Description                                                                      |
| --------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| subscriptionId ([ID](/graphql-api/api-reference/objects/id.md)) | ID of the subscription to update. Required when authenticated through a project. |

### Return fields

#### cart ([Cart](/graphql-api/api-reference/objects/cart.md))

#### errors (\[[ModelValidationError](/graphql-api/api-reference/objects/model-validation-error.md)!]!)
