---
title: "Get exchange rates"
method: GET
path: "/api/v1/org/rates"
tags: ["Rates"]
---

# Get exchange rates

`GET /api/v1/org/rates`

## Request

- Base URL: `https://sandbox.api.afriex.com`
- URL: `https://sandbox.api.afriex.com/api/v1/org/rates`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/afriex/apis/afriex-business-api/docs/api/v1/org/rates/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves real-time exchange rates.

## Query parameters

- `fromSymbols` string
- `toSymbols` string
- `channel` 'WIDGET' | 'BANK_ACCOUNT' | 'MOBILE_MONEY' | 'CARD' | 'CRYPTO' | 'INTERNAL' | 'ADMIN' | 'WALLET' | 'VIRTUAL_BANK_ACCOUNT' | 'POOL_ACCOUNT' | 'ACH_BANK_ACCOUNT' | 'INTERAC' | 'UPI' | 'GLOBAL' | 'VIRTUAL_CARD' | 'RFP' | 'SWIFT' | 'EFT' | 'WE_CHAT' | 'ALIPAY' | 'PAYBILL_TILL' | 'PAYMENT_LINQ'

## Response `200`

Successful retrieval of rates

- object
  - `data` object
    - `rates` object: Map of base currencies to their exchange rates
    - `updatedAt` integer: Unix timestamp of the last update

## Other responses

- `400`: Invalid query parameters (an unsupported currency in `fromSymbols` or `toSymbols`, or an unknown `channel`).
- `401`: Unauthorized.
- `500`: Internal server error.
- `503`: Temporarily unavailable: an upstream service failed or timed out, or the API is momentarily offline. Retry with backoff and honour the Retry-After header when present.

---

[API](https://skmtc.dev/afriex/apis/afriex-business-api.md) - [All operations](https://skmtc.dev/afriex/apis/afriex-business-api/llms.txt) - [OpenAPI document](https://skmtc.dev/afriex/apis/afriex-business-api/revisions/d94198b6c256?raw)
