Skip to content

Create Exchange Rate

Creates a new exchange rate linking a target currency to a conversion rate.

Operation

OperationTypePurpose
createAdminSettingsExchangeRate(input:)MutationCreate an exchange rate

Input

FieldRequiredNotes
targetCurrencyyesNumeric id of an existing currency that does not already have a rate.
rateyesPositive numeric multiplier.

Notes

  • A currency may have only one exchange rate. Supplying a targetCurrency that already has a rate is rejected with The selected target currency is invalid. (equivalent to HTTP 422). To change an existing rate, use Update instead.

Permission: settings.exchange_rates.create.

TIP

All operations require an admin Bearer token — see Authentication.

Released under the MIT License.