Customs Exchange Rate API: Official Rates from 46 Customs Authorities
One API for the official exchange rates customs authorities set for customs valuation: German Zoll, French and Dutch customs, CBSA, Australian Border Force, Japan Customs, Korea Customs, SARS, CBIC and more. The rate in force on the declaration date, with history. For landed-cost, freight and customs software.
Why customs software needs a separate rate
Customs duty and import VAT are a percentage of customs value, and customs value has to be converted into the importing country's currency at the rate the customs authority sets. That is not the market rate on the day and usually not the central bank rate either. Every country has its own table, its own period (daily, weekly, fortnightly or monthly) and its own publication format: PDF notices, gazette tables, spreadsheets, web forms. Keeping 40 of those feeds working is the part nobody wants to maintain. One API call replaces it.
Who uses it
- Landed-cost and duty calculators: quote duty at the rate the entry will actually use. Because most tables are fixed in advance, the quote can match the declaration.
- Freight forwarding and customs filing software: prefill the exchange rate on the declaration for each clearance country and store the table date with the entry.
- Cross-border ecommerce and checkout: show duty and import tax at checkout (DDP) on the destination country's official customs rate.
- Importers' finance teams: reconcile broker entries and keep audit evidence. The customs rates guide for finance teams covers the rules country by country.
Customs authorities covered
Each row links to the source page with its latest table, history and the rule it serves. Cadence is how often the authority sets a new table.
Missing a clearance country? Tell us which one; new customs sources are added on request. The full list of official sources, including central banks, is on the institutions page.
The call
Every source uses the same endpoints. latest returns the table in force now; a date
returns the table in force on that date.
# The German customs (Zoll) rate in force today
curl "https://allratestoday.com/api/v1/central-bank/zollde/latest?source=USD&target=EUR" \
-H "Authorization: Bearer art_live_your_key" {
"bank": "zollde",
"name": "German Customs (Generalzolldirektion)",
"rate_date": "2026-11-01",
"source": "USD",
"target": "EUR",
"rate": 0.890154887,
"rate_type": "monthly",
"derived": true,
"method": "inverse",
"cadence": "monthly",
"stale": false
} rate_date is the date of the authority's table, not the time you fetched it. Where a
pair is computed from the table (here USD to EUR from a table quoted per euro), the response says
derived: true and gives the method. In a landed-cost flow:
import requests
API = "https://allratestoday.com/api/v1/central-bank"
HEADERS = {"Authorization": "Bearer art_live_your_key"}
# Which customs authority values goods entering each country
CUSTOMS_SOURCE = {"DE": "zollde", "FR": "douanefr", "NL": "douanenl", "CA": "cbsa",
"AU": "abf", "JP": "jpcustoms", "KR": "kcs", "ZA": "sarsrex", "IN": "cbic"}
def customs_value(amount, invoice_ccy, dest_country, home_ccy, declaration_date):
"""Customs value in the importing country's currency, plus the evidence for the entry."""
src = CUSTOMS_SOURCE[dest_country]
r = requests.get(f"{API}/{src}/{declaration_date}",
params={"source": invoice_ccy, "target": home_ccy},
headers=HEADERS).json()
return round(amount * r["rate"], 2), {"source": r["bank"], "rate_date": r["rate_date"]}
# A USD 18,400 invoice cleared in Rotterdam on 12 November 2026
value_eur, evidence = customs_value(18_400, "USD", "NL", "EUR", "2026-11-12") In SAP GTS and other ERPs
Trade compliance systems such as SAP Global Trade Services value customs declarations with their own exchange rate type, kept apart from the rates used for accounting and VAT. Load the customs table into that rate type, per clearance country, on the authority's cadence. The SAP guide covers rate types and scheduled loads; the same pattern works in Business Central and Odoo.
Frequently asked questions
Why not use a market rate for customs value?
Because the law names the rate. Customs authorities fix a rate for a period (a week, a fortnight, a month, or a day set the evening before) and the declaration must use the one in force on the acceptance date. A market rate gives a different customs value, so the duty and import VAT are wrong and the difference shows up in a post-clearance audit.
Does the API return the rate for a past declaration date?
Yes. Ask for a date and you get the table in force then: the latest table on or before it. The response carries rate_date, so the entry record shows which table was applied. Full history downloads in JSON, CSV, XML or XLSX for audits and re-quotes.
In the EU, which table applies: the importer's country or the clearance country?
The country where the goods are cleared. Under Article 53 of the Union Customs Code and Article 146 of its Implementing Regulation each member state publishes its own monthly table, fixed from the rate on the penultimate Wednesday of the previous month, so goods cleared in Rotterdam use the Dutch table and goods cleared in Hamburg use the German one.
How are the US and China tables built?
Neither authority offers a table a program can fetch, so the API applies their published rule to the official series it comes from. US Customs and Border Protection (cbp) uses rates certified by the Federal Reserve Bank of New York for the date of exportation (19 CFR 159): a quarterly rate for about 20 listed currencies, replaced by the daily rate on any day it moves 5% or more, and the daily rate for the rest; those are the Federal Reserve H.10 figures. China Customs (gacc), under GACC Order 272 Article 13, uses the CFETS central parity of the third Wednesday of the previous month; the API dates each month's table the 1st.
Can we redistribute the rates inside our product?
Talk to us first. Software vendors that show customs rates to their own customers (landed-cost calculators, freight and customs filing systems, checkout duty estimates) get a plan set up for that use.
Building customs or landed-cost software?
Tell us your clearance countries and how many customers will see the rates, and we will set up a key and a plan.
Talk to us All tax and customs sources