Vezmo App

Accounts API · Accounts API

FX rates

Requires fx.read. Part of send with approval: until Vezmo switches that on, it answers 404 “No such endpoint.”

Get a rate — GET /fx/rates

  • from, to — 3-letter currency codes (required).
Request
curl "https://api.vezmo.com/api/v1/fx/rates?from=USD&to=GBP" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Vezmo-Version: 2026-11-14"
200 OK
{
  "success": true,
  "data": {
    "from": "USD",
    "to": "GBP",
    "rate": "0.7888",
    "indicative": true,
    "asOf": "2026-11-16T09:30:12.000Z"
  },
  "requestId": "…",
  "timestamp": "…"
}
  • rate — how many to one from buys, as a decimal string. Never convert it to a float for money.
  • indicative — always true: indicative, not a promise. It carries no fee. The price a payment is made at comes from a quote: POST /quotes to see one, and the fresh quote made when a person approves a transfer request.
  • asOf — when the rate was read.
  • A pair we can't price right now answers 404 not_found “No rate for these currencies right now.” In the sandbox, a pair its fixed rates don't cover is 400 currency_not_supported.

A test key gets the sandbox's fixed rates (see Sandbox).

Node.js
const q = new URLSearchParams({ from: "USD", to: "EUR" });
const res = await fetch(`https://api.vezmo.com/api/v1/fx/rates?${q}`, {
  headers: { Authorization: `Bearer ${await accessToken()}`, "Vezmo-Version": "2026-11-14" },
});
const { data } = await res.json();
// A decimal string: never parse it into a float for money. Show it, or price with POST /quotes.
console.log(`1 ${data.from} ≈ ${data.rate} ${data.to} (indicative, ${data.asOf})`);
Python
import requests
from decimal import Decimal

rate = requests.get(
    "https://api.vezmo.com/api/v1/fx/rates",
    params={"from": "USD", "to": "EUR"},
    headers={"Authorization": f"Bearer {access_token()}", "Vezmo-Version": "2026-11-14"},
    timeout=30,
).json()["data"]
print(Decimal(rate["rate"]))  # a decimal string, indicative only