> ## 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.

# ContractSubscriptionInput

> A single subscription on a contract: exactly one of newSubscription or existingSubscriptionId must be set.



**Kind**: `input`

## Fields

**`existingSubscriptionId`**: `String`

The subscription ref ID of an already-created custom subscription to link

---

**`newSubscription`**: `SubscriptionInput`

A new subscription to create, using the same input the createSubscription mutation accepts



## Related topics

- [CreateContractInput](https://docs.stigg.io/graphql-reference/types/CreateContractInput.md)
- [UpdateContractInput](https://docs.stigg.io/graphql-reference/types/UpdateContractInput.md)
- [Attach subscriptions to contract](https://docs.stigg.io/api-reference/contracts/attach-subscriptions-to-contract.md)
- [Detach subscription from contract](https://docs.stigg.io/api-reference/contracts/detach-subscription-from-contract.md)
- [SubscriptionContractDTO](https://docs.stigg.io/graphql-reference/types/SubscriptionContractDTO.md)


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