> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateContractInput

> Input for creating a contract and its subscriptions atomically.



**Kind**: `input`

## Fields

**`activationEndDate`**: `DateTime`

Optional contract activation end date (ISO 8601)

---

**`activationStartDate`**: `DateTime`

Optional contract activation start date (ISO 8601)

---

**`contractId`**: `String`

Your own ID for the contract, which makes creating it idempotent: sending the same one again returns the existing contract instead of creating a second. Omit it and one is generated, but then a retry cannot be told apart from a new contract. Recommended whenever a retry is possible.

---

**`customerId`**: `String!` (required)

The Stigg customer ref ID the contract belongs to

---

**`environmentId`**: `UUID`

The unique identifier for the environment

---

**`name`**: `String`

Optional contract name

---

**`poNumber`**: `String`

Optional purchase-order number

---

**`setupBilling`**: `Boolean` = true

Whether to set up billing for the contract by creating a billing contract in the connected billing provider. When false, the contract only provisions access (grants entitlements) and no billing contract is created. Defaults to true.

---

**`subscriptions`**: `[ContractSubscriptionInput!]!` (required)

Subscriptions to attach to the contract. May be empty; each entry creates a new subscription or references an existing custom subscription.



## Related topics

- [Create contract](https://docs.stigg.io/api-reference/contracts/create-contract.md)
- [createContract](https://docs.stigg.io/graphql-reference/mutations/createContract.md)
- [CreateOfferInput](https://docs.stigg.io/graphql-reference/types/CreateOfferInput.md)
- [CreateIntegrationInput](https://docs.stigg.io/graphql-reference/types/CreateIntegrationInput.md)
- [CreateCouponInput](https://docs.stigg.io/graphql-reference/types/CreateCouponInput.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.