If you build or maintain a CargoWise integration, you run into the same wall early: eAdaptor, Universal XML and Native XML are documented for customers and partners only. So when someone asks "can we load the central bank's rates into CargoWise?" or "is the customs rate on this entry right?", there isn't much public material to work from.
This post sticks to what is public, says where each statement comes from, and shows where official customs and central bank rates fit. The full guide is at allratestoday.com/docs/integrations/cargowise/. Confirm the integration details against WiseTech's current documentation before you build.
Rate types and sources
WiseTech's own accounting release notes say exchange rates come in types and sources: "you can choose different exchange rate sources for different currencies", and you "can set custom exchange rates (like C01) for USD, CAD, and GBP for a specific debtor, while the default exchange rate (e.g., BUY) applies to all other currencies". Those rules apply to job charges, invoices and credit adjustments.
That structure is where official rates go. Set up a custom rate type that holds a central bank's or tax authority's table, and use it for the debtors or currencies whose contracts or tax rules name that rate. The default commercial rate stays as it is for everything else.
Customs declarations
For customs, CargoWise converts at the rate for the valuation date. Its August 2024 customs update describes converting the FOB amount "using the exchange rate on the valuation date".
WiseTech does not publish where each country's customs rates come from. Two examples of how the authorities distribute them:
- In Australia, the Australian Border Force distributes its rates to ICS software as an exchange rate reference file.
- In the US, CBP distributes them to ABI filers through ACE.
Those are the same official rates AllRatesToday serves as the abf and cbp sources. That gives you two uses for an API next to CargoWise: checking a customs rate CargoWise applied, for any covered clearance country and date, and supplying rates for countries your setup does not receive automatically.
This function pulls the customs table for a clearance country and date and normalises every row to "home currency per 1 foreign unit", whichever way the authority quotes it:
import requests API = "https://allratestoday.com/api/v1/customs" HEADERS = {"Authorization": "Bearer art_live_your_key"} def official_rows(country, date, home_ccy): """Official customs rates for a clearance country, as home currency per 1 foreign unit.""" t = requests.get(f"{API}/{country}/{date}", headers=HEADERS, timeout=10).json() for r in t["rates"]: if r["quote"] == home_ccy: yield {"currency": r["base"], "rate": r["value"], "start": t["rate_date"], "type": r["type"]} elif r["base"] == home_ccy: yield {"currency": r["quote"], "rate": 1 / r["value"], "start": t["rate_date"], "type": r["type"]} rows = list(official_rows("AU", "2026-11-25", "AUD")) Each row carries the table's rate_date as its start date, which is what you compare against or load.
Loading rates by XML
Here the caution matters most. A public, third-party copy of the CargoWise One eAdapter schemas on GitHub (not published by WiseTech, dated 2019 to 2020) includes a Native XML CurrencyExchangeRate object with a RefExchangeRate record. Its fields include ExRateType, StartDate, ExpiryDate, SellRate, RefCurrency/Code and GlbCompany/Code.
If that object is still current for your instance, the mapping from an API response would be:
| CargoWise field (schema copy) | From the API |
|---|---|
ExRateType | Your rate type code for the official table (for example a custom code) |
RefCurrency/Code | The foreign currency of each row |
SellRate | The rate, in the direction your CargoWise company expects |
StartDate | rate_date of the table (or in_force_from from /next) |
ExpiryDate | The day before the next table starts, if your setup needs one |
GlbCompany/Code | The CargoWise company the rates belong to |
Treat this as a starting point only. The schema copy may be out of date, and the transport (eAdaptor endpoint, authentication, message envelope) is in WiseTech's gated documentation. Your CargoWise partner or WiseTech support can confirm the current object and whether your licence allows inbound rate updates.
If your setup imports rate files instead of XML messages, every endpoint also returns format=csv, xml or xlsx, so you can skip the transformation step.
Dates and timing
Two details decide whether the loaded rate is the right one:
- Store the table's
rate_dateas the start date, not the load date. A job that runs late, or a rerun, should not shift the validity window. - Many customs tables are fixed before their period starts.
/api/v1/customs/{country}/next(paid plans) returns them early, so the rate can be in CargoWise before the first entry of the period is filed. Itsin_force_fromis the start date to use.
For the date rules per country, export rates and keeping an audit record, see the customs filing software guide.
Links
- Guide: https://allratestoday.com/docs/integrations/cargowise/
- Official customs exchange rate API: https://allratestoday.com/customs-exchange-rate-api/
- Other integration guides: https://allratestoday.com/docs/integrations/
- API key: https://allratestoday.com/register/
Rates are redistributed from each institution's own publication. They are reference rates for accounting, tax and compliance, not dealing quotes.
