Get the exchange rate a payment on a given day converts at
Returns the rate a payment dated date converts at. The date in the response is the publication that rate comes from, which can differ from the day requested: a weekend resolves to the following Monday's publication, and a day with no publication to the latest one before it.
bearerAuthAutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
currency*stringCurrency to price in bolívares.
"USD""EUR"date*stringDay of the payment (YYYY-MM-DD).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateSuccessful response
application/json- response
currency*string"USD""USDT""EUR"date*stringYYYY-MM-DD. date is the day the rate applies to, and which side of today it falls on depends on the currency. USD and EUR come from the BCV at its Fecha Valor, which is published ahead of the day itself — so the newest row can be dated in the future, and is the rate that will apply then. USDT is an average of the previous day's Binance P2P quotes, published the morning after — so the newest row is dated in the past, normally yesterday.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$daterate*numberBs. (VES) per 1 unit of currency.
curl -X GET 'https://api.unopago.com/v1/exchange-rates?currency=USD&date=2019-08-24'{ "currency": "USD", "date": "2019-08-24", "rate": 0}Update a connected account PATCH
Where a connected account's details are changed: name, RIF, phone, address, description and bank account (`PUT /v1/settings` is refused for it). Name and RIF are fixed once UnoPago verifies the account; a new RIF comes with its bank account. A new bank account replaces the current one and is not paid out until an owner of your account confirms it.
Get the latest stored exchange rate per currency GET
This API is public and returns the most recently published stored rate for each tracked currency, or for a single currency when `currency` is given. `date` is the day the rate applies to, and which side of today it falls on depends on the currency. `USD` and `EUR` come from the BCV at its *Fecha Valor*, which is published ahead of the day itself — so the newest row can be dated in the future, and is the rate that will apply then. `USDT` is an average of the previous day's Binance P2P quotes, published the morning after — so the newest row is dated in the past, normally yesterday.

