Currency Exchange Settings ​

Currency Exchange Settings sets the online service that ERPNext asks for an exchange rate when no stored Currency Exchange record applies. It is one setting for the whole site, so it affects every company.

ERPNext calls the provider only after it finds no stored rate. If a document uses an unexpected rate, check the stored records and the stale-rate settings in Accounts Settings first.

Fields ​

FieldMeaning
DisabledStops all calls to the provider. ERPNext then uses only stored records.
Service Providerfrankfurter.dev, frankfurter.dev - v2, exchangerate.host, or Custom. A standard provider fills the endpoint, parameters, and result key.
API EndpointThe URL that ERPNext calls. It can contain {transaction_date}, {from_currency}, and {to_currency}.
Use HTTP ProtocolUses HTTP instead of HTTPS. Not shown for Custom. Leave it off for external services.
Access KeyThe key for exchangerate.host. Treat it as a secret.
Example URLA preview of the request URL.
ParametersThe Key and Value pairs sent with the request. Values can use the same placeholders.
Result KeyThe path of keys to the rate in the response.

Providers ​

ProviderNotes
frankfurter.devNo key needed. Covers fewer currencies than v2.
frankfurter.dev - v2No key needed. Covers more currencies. Evaluate it first for a new setup.
exchangerate.hostNeeds an Access Key. Check the plan, rate limits, and historical coverage.
CustomAn approved treasury or internal service. The response must contain a number for the requested direction.

Choose the provider on currency coverage, historical rates, reliability, license, and security. Coverage and terms can change, so confirm them with the provider.

Test the provider ​

  1. Create a draft Sales Invoice and a draft Purchase Invoice in a foreign currency, on a known business day without a stored rate.
  2. Check that the Exchange Rate fills, with the correct direction, and that the company-currency total matches.
  3. Try a past date and check that the rate is plausible.
  4. Test a Payment Entry and an Exchange Rate Revaluation too.
  5. Repeat after an upgrade or a change of provider.

Control access ​

The rate source is an accounting control. Give write permission on this setting to few users, and record the approved provider, the currency pairs, and what users do when no rate is found.

To use only approved rates, select Disabled and create the Currency Exchange records for every direction and date you need.

Troubleshooting ​

ProblemWhat to check
No rate for one currencyThe provider may not cover the currency or date. Use another provider or a stored record.
A different rate appearsA stored Currency Exchange record wins. Check its date, direction, and flags, and the stale-rate settings.
A custom provider returns zeroCheck the Result Key path and that the value is a number.
Past dates fail, today worksThe provider or plan does not support historical rates. Import historical rates instead.