Skip to content
Documentation
Get started

Settings

Retrieve the reference exchange rate

GET
/v1/exchange-rates/{currency}
curl --request GET \
--url https://api.timbro.do/v1/exchange-rates/USD \
--header 'Authorization: Bearer <token>'

Answers the reference rate the Gateway uses for the date: the latest accepted observation dated from three days before the date up to the day before it. The date defaults to today in Santo Domingo.

currency
required
string
Allowed values: USD EUR

The foreign currency, priced in Dominican pesos per one unit.

date
string format: date

The Santo Domingo date to price on. It cannot be in the future.

The reference rate for a date: the latest accepted observation dated from three days before the date up to the day before it.

Media typeapplication/json
Response fields and codes

The reference rate for a date: the latest accepted observation dated from three days before the date up to the day before it.

object
object
required
string
Allowed value: exchange_rate_observation
currency
required

The foreign currency, priced in Dominican pesos per one unit.

string
Allowed values: USD EUR
rate
required

Dominican pesos per one unit of currency, at four decimals.

Example

61.1168
string
/^[0-9]{1,3}\.[0-9]{4}$/
rateDate
required

The date of the observation this rate was read from, in Santo Domingo.

string format: date
source
required

Where the observation came from.

string
Allowed values: dgii operator
request-id
required
string

Identifies this request. Quote it when you contact support.