API ReferenceCommerceProducts & inventoryCatalog GraphQLOptionMutationupdateOptionValuePriceCurrencyCode
updateOptionValuePriceCurrencyCode
View as MarkdownUpdate the currency code for an existing option value price. This updates the currency code for both value and compareAtValue.
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 for credential setup.
Arguments
idString!requiredinputMutationUpdateOptionValuePriceCurrencyCodeInput!requiredcurrencyCodeString!required
Possible returns
OptionValuePriceOptionValuePrice— 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).
Last updated on
How is this guide?