> 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/create-ordered-product-v-2.md).

# createOrderedProductV2

Creates an ordered product on a subscription.

### Arguments

| Argument                                                                                                                                      | Description                           |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| input ([CreateOrderedProductV2Input](https://developer.firmhouse.com/graphql-api/api-reference/objects/create-ordered-product-v-2-input.md)!) | Parameters for CreateOrderedProductV2 |

### CreateOrderedProductV2Input Arguments

| Argument                                                                                                                                                                         | Description                                                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| metadata ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json.md))                                                                                     | Metadata that can be used by developers to store additional information on objects.                                                                             |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md))                                                                                               | ID of this ordered product. This will be ignored on create action.                                                                                              |
| productId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md))                                                                                        | ID for the related product. When replacing a product, this is the replacement product.                                                                          |
| quantity ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int.md))                                                                                       | The quantity for this ordered product.                                                                                                                          |
| customPriceCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int.md))                                                                               | A custom price in cents for this ordered product. If left blank, the default product price will be used, with the plan discount applied when a plan is present. |
| shipmentDate ([ISO8601Date](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date.md))                                                                 | The next date on which a new order should get initiated                                                                                                         |
| interval ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int.md))                                                                                       | The amount of time in units between shipments of this order                                                                                                     |
| intervalUnitOfMeasureType ([OrderedProductIntervalUnitOfMeasure](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product-interval-unit-of-measure.md)) | The time measure for interval units                                                                                                                             |
| status ([OrderedProductStatus](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product-status.md))                                                     | The status of the ordered product                                                                                                                               |
| minimumCommitmentEndsAt ([ISO8601Date](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date.md))                                                      | The date at which the minimum commitment ends for this product                                                                                                  |
| maximumCommitmentEndsAt ([ISO8601Date](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date.md))                                                      | The date at which the maximum commitment ends for this product                                                                                                  |
| ensureNewRecord ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean.md))                                                                        |                                                                                                                                                                 |
| activateSubscription ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean.md))                                                                   | Activate a one-time purchase. Ignored for all other subscription statuses.                                                                                      |
| subscriptionId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md))                                                                                   | ID of the subscription to create this OrderedProduct for. Required if authenticated via a project access token                                                  |
| sku ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md))                                                                                      | Use this field to look up the associated product based on SKU.                                                                                                  |
| slug ([String](https://developer.firmhouse.com/graphql-api/api-reference/objects/string.md))                                                                                     | Use this field to look up the associated product based on slug.                                                                                                 |
| shopifyVariantId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md))                                                                                 | Use this field to look up the associated product based on Shopify Variant ID.                                                                                   |
| skipPlanGroupCheck ([Boolean](https://developer.firmhouse.com/graphql-api/api-reference/objects/boolean.md))                                                                     | When true, allows adding a product that is outside the subscription's current plan group.                                                                       |
| orderedProductType ([OrderedProductTypes](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product-types.md))                                           | Type of ordered product.                                                                                                                                        |

### Return fields

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

#### orderedProduct ([OrderedProduct](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product.md))

#### paymentMethodHealthCheck ([SubscriptionPaymentMethodHealthCheck](https://developer.firmhouse.com/graphql-api/api-reference/objects/subscription-payment-method-health-check.md))

Stored result for the current payment method. Refreshed only on subscription activation.

#### subscription ([Subscription](https://developer.firmhouse.com/graphql-api/api-reference/objects/subscription.md))
