Enqueue a BCCR refresh job for today (CR)
POST
/v1/fx/refresh
const url = 'https://api.emite.cr/v1/fx/refresh';const options = {method: 'POST', 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 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).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
jobId
required
Id of the queued job; null only if the queue declined to create one.
string
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.