Skip to content

Update Exchange Rate

Updates an existing exchange rate's rate. The target currency is fixed at creation and is not changed by this mutation.

Operation

OperationTypePurpose
updateAdminSettingsExchangeRate(input:)MutationUpdate an exchange rate's value

Input

FieldRequiredNotes
idyesIRI of the exchange rate to update.
rateyesNew positive numeric multiplier.

Prerequisites

The example uses an illustrative id. Replace it with a rate that exists in your store — use the adminSettingsExchangeRates query to discover valid ids.

Permission: settings.exchange_rates.edit.

TIP

All operations require an admin Bearer token — see Authentication.

Released under the MIT License.