Transactions

exchangeRates.get

Get the Bank of Canada daily exchange rate for a day, as units of quote for one base (for example base USD, quote CAD, date 2026-09-25). Pairs without CAD are crossed through CAD; a weekend or holiday uses the closest earlier business day. Returns the rate, the day it was published for, the series and a source description to keep with a match or tax review. Reads bankofcanada.ca and never changes anything.

GETPOST/api/v1/accounting/exchangeRates.get

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_exchange_rates_get

Reaches outside Oatmilk

It emails people or calls another service.

Fields

  • basestringRequired

    Three-letter currency code, such as CAD

  • quotestringRequired

    Three-letter currency code, such as CAD

  • datestringRequired

    A date, as YYYY-MM-DD.

    Date as YYYY-MM-DD

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/exchangeRates.get \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'base=CAD' \
  --data-urlencode 'quote=USD' \
  --data-urlencode 'date=2026-09-30'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

GET/api/v1/accounting/exchangeRates.get
curl -G https://app.getoatmilk.com/api/v1/accounting/exchangeRates.get \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'base=CAD' \
  --data-urlencode 'quote=USD' \
  --data-urlencode 'date=2026-09-30'

More in Transactions.