B2B APIFX
Get Exchange Rates
Fetch current exchange rates for a base currency.
Get Exchange Rates
Retrieve current exchange rates for a given base currency against all supported target currencies.
Request
GET /v1/fx/rates
Query parameters:
| Field | Type | Required | Description |
|---|---|---|---|
base | string | no | Base currency code (ISO-4217). Defaults to USD. |
Response
{
"success": true,
"data": {
"base": "USD",
"rates": [
{ "from": "USD", "to": "EUR", "rate": 0.92 },
{ "from": "USD", "to": "GBP", "rate": 0.79 },
{ "from": "USD", "to": "JPY", "rate": 149.50 }
],
"lastUpdated": "2026-06-24T13:45:30Z"
}
}
Use Cases
- Display prices in local currency before checkout
- Calculate multi-currency invoices
- Show FX impact in booking flow
- Dynamic pricing based on exchange rates
Try it
Sandbox-only. Try-it requests target
https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.GET
/v1/fx/ratesSandbox credentials
Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.
curl -X GET 'https://cloud.vanitypass.com/v1/fx/rates' \ -H 'Content-Type: application/json' \ -H 'X-Environment: Sandbox' \