How to Integrate RBA Exchange Rates into SAP, Xero, NetSuite and Dynamics 365 - Complete ERP Guide

How to load official Reserve Bank of Australia exchange rates into SAP S/4HANA, SAP Business One, Xero, Oracle NetSuite, Microsoft Dynamics 365 Business Central, Odoo and Excel. The common integration pattern, a rate-direction cheat sheet and scheduling advice, with a step-by-step guide and working code for each system.

Most Australian finance teams don't need a currency converter. They need the RBA's daily rates inside the ERP, where invoices get posted, foreign bills get revalued and month-end gets closed. Usually that means someone copies numbers off the RBA website into SAP or NetSuite every afternoon, or the ERP quietly uses a commercial rate feed that doesn't match what the auditors expect.

This guide shows how to automate that step. It covers the pattern every integration shares, then links to a step-by-step guide with working code for each of the systems Australian businesses use most:

New to the API? Start with the Python or JavaScript tutorials for the basics, then come back here to wire it into your ERP.

The Integration Pattern

Every ERP integration in this guide follows the same three steps:

  1. Fetch the RBA rates once per business day, after they publish (around 4 PM AEST).
  2. Transform each rate into the direction and format the ERP expects.
  3. Load them into the ERP's exchange rate table with the RBA publication date as the effective date.
┌──────────────────────┐      ┌──────────────────────┐      ┌──────────────────────┐
│ Exchange Rates API   │      │ Your integration     │      │ ERP                  │
│ GET /latest          │ ───▶ │ • invert if needed   │ ───▶ │ Exchange rate table  │
│ (or webhook trigger) │      │ • map currency codes │      │ (rate type, date)    │
└──────────────────────┘      │ • skip TWI           │      └──────────────────────┘
                              └──────────────────────┘

Step 2 is where most integrations go wrong, so let's look at that before writing any code.

What the API returns

Every authenticated endpoint uses a Bearer token and returns rates as units of foreign currency per 1 AUD:

curl "https://api.exchangeratesapi.com.au/latest?symbols=USD,EUR,JPY" \
  -H "Authorization: Bearer your_api_key_here"
{
  "success": true,
  "timestamp": 1725080400,
  "base": "AUD",
  "date": "2025-08-31",
  "rates": {
    "USD": 0.643512,
    "EUR": 0.562934,
    "JPY": 96.8321
  }
}

So "USD": 0.643512 means 1 AUD = 0.643512 USD. That's how the RBA publishes it, but ERPs don't agree on a convention.

Rate direction cheat sheet

System How it stores the rate What to load from the API
Xero 1 AUD = x foreign rate as-is
Odoo Foreign units per 1 company currency rate as-is
Dynamics 365 Business Central Exchange Rate Amount (foreign) / Relational Amount (AUD) Amount = rate, Relational = 1
NetSuite Base currency per 1 foreign unit 1 / rate
SAP S/4HANA / ECC (direct quotation) AUD per n units of foreign, per TCURF ratios n / rate
SAP Business One (direct rate setting) Local currency per 1 foreign unit 1 / rate

These assume AUD is your local/base currency, which is the normal case for an Australian entity. If your company base is something else, you'll need to cross-rate through AUD (e.g. USD→EUR = rates.EUR / rates.USD).

Currency codes that need special handling

The API returns 21 series from the RBA feed. Two of them aren't normal currencies:

  • TWI (Trade-Weighted Index) is an index, not a currency. Always skip it when loading an ERP.
  • SDR (IMF Special Drawing Rights) has the ISO 4217 code XDR. Most ERPs don't have it set up. Map it to XDR if you need it, otherwise skip it.

Everything else (USD, EUR, JPY, CNY, GBP and so on) uses standard ISO codes. You can get the full list from the public /symbols endpoint.

Weekends and public holidays

The RBA doesn't publish on weekends or Australian public holidays. A request to GET /{date} for one of those days returns 404. Most ERPs deal with this for you by using the most recent rate on or before the posting date, so you only need to load the days the RBA actually publishes. If you need to look up a rate for a specific transaction date (the Xero guide does this), ask the /timeseries endpoint for a few days before it and take the latest one.

The gaps matter for the job too. A daily job that runs on a public holiday finds no new rates and can raise a false alert. If you'd rather know in advance which days are Australian business days, check them against a business-day API that covers national and state public holidays, plus the AUD (RITS) settlement calendar. Your job then runs, and alerts, only on days the RBA is expected to publish.

When to run the job

The RBA publishes around 4 PM AEST. Schedule your ERP job for 5 PM Sydney time or later on business days. Or, on Professional and above, use a rate-published webhook to trigger the load as soon as new rates arrive instead of guessing at the time.


Guides for Each System

Each guide below is self-contained: the rate direction for that system, working code, scheduling steps and the settings to check before go-live.

SAP S/4HANA and ECC

An ABAP report that calls the API through an SM59 destination and posts each rate to TCURR with BAPI_EXCHANGERATE_CREATE, scheduled in SM36. Covers direct quotation, TCURF translation ratios, a separate ZRBA rate type and S/4HANA Cloud. Read the SAP S/4HANA and ECC guide →

SAP Business One

A Python job that loads rates into the Exchange Rates and Indexes table through the Service Layer's SBOBobService_SetCurrencyRate action, with direct and indirect rate settings explained. Read the SAP Business One guide →

Xero

Xero won't let you replace its XE.com rate table, but you can set CurrencyRate on each invoice, bill and bank transaction through the Accounting API. A Node.js example that looks up the RBA rate for the transaction date, including weekends. Read the Xero guide →

Oracle NetSuite

A SuiteScript 2.1 scheduled script that creates Currency Exchange Rate records, plus OneWorld notes and a CSV Import alternative if you'd rather not write SuiteScript. Read the NetSuite guide →

Microsoft Dynamics 365 Business Central

An AL codeunit run from the Job Queue that upserts the Currency Exchange Rate table, including adjustment amounts so month-end revaluation uses the same RBA rate. Read the Business Central guide →

Odoo

A Python script that upserts res.currency.rate records through Odoo's XML-RPC API, with the settings to change so Odoo's automatic provider doesn't overwrite them. Read the Odoo guide →

Excel and Power BI

A copy-paste Power Query that pulls daily RBA rates into a table, plus an XLOOKUP that finds the right rate for any transaction date, including weekends and public holidays. Read the Excel and Power BI guide →


Production Checklist

Before you switch any of these on in production:

  • Idempotency. A job that runs twice for the same date shouldn't create duplicate rates. Upsert by currency and date, or check for an existing rate before creating one.
  • Only publication dates. Load rates with the RBA's date from the response, not "today". On a public holiday the API still returns the last published rates, and stamping them with today's date would misstate your audit trail.
  • Alerting. If the job fails, someone should know before month-end. Send the job log to email or Teams, and check the API's /status endpoint when troubleshooting.
  • Secrets. Keep API keys in each platform's secret store (SSF, API Secrets, IsolatedStorage, environment variables), never in source code.
  • Backfill. When you first go live, load historical rates for open periods using /timeseries. Full history back to 2018 is on Professional and above.
  • Tell your auditors. Record in your accounting policy that FX rates are the RBA's 4 PM AEST rates, loaded automatically. The ATO accepts RBA rates for foreign currency translation, and a documented, automated source is easier to defend than hand-typed numbers.

Which Plan Do You Need?

Integration style Typical usage Suggested plan
Daily ERP rate load (SAP, NetSuite, BC, Odoo) ~22 requests/month Starter. Plenty of headroom
Per-transaction rates (Xero invoices, e-commerce) Hundreds to thousands/month Starter or Professional
Backfilling history, month-end revaluation of old periods Full history needed Professional (history back to 2018 + webhooks)
Multiple entities, many ERPs, CSV/Excel exports High volume, multiple API keys Business

A single daily ERP load uses about 22 requests a month, so most companies can automate their whole rate process on Starter. Upgrade to Professional when you need history beyond 30 days or want webhooks to trigger the load as soon as rates publish.

Wrapping Up

Getting RBA rates into your ERP comes down to fetching once a day, getting the direction right and loading with the RBA date. Once it's automated, month-end stops depending on someone remembering to update OB08 at 4:15 PM.

If you're still weighing whether to build a scraper instead, read about the hidden costs of scraping RBA data first. And if you're not sure whether RBA rates are the right source for your business, see RBA official rates vs forex market rates.

Ready to automate your FX rates? Get your free API key and try the integration in a sandbox company today.


Data sourced from the Reserve Bank of Australia. We are not affiliated with or endorsed by the Reserve Bank of Australia.

SAP, Xero, NetSuite, Microsoft Dynamics 365, Odoo and Excel are trademarks of their respective owners. Code samples are provided as starting points. Test them in a sandbox or non-production environment and review them with your ERP administrator before using them in production.

For API documentation, visit Exchange Rates API Docs