Skip to content

Enqueue a BCCR refresh job for today (CR)

POST
/v1/fx/refresh
curl --request POST \
--url https://api.emite.cr/v1/fx/refresh \
--header 'Authorization: Bearer <token>'

Triggers an ad-hoc refresh outside the cron schedule and returns the queued job. The job runs asynchronously; poll GET /v1/fx/usd-crc/latest for the new rate. A day already in the cache is never fetched again, so when today's rate is cached the job changes nothing; without a BCCR token (isConfigured: false) it does nothing either. A job queue that cannot be reached fails the request (500).

Media typeapplication/json
object
jobId
required

Id of the queued job; null only if the queue declined to create one.

string
nullable
targetDate
required

Costa Rica calendar day the job fetches the rate for: today.

string format: date
Example
{
"targetDate": "2026-10-22"
}

FX endpoints require the fx:read / fx:refresh scope.