> 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/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/mutations/update-ordered-product.md).

# updateOrderedProduct

Updates the ordered product on a subscription identified via \`X-Subscription-Token\`.

### Arguments

| Argument                                                                                                                                | Description                         |
| --------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| input ([UpdateOrderedProductInput](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/update-ordered-product-input.md)!) | Parameters for UpdateOrderedProduct |

### UpdateOrderedProductInput Arguments

| Argument                                                                                                                                                                         | Description                                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| metadata ([JSON](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/json.md))                                                                                     | Metadata that can be used by developers to store additional information on objects.                    |
| id ([ID](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/id.md))                                                                                               | ID of this ordered product. This will be ignored on create action.                                     |
| productId ([ID](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/id.md))                                                                                        | ID for the related product                                                                             |
| quantity ([Int](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/int.md))                                                                                       | The quantity for this ordered product.                                                                 |
| customPriceCents ([Int](/~/changes/v7t3tfYrVBDkXZZGoQGP/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 |
| shipmentDate ([ISO8601Date](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/iso-8601-date.md))                                                                 | The next date on which a new order should get initiated                                                |
| interval ([Int](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/int.md))                                                                                       | The amount of time in units between shipments of this order                                            |
| intervalUnitOfMeasureType ([OrderedProductIntervalUnitOfMeasure](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/ordered-product-interval-unit-of-measure.md)) | The time measure for interval units                                                                    |

### Return fields

#### errors (\[[ModelValidationError](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/model-validation-error.md)!]!)

#### orderedProduct ([OrderedProduct](/~/changes/v7t3tfYrVBDkXZZGoQGP/graphql-api/api-reference/objects/ordered-product.md))
