---
title: "Get forex rate by ID"
method: GET
path: "/rates/{id}"
tags: ["rates"]
---

# Get forex rate by ID

`GET /rates/{id}`

Retrieves a specific forex rate by its unique identifier

## Path parameters

- `id` string, required

## Response `200`

OK

- object — Standard response containing data and its metadata if any
  - `data` HandlersGetRateResponseDTO — Response body containing the forex rate information
    - `base_currency` string — The base currency code
    - `buy_price` number — The buy price as a floating point rate (e.g., 55.75 PHP per 1 USDT)
    - `created_at` integer — When the rate was requested to the provider as Unix timestamp
    - `id` string — The ID of the rate
    - `provider` string — The rate provider
    - `sell_price` number — The sell price as a floating point rate (e.g., 55.85 PHP per 1 USDT)
    - `target_currency` string — The target currency code
  - `meta` unknown

## Other responses

- `400` — Invalid rate ID
- `401` — Unauthorized
- `404` — Rate not found
- `500` — Internal server error

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/revisions/c18f9a027b2c/schema)
