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

# createOneProduct

> Create one product mutation



**mutation** `createOneProduct(input: CreateOneProductInput!): Product!`

## Arguments

**`input`**: `CreateOneProductInput!` (required)

Input for creating a single product

## Returns

`Product!`

**`additionalMetaData`**: `JSON`

Additional metadata for the product

---

**`addons`**: `[Addon!]!`

Addons associated with the product

---

**`autoCancellationRules`**: `[AutoCancellationRule!]!`

Method to get the auto cancellation rules for the product

---

**`awsMarketplaceProductCode`**: `String`

AWS Marketplace product code

---

**`awsMarketplaceProductId`**: `String`

AWS Marketplace product ID

---

**`createdAt`**: `DateTime!`

Timestamp of when the record was created

---

**`description`**: `String`

Description of the product

---

**`displayName`**: `String`

Display name of the product

---

**`downgradePlan`**: `Plan`

Plan to downgrade to when a subscription ends or is cancelled

---

**`environment`**: `Environment`

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`hasSubscriptions`**: `Boolean!`

Whether the product has subscriptions

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`isDefaultProduct`**: `Boolean!`

Indicates if this is the default product for the account

---

**`multipleSubscriptions`**: `Boolean!`

Indicates if multiple subscriptions to this product are allowed

---

**`plans`**: `[Plan!]!`

Plans associated with the product

---

**`productSettings`**: `ProductSettings!`

Settings for the product

---

**`refId`**: `String!`

The unique identifier for the entity

---

**`status`**: `ProductStatus!`

The status of the product

---

**`subscriptionStartPlan`**: `Plan`

---

**`subscriptionUpdateUsageResetCutoffRule`**: `SubscriptionUpdateUsageResetCutoffRule!`

Method to get the rule for resetting usage cutoff on subscription update

---

**`updatedAt`**: `DateTime!`

Timestamp of when the record was last updated

## Examples

```graphql Mutation
mutation CreateOneProduct($input: CreateOneProductInput!) {
  createOneProduct(input: $input) {
    additionalMetaData
    addons {
      additionalMetaData
      billingId
      billingLinkUrl
      createdAt
      dependencies {
        __typename
      }
      description
    }
    autoCancellationRules {
      sourcePlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
      targetPlan {
        additionalMetaData
        awsMarketplacePlanDimension
        basePlan {
          __typename
        }
        billingId
        billingLinkUrl
        compatibleAddons {
          __typename
        }
      }
    }
    awsMarketplaceProductCode
    awsMarketplaceProductId
    createdAt
  }
}
```

```json Variables
{
  "input": {
    "product": {
      "environmentId": "value",
      "refId": "string"
    }
  }
}
```

```json Response
{
  "data": {
    "createOneProduct": {
      "additionalMetaData": "value",
      "addons": [
        {
          "additionalMetaData": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "dependencies": [
            {
              "__typename": "Addon"
            }
          ],
          "description": "string"
        }
      ],
      "autoCancellationRules": [
        {
          "sourcePlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          },
          "targetPlan": {
            "additionalMetaData": "value",
            "awsMarketplacePlanDimension": "string",
            "basePlan": {
              "__typename": "Plan"
            },
            "billingId": "string",
            "billingLinkUrl": "string",
            "compatibleAddons": [
              {
                "__typename": "Addon"
              }
            ]
          }
        }
      ],
      "awsMarketplaceProductCode": "string",
      "awsMarketplaceProductId": "string",
      "createdAt": "value"
    }
  }
}
```


## Related topics

- [CreateOneProductInput](https://docs.stigg.io/graphql-reference/types/CreateOneProductInput.md)
- [createOneAddon](https://docs.stigg.io/graphql-reference/mutations/createOneAddon.md)
- [createOnePlan](https://docs.stigg.io/graphql-reference/mutations/createOnePlan.md)
- [Create product](https://docs.stigg.io/api-reference/products/create-product.md)
- [Monetize my product using credits](https://docs.stigg.io/guides/i-want-to/set-up-credits.md)


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