# CreateDiscountCodeInput

### Fields

#### clientMutationId ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string))

A unique identifier for the client performing the mutation.

#### metadata ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json))

Metadata that can be used by developers to store additional information on objects.

#### promotionId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id)!)

The promotion to attach to this discount code

#### code ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string)!)

The code that can be applied when creating a subscription

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

The max times this discount code can be used

#### autoSelectPlanId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id))

The discount code can only be applied to this plan
