---
title: "Get an exchange rate"
method: GET
path: "/v1/exchange_rates/{id}"
tags: ["Exchange rate"]
---

# Get an exchange rate

`GET /v1/exchange_rates/{id}`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/exchange_rates/{id}`
- Auth: HTTP bearer

Returns today's conversion rate for a currency pair. The `id` path parameter is the
6-character pair (source + target, e.g. `usdclp`). The rate is resolved for the
current date and the caller's company country; if none exists yet, Cardda fetches
and stores one from the external provider.

Any `id` whose length is not exactly 6 returns `400 Bad Request` with an empty body.

## Path parameters

- `id` string, required

## Parameters

- `#/paths/~1v1~1bills/get/parameters/0` (unresolved $ref)

## Response `200`

The conversion rate for the pair.

- ExchangeRate: A currency conversion rate for a pair on a given date. Returned by the exchange rate lookup, which resolves the most recent rate for today (creating one from the external provider if none exists).
  - `id` string, uuid, required
  - `pair` string, required: Concatenated source+target currency codes.
  - `rate` string: The conversion rate (decimal, as a string).
  - `cardda_rate` string, nullable: Cardda-adjusted rate applied to conversions, when present.
  - `mastercard_rate` string, nullable
  - `from_currency` string, nullable
  - `to_currency` string, nullable
  - `date` string, date
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: The pair id is not exactly 6 characters.
- `401`: Unauthorized - missing or invalid authentication token.

---

[API](https://skmtc.dev/cardda/apis/finance-api.md) - [All operations](https://skmtc.dev/cardda/apis/finance-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/finance-api/revisions/59752c65ea74?raw)
