Real-Time Exchange Rate API for SaaS Billing
Show plan prices in a customer’s currency and save the rate behind each displayed or reported amount. Use the payment processor’s own rate for charges and settlement.
Show plan prices in a customer’s currency
Fetch the small set of currencies you display, cache the response for a short interval, and render the result with Intl.NumberFormat. Quantize the displayed amount for the currency, but keep the API rate at full precision in your records. That matters for zero-decimal currencies such as JPY, KRW, and VND, where a two-decimal money formatter produces an odd-looking price.
Actively traded currencies can update live, about every 60 seconds on trading days. Other coverage uses ECB/FRED reference data. Read source, data_updated_at, and market_session with the rate instead of guessing whether a displayed conversion is current or carried from a closed market.
Make billing analytics explainable
If a revenue dashboard converts invoices into a reporting currency, persist the rate, timestamp, source, and session used for that calculation. Re-running an old report against today’s rate changes the story; storing the original observation lets finance and support reproduce the number a customer saw.
For backfills or month-end reporting, use the historical endpoints rather than applying the latest rate to old invoices. A one-date response marks a carried weekend or holiday value with is_forward_filled; range results contain published business-day observations only.
A display conversion is not payment settlement
This API can power a reference-price display, reporting normalization, or an internal estimate. It does not set, control, or guarantee the exchange rate used by Stripe or any payment processor. Your processor’s settlement rate, fees, timing, and presentment-currency rules determine what is actually charged or paid out.
Treat these rates as indicative, not settlement instructions. Keep the processor’s payment record as the source for completed charges and use the FX observation only to explain your own display or analytics calculation.
Server-side SaaS price display
Keep the API key on your server. This example records the rate and its freshness fields alongside the value your application calculated.
Ready to test the API?
Start with the quickstart, check the response fields, and see pricing when you need account quota.
Free is for evaluation and internal, non-commercial use. Basic and Pro include commercial use.
Create a free evaluation key →