# updateOrderedProduct

### Arguments

| Argument                                                                                                                             | Description                         |
| ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------- |
| input ([UpdateOrderedProductInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/update-ordered-product-input)!) | Parameters for UpdateOrderedProduct |

### UpdateOrderedProductInput Arguments

| Argument                                                                                                                                                                      | Description                                                                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| metadata ([JSON](https://developer.firmhouse.com/graphql-api/api-reference/objects/json))                                                                                     | 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))                                                                                               | ID of this ordered product. This will be ignored on create action.                                     |
| productId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id))                                                                                        | ID for the related product                                                                             |
| quantity ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                                       | The quantity for this ordered product.                                                                 |
| customPriceCents ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                               | A custom price in cents for this ordered product, if left blank the default product price will be used |
| shipmentDate ([ISO8601Date](https://developer.firmhouse.com/graphql-api/api-reference/objects/iso-8601-date))                                                                 | The next date on which a new order should get initiated                                                |
| interval ([Int](https://developer.firmhouse.com/graphql-api/api-reference/objects/int))                                                                                       | 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)) | The time measure for interval units                                                                    |
| status ([OrderedProductStatus](https://developer.firmhouse.com/graphql-api/api-reference/objects/ordered-product-status))                                                     | The status of the ordered product                                                                      |

### Return fields

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error)!]!)

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