# updateOptionValuePriceCurrencyCode (https://developer.godaddy.com/en/docs/references/rest/catalog/option/mutations/updateOptionValuePriceCurrencyCode)

***

title: updateOptionValuePriceCurrencyCode
description: "Update the currency code for an existing option value price. This updates the currency code for both value and compareAtValue."
full: true
----------

mutation

Requires `commerce.product:write`.

Update the currency code for an existing option value price. This updates the currency code for both value and compareAtValue.

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `id` `String!` **required**
* `input` `MutationUpdateOptionValuePriceCurrencyCodeInput!` **required**
  * `currencyCode` `String!` **required**

## Possible returns

* `OptionValuePrice` `OptionValuePrice` — Represents the additional cost of the option value added to a SKU (e.g the option value 'Caramel Drizzle' could have a different cost to other 'Topping' options).

- `compareAtValue` `SimpleMoney` **nullable** — The compare-at value of the price.
- `createdAt` `DateTime!` **non-null** — The timestamp of when the price was created.
- `id` `ID!` **non-null** — The globally-unique ID of the price.
- `optionValue` `OptionValue` **nullable** — The option value that this price belongs to.
- `updatedAt` `DateTime!` **non-null** — The last update timestamp of the price.
- `value` `SimpleMoney!` **non-null** — The value of the price.
