ERP Exchange Rate Integration: Official Rates in SAP, NetSuite, Dynamics, Oracle and Odoo
Short answer: An ERP exchange rate integration is a scheduled job that copies official rates into the ERP's rate table: TCURR in SAP, GL daily rates in Oracle, res.currency.rate in Odoo. Decide five things first: the rate type, the direction, the source, the schedule and how gaps are filled. Then load each publication once, with the publisher's date. AllRatesToday serves 138 central banks and 66 tax and customs authorities through one API for this.
Every ERP that handles more than one currency keeps a table of exchange rates. Invoices, payments, bank revaluations and consolidation all read from it. Most systems ship with a market-data feed, or none at all, and finance teams end up copying central bank rates into a spreadsheet and uploading it. That works until someone is on holiday, a rate is typed upside down, or the auditor asks where the 1 March rate came from.
This guide covers what an ERP rate integration has to get right, how each major system stores rates, and a job you can adapt to any of them.
Where each ERP keeps its rates
| System | Where rates live | Usual way in | Guide |
|---|---|---|---|
| SAP S/4HANA and ECC | Table TCURR, by exchange rate type (M for the standard rate), maintained in OB08 | BAPI_EXCHRATE_CREATEMULTIPLE over RFC, or an SAP Integration Suite iFlow | Step by step |
| Oracle NetSuite | Currency exchange rate records per base and transaction currency | CSV import first, then a scheduled SuiteScript that creates the records | Step by step |
| Dynamics 365 Business Central | Currency Exchange Rates table, per currency and starting date | The built-in Currency Exchange Rate Service reading a feed URL on a schedule | Step by step |
| Dynamics 365 Finance | Exchange rates per exchange rate type and currency pair | An exchange rate provider in X++, run by the import currency exchange rates job | Step by step |
| Oracle Fusion Cloud ERP | GL daily rates per conversion type (Corporate, Spot or your own) | Daily Rates FBDI import through GL_DAILY_RATES_INTERFACE | Step by step |
| Odoo | res.currency.rate, one row per currency and date, stored against the company currency | A scheduled action or an XML-RPC script | Step by step |
| Xero | Xero applies XE's rate to each transaction by default | Override the rate on the transaction, or import transactions with the rate set | Step by step |
| QuickBooks Online | The ExchangeRate entity, per currency and date | A daily call to the QuickBooks API | Step by step |
The same rates also load into Salesforce, Shopify, CargoWise and Riege Scope. The integrations hub lists every guide.
Five decisions before you write any code
1. Rate type
ERPs store rates under a type: SAP's M, Oracle's Corporate or Spot, Dynamics' exchange rate types. Keep one type per source and purpose. A common setup is a daily central bank rate for transactions, a month-end type for revaluation, and a separate customs type for import declarations. Mixing them in one type makes it impossible to tell later which rate a document used.
2. Direction
The ECB publishes US dollars per euro. Most ERPs want "1 foreign unit = x home currency", and Odoo stores the inverse. Getting this wrong is the most common integration bug, and it produces rates that look plausible for currencies near parity. Convert once, in the job, and test with a currency far from 1, such as JPY or INR.
3. Source
Use the rate your accounting policy and tax rules name. For a euro company that is usually the ECB; for an Indian subsidiary, RBI; for UK VAT, HMRC. Groups often load one source for consolidation and a local source for each subsidiary. The official exchange rates by country list shows the publisher for each country, and exchange rates for VAT covers the tax side.
4. Schedule
Load each publication once, after it is out. The ECB publishes in the afternoon Frankfurt time, most central banks once a day, HMRC once before each month. The API response gives each source's usual publication time (usually_at_utc). A job running every hour adds API calls and nothing else. Schedule it after the publisher's release, and run it again a few hours later in case the first run was early.
5. Gaps
Central banks do not publish on weekends or public holidays. Most ERPs take the latest rate on or before the posting date, so nothing extra is needed. If yours wants a row for every calendar day, ask for each date: the API returns the table in force on that day and its publication date, so the filled day is visible.
A daily job that works with any ERP
The job has two halves: fetch the official table, then write rows in the shape your ERP wants. The fetch is the same for every system.
import os, requests, datetime as dt
API = "https://allratestoday.com/api/v1/central-bank"
HEADERS = {"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"}
def official_table(source, day=None):
"""The table in force on a date (latest table when day is None)."""
path = f"{API}/{source}/{day}" if day else f"{API}/{source}/latest"
r = requests.get(path, headers=HEADERS, timeout=15)
r.raise_for_status()
return r.json()
def erp_rows(table, home_ccy, wanted):
"""Rows in the shape most ERPs want: 1 foreign unit = x home currency."""
out = []
for r in table["rates"]:
if r["quote"] == home_ccy and r["base"] in wanted:
ccy, rate = r["base"], r["value"] # already foreign -> home
elif r["base"] == home_ccy and r["quote"] in wanted:
ccy, rate = r["quote"], 1 / r["value"] # ECB style: EUR -> foreign
else:
continue
out.append({
"from": ccy, "to": home_ccy, "rate": round(rate, 6),
"type": r["type"],
"valid_from": table["rate_date"], # the publisher's date
"source": table["bank"], # for the audit trail
})
return out
rows = erp_rows(official_table("ecb"), "EUR", {"USD", "GBP", "JPY", "CHF"})
# ...write rows to TCURR, GL_DAILY_RATES_INTERFACE, res.currency.rate, etc. The second half is a few lines per system: BAPI_EXCHRATE_CREATEMULTIPLE for SAP, a CSV for the Oracle Daily Rates FBDI import, res.currency.rate over XML-RPC for Odoo. Each integration guide has the exact code. Business Central and some other systems cannot send headers, so the API also accepts the key as ?api_key= on the URL.
No-code options
- Business Central: point the built-in Currency Exchange Rate Service at the feed URL and map the fields once.
- Spreadsheet upload: download the table as CSV or Excel and use the ERP's standard import (SAP, NetSuite, Oracle and Odoo all have one).
- Middleware: SAP Integration Suite, Power Automate, Zapier or Make can run the fetch on a schedule and write to the ERP.
Checks to build in
- Sanity range. Reject a rate that moved more than a few percent from yesterday's, unless the currency is known to jump. It catches inverted or misread rates before they post.
- Publication date, not run date. Store the rate under the publisher's date (
rate_datein the response), so a rate fetched on Monday morning for Friday is filed under Friday. - Derived rates flagged. If a pair is not in the publisher's table, the API computes it from the bank's own figures and marks it
derived: true. Decide whether your policy allows that, or load only published pairs. - A log for the auditor. Keep the source, publication date and value for each row. That answers "where did this rate come from?" without a search.
More on the accounting side, including IAS 21 and ASC 830, is in exchange rate API for accounting and the month-end closing rates guide.
FAQ
What is ERP exchange rate integration?
A scheduled job that loads exchange rates from an outside source into the ERP's rate table, so invoices, payments and revaluations use the right rate without anyone typing it in. The job decides which source, rate type, direction and date each rate is stored under.
Which exchange rate source should an ERP use?
The one your accounting policy and tax rules name. For statutory books that is often the central bank of the company's country (ECB for euro companies, RBI for India). For VAT or customs it may be a tax authority rate such as HMRC or CBIC. Groups often use one central bank for consolidation and a local rate per subsidiary.
How often should ERP exchange rates be updated?
Once per publication. Daily publishers such as the ECB need a daily job scheduled after their release time. Monthly rates such as HMRC's need one load before the month starts. Running more often than the publisher adds nothing.
What happens on weekends and holidays?
Most ERPs look up the latest rate on or before the posting date, so a missing Saturday is filled by Friday's rate. If yours needs a row for every day, ask the API for each date: it returns the table in force on that date and shows the publication date it came from.
Can I load historical rates into the ERP?
Yes. Paid plans include history, so you can load past periods when you go live, or reload a quarter after an audit query. Download the history as JSON, CSV, XML or Excel, or loop over dated requests.
Official rates in your ERP
Latest tables are free. Dated lookups and history come with every paid plan.
Get your free API key