Latest cached USD/CRC rate
const url = 'https://api.emite.cr/v1/fx/usd-crc/latest';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/fx/usd-crc/latest \ --header 'Authorization: Bearer <token>'Returns the last successful BCCR fetch + whether the FX provider is configured. The web reads this for the FX status panel in /settings/preferences. Cron 0 4,18 * * * America/Costa_Rica auto-refreshes (today and tomorrow); clients shouldn't pull more than once an hour.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
Whether this deployment can fetch rates from the BCCR (it has a BCCR token). Without it nothing is fetched, and a USD invoice must carry its own exchangeRate (400 EXCHANGE_RATE_REQUIRED otherwise).
The cached rate with the most recent requestedDate; null while none has been fetched.
object
BCCR buy rate (indicator 317): colones per US dollar.
BCCR sell rate (indicator 318): colones per US dollar. A USD invoice sent without exchangeRate takes this rate, as of the day it is created.
Costa Rica calendar day the rate was requested for. The scheduled refresh also fetches tomorrow's rate, so this can be tomorrow.
Day of the rate the BCCR answered with: on a weekend or a holiday, the last business day before requestedDate.
When the rate was fetched from the BCCR (ISO 8601 instant).
Example
{ "latest": { "buyRate": 503.12, "sellRate": 509.87, "requestedDate": "2026-10-22", "effectiveDate": "2026-10-22" }}FX endpoints require the fx:read / fx:refresh scope.