Skip to content

Latest cached USD/CRC rate

GET
/v1/fx/usd-crc/latest
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.

Media typeapplication/json
object
isConfigured
required

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).

boolean
latest
required

The cached rate with the most recent requestedDate; null while none has been fetched.

object
buyRate
required

BCCR buy rate (indicator 317): colones per US dollar.

number
sellRate
required

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.

number
requestedDate
required

Costa Rica calendar day the rate was requested for. The scheduled refresh also fetches tomorrow's rate, so this can be tomorrow.

string format: date
effectiveDate
required

Day of the rate the BCCR answered with: on a weekend or a holiday, the last business day before requestedDate.

string format: date
fetchedAt
required

When the rate was fetched from the BCCR (ISO 8601 instant).

string format: date-time
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.