---
title: "Official Exchange Rates in Riege Scope: CSV Import and Customs Rate Checks"
description: "Load central-bank and tax-authority exchange rates into Riege Scope with its semicolon CSV import, one file per rate type, and check the customs rates Scope maintains against the official customs table."
canonical: https://allratestoday.com/docs/integrations/riege-scope/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-11-25T17:22:07.060Z
---

# Official Exchange Rates in Riege Scope: CSV Import and Customs Rate Checks

Load central-bank and tax-authority exchange rates into Riege Scope with its semicolon CSV import, one file per rate type, and check the customs rates Scope maintains against the official customs table.

By [Madhushan](https://allratestoday.com/authors/madhushan/), Founder & Lead Developer · Updated 25 Nov 2026

Riege Scope, the freight forwarding system, keeps two kinds of exchange rate. Its [knowledge base](https://service.riege.com/en/knowledge/where-can-i-maintain-exchange-or-converstion-rates) describes **Exchange Rates** under Master Data > Finance, used for receivables, payables, quotations and tariffs, with the types Day Rate, Buying Rate, Selling Rate, Bank Selling Rate and Tax invoice rate. Riege states that these "are not used for customs declarations". Customs rates are separate **System Exchange Rates**, which Scope updates automatically. This guide covers both: importing official rates into the finance rate types, and checking the customs rates.

## 1. Import official rates by CSV

Scope can download rates on a schedule from built-in sources such as the European Central Bank, and it also imports a CSV file. Per Riege's documentation the file is semicolon separated, uses a comma as the decimal sign, and has five columns: `baseCurrency`, `rate`, `unit`, `directQuotation` (0 indirect, 1 direct) and `validFrom` (DD.MM.YYYY). Their example row is `USD;1,2370;1;0;15.11.2019`. Each rate type is imported separately, so build one file per type.

Use this when a rule names a rate Scope does not download itself: a tax invoice rate set by a tax authority, or a central bank other than the ECB for a non-euro company. The [tax authority](https://allratestoday.com/tax-authority-rates-api/) and [central bank](https://allratestoday.com/central-bank-rates-api/) tables both come from the same endpoint:

```
import requests

API = "https://allratestoday.com/api/v1/central-bank"
HEADERS = {"Authorization": "Bearer art_live_your_key"}

def scope_csv(source, home_ccy, path):
    """Write one Scope exchange-rate CSV (one rate type) from an official table.

    Scope's format: semicolon separated, comma decimal,
    baseCurrency;rate;unit;directQuotation;validFrom (DD.MM.YYYY)
    """
    t = requests.get(f"{API}/{source}/latest", headers=HEADERS, timeout=10).json()
    y, m, d = t["rate_date"].split("-")
    valid_from = f"{d}.{m}.{y}"
    lines = []
    for r in t["rates"]:
        if r["base"] == home_ccy:          # table quotes foreign per 1 home unit (ECB style)
            ccy, rate, direct = r["quote"], r["value"], 0
        elif r["quote"] == home_ccy:       # table quotes home per foreign unit
            ccy, rate, direct = r["base"], r["value"], 1
        else:
            continue
        lines.append(f"{ccy};{f'{rate:.6f}'.replace('.', ',')};1;{direct};{valid_from}")
    with open(path, "w", encoding="utf-8") as f:
        f.write("\n".join(lines) + "\n")

# Example: the ECB reference table for a EUR-based Scope company
scope_csv("ecb", "EUR", "scope-ecb.csv")
```

The direction flag follows the table. The ECB, German customs and most EU tables quote foreign currency per 1 euro (indirect, 0); tables such as the Reserve Bank of India's quote home currency per foreign unit (direct, 1). Check the first import against a rate you know before scheduling it. Use the table's `rate_date` as `validFrom`, not the import date.

## 2. Check the customs rates Scope maintains

Riege's [article on system exchange rates](https://service.riege.com/en/knowledge/how-can-i-overwrite-the-system-exchange-rates) says Scope updates the customs exchange rates automatically, and offers a manual override (Master Data > Finance > System Exchange Rates, then the rate history and Override) only for the rare case of an incorrect or outdated rate. To spot such a case, compare Scope's rate with the [official customs table](https://allratestoday.com/customs-exchange-rate-api/) of the clearance country for the same date:

```
# Compare a customs rate shown in Scope (System Exchange Rates) with the official table
def check(country, date, ccy, local_ccy, scope_rate, tolerance=0.0001):
    r = requests.get(f"https://allratestoday.com/api/v1/customs/{country}/{date}",
                     params={"source": ccy, "target": local_ccy}, headers=HEADERS, timeout=10).json()
    diff = abs(scope_rate - r["rate"]) / r["rate"]
    return {"official": r["rate"], "table_date": r["rate_date"], "authority": r["authority"]["code"],
            "matches": diff <= tolerance}
```

If they differ, the response's `authority` and `rate_date` identify the official table to cite when you override. Riege does not document an API for writing customs rates, so the override itself stays manual.

## Notes

- A scheduled job that writes the CSV once per period is enough: tax and customs tables are fixed for a week, a fortnight or a month.
- Pairs the authority did not print are flagged `"derived": true`; leave them out of the file if your policy needs printed rates only.
- Menu names and the CSV layout above are Riege's as published; confirm them against your Scope release.

## Running Scope across several countries?

Tell us your companies and clearance countries and we will map the official tables for each.

 [Talk to us](https://allratestoday.com/contact?tab=business&topic=tax_authority_data) [All integration guides](https://allratestoday.com/docs/integrations/)
