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
| Field | Meaning |
|---|---|
| Disabled | Stops all calls to the provider. ERPNext then uses only stored records. |
| Service Provider | frankfurter.dev, frankfurter.dev - v2, exchangerate.host, or Custom. A standard provider fills the endpoint, parameters, and result key. |
| API Endpoint | The URL that ERPNext calls. It can contain {transaction_date}, {from_currency}, and {to_currency}. |
| Use HTTP Protocol | Uses HTTP instead of HTTPS. Not shown for Custom. Leave it off for external services. |
| Access Key | The key for exchangerate.host. Treat it as a secret. |
| Example URL | A preview of the request URL. |
| Parameters | The Key and Value pairs sent with the request. Values can use the same placeholders. |
| Result Key | The path of keys to the rate in the response. |
Providers
| Provider | Notes |
|---|---|
| frankfurter.dev | No key needed. Covers fewer currencies than v2. |
| frankfurter.dev - v2 | No key needed. Covers more currencies. Evaluate it first for a new setup. |
| exchangerate.host | Needs an Access Key. Check the plan, rate limits, and historical coverage. |
| Custom | An 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
- Create a draft Sales Invoice and a draft Purchase Invoice in a foreign currency, on a known business day without a stored rate.
- Check that the Exchange Rate fills, with the correct direction, and that the company-currency total matches.
- Try a past date and check that the rate is plausible.
- Test a Payment Entry and an Exchange Rate Revaluation too.
- 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
| Problem | What to check |
|---|---|
| No rate for one currency | The provider may not cover the currency or date. Use another provider or a stored record. |
| A different rate appears | A stored Currency Exchange record wins. Check its date, direction, and flags, and the stale-rate settings. |
| A custom provider returns zero | Check the Result Key path and that the value is a number. |
| Past dates fail, today works | The provider or plan does not support historical rates. Import historical rates instead. |