Anchor to marketCurrencySettingsUpdatemarket
marketCurrencySettingsUpdate
mutation
Requires for queries and both
as well as
for mutations.
Updates currency settings of a market.
Anchor to Arguments
Arguments
- Anchor to inputinput•
Properties to update for the market currency settings.
- Anchor to marketIdmarket•
Id ID!required The ID of the market definition to target.
Was this section helpful?
Anchor to MarketCurrencySettingsUpdatePayload returnsMarketCurrencySettingsUpdatePayload returns
- Anchor to marketmarket•
The market object.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation marketCurrencySettingsUpdate($input: MarketCurrencySettingsUpdateInput!, $marketId: ID!) {
marketCurrencySettingsUpdate(input: $input, marketId: $marketId) {
market {
# Market fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"baseCurrency": "",
"localCurrencies": true
},
"marketId": "gid://shopify/<objectName>/10079785100"
}
{
"input": {
"baseCurrency": "",
"localCurrencies": true
},
"marketId": "gid://shopify/<objectName>/10079785100"
}
input MarketCurrencySettingsUpdateInput {
baseCurrency: CurrencyCode
localCurrencies: Boolean
}